List agent runs
Return the agent runs you can see in the workspace, oldest change first. Called with an agent's bot token, the list holds only that agent's runs. Called by a person, it holds the runs on work items they can view and runs with no work item. A manual run is listed only for the person who started it.
An agent can use this list to find its work without webhooks. Poll with ?updated_at__gte= and paginate=cursor, and deduplicate rows by id. A run that changes while you page moves behind your cursor and comes back on a later page, so it's never skipped. A poll with updated_at__gte or an ascending cursor walk leaves out runs changed in the last 3 seconds, and your next poll picks them up.
Before it reads the page, the list settles runs that have been quiet past the stale timeout, so they come back as stale.
Path parameters
slug:requiredstringThe workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.
Query parameters
Filters combine with AND. A malformed value, such as an unknown status or a timestamp that isn't ISO 8601, returns 400 invalid_request instead of an unfiltered page.
updated_at__gte:optionalstring (date-time)Return runs that changed at or after this time. Every activity on a run updates it, so this also finds runs with new activity. Pass the time of your last poll.
status:optionalstringReturn runs in one status. One of created, in_progress, awaiting, completed, stopping, stopped, failed, or stale. See Run statuses.
status__in:optionalarray of stringReturn runs in any of several statuses, comma-separated, for example ?status__in=created,in_progress,stopping for the runs an agent still has to act on.
type:optionalstringReturn runs of one type. One of comment_thread, scheduled, assignment, event_triggered, or integration_triggered.
Mention runs and assignment runs both have type comment_thread. To tell them apart, filter on trigger_type.
trigger_type:optionalstringReturn runs started by one trigger, for example mention, assignment, schedule, or manual. An exact match on the stored value, which isn't checked against a list.
agent_user_id:optionalstring (uuid)Return the runs of one agent, by its bot user.
work_item_id:optionalstring (uuid)Return the runs on one work item. Takes the work item's UUID.
project_id:optionalstring (uuid)Return the runs in one project. Takes the project's UUID.
Ordering
order_by:optionalstringField to sort by. Prefix with - for descending. Defaults to updated_at, oldest change first.
updated_at,-updated_atcreated_at,-created_atid,-id
For a cursor walk, order by updated_at or created_at, ascending or descending. An unrecognized value falls back to the default.
Pagination
per_page:optionalintegerPage size. Defaults to 50, maximum 200.
offset:optionalintegerNumber of rows to skip from the start of the result set. Maximum 10000. Use the next value from the response instead of computing offsets yourself.
paginate:optionalstringSet to cursor to switch to the keyset envelope, which skips the COUNT query and returns next_cursor and has_more instead of next and total_count. Leave it out to get the default offset envelope.
count:optionalbooleanDefaults to true. Set to false to skip the COUNT(*) behind total_count. The field is then omitted from the response.
Response shaping
fields:optionalstringComma-separated list of fields to return on each row. Fields you don't request are left out of the response instead of coming back as null, so a missing key means you didn't ask for it and null means the value is null. id is always included, whether or not you name it.
Pass all to get every requestable field. An unknown field name returns 400 with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.
Requestable here: agent_user_id, comment_id, created_at, created_by_id, creator_id, credit_usage, ended_at, error_metadata, external_link, external_trigger_id, external_trigger_source, id, native_agent_id, project_id, source_comment_id, started_at, status, stopped_at, stopped_by_id, summary, title, token_usage, trigger_type, type, updated_at, updated_by_id, work_item_id.
See Sparse fields.
expand:optionalstringComma-separated relations to embed alongside the ids:
agent_user: the agent's bot user, withid,display_name,avatar_url, andemailcreator: the person who started the run, with the same keyswork_item: the run's work item, withid,name, andsequence_idcomment: the root comment of the run's thread, withidandcomment_htmlsource_comment: the comment that started the run, withidandcomment_html
Expanded objects get their own key: ?expand=work_item keeps work_item_id and adds a work_item object next to it, so an id is never replaced by an object. An unknown value returns 400. Field filtering never removes an expanded object, so ?fields=id,status&expand=work_item returns id, status, and work_item. See Expanding relations.
Scopes
agents.runs:read
Errors
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | A filter value is malformed, such as an unknown status or a bad timestamp, the cursor is invalid, or ?fields= or ?expand= names something unknown. |
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | The feature this endpoint belongs to isn't enabled on your plan or is switched off. |
403 | forbidden | You're a guest or not an active member of the workspace, or your token scope doesn't allow this. |
404 | not_found | No such workspace. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
curl -X GET \
"https://api.plane.so/api/v2/workspaces/my-team/runs/?updated_at__gte=2026-11-20T10:00:00Z&paginate=cursor" \
-H "Authorization: Bearer $PLANE_BOT_TOKEN"import requests
response = requests.get(
"https://api.plane.so/api/v2/workspaces/my-team/runs/",
headers={"Authorization": "Bearer your-bot-token"},
params={
"updated_at__gte": "2026-11-20T10:00:00Z",
"paginate": "cursor",
},
)
print(response.json())const params = new URLSearchParams({
updated_at__gte: "2026-11-20T10:00:00Z",
paginate: "cursor",
});
const response = await fetch(`https://api.plane.so/api/v2/workspaces/my-team/runs/?${params}`, {
headers: {
Authorization: "Bearer your-bot-token",
},
});
const data = await response.json();{
"data": [
{
"id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
"title": "Find the commit behind the Safari redirect loop",
"summary": "Traced the loop to the SameSite change in commit 4e1a9c2 and suggested a fix.",
"status": "in_progress",
"type": "comment_thread",
"trigger_type": "mention",
"agent_user_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
"native_agent_id": null,
"comment_id": "c47e9a12-8d3b-4f61-a5e0-9b2d6f4c1e78",
"source_comment_id": "c47e9a12-8d3b-4f61-a5e0-9b2d6f4c1e78",
"creator_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
"work_item_id": "8c3d1f72-4a9e-4b65-9d20-6e1f3b7a5c48",
"project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
"external_link": null,
"external_trigger_source": null,
"external_trigger_id": null,
"error_metadata": null,
"token_usage": {},
"credit_usage": {},
"started_at": "2026-11-20T10:15:02.118204Z",
"ended_at": null,
"stopped_at": null,
"stopped_by_id": null,
"created_at": "2026-11-20T10:15:02.118204Z",
"updated_at": "2026-11-20T11:01:12.774306Z",
"created_by_id": null,
"updated_by_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94"
},
{
"id": "6c3f1a8e-2d9b-4e75-a4c1-8b7e5d2f9a16",
"title": "Check the flaky checkout test",
"summary": null,
"status": "created",
"type": "comment_thread",
"trigger_type": null,
"agent_user_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
"native_agent_id": null,
"comment_id": "e6a1f9c3-2b7d-4d58-a4e9-1c3f8b6d2a70",
"source_comment_id": "e6a1f9c3-2b7d-4d58-a4e9-1c3f8b6d2a70",
"creator_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
"work_item_id": "2b9e4c71-5a3d-4f86-9c12-7e8d1b4a6f53",
"project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
"external_link": null,
"external_trigger_source": null,
"external_trigger_id": null,
"error_metadata": {},
"token_usage": {},
"credit_usage": {},
"started_at": "2026-11-20T11:02:45.330981Z",
"ended_at": null,
"stopped_at": null,
"stopped_by_id": null,
"created_at": "2026-11-20T11:02:45.330981Z",
"updated_at": "2026-11-20T11:02:45.330981Z",
"created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
"updated_by_id": null
}
],
"next_cursor": null,
"has_more": false,
"pagination": {
"style": "cursor"
}
}
