Get an agent run
Retrieve one agent run by id. An agent uses it to check a run's status before it acts, for example to see whether a person asked it to stop.
You can read a run only if it would appear in your list of runs. An agent can read only its own runs. A person can read runs on work items they can view and runs with no work item, and only their own manual runs. Any other run returns 404, the same as a run that doesn't exist.
Reading a run that has been quiet past the stale timeout settles it first, so it comes 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.
pk:requiredstring (uuid)The id of the agent run.
Response shaping
fields:optionalstringComma-separated list of fields to return. 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. An unknown value returns 400. See Expanding relations.
Scopes
agents.runs:read
Errors
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | ?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 run in this workspace, or you can't reach it because it's another agent's run, on a work item you can't see, or another member's manual run. |
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/5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63/?expand=work_item" \
-H "Authorization: Bearer $PLANE_BOT_TOKEN"import requests
response = requests.get(
"https://api.plane.so/api/v2/workspaces/my-team/runs/5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63/",
headers={"Authorization": "Bearer your-bot-token"},
params={"expand": "work_item"},
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/runs/5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63/?expand=work_item",
{
headers: {
Authorization: "Bearer your-bot-token",
},
},
);
const data = await response.json();{
"id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
"title": null,
"summary": null,
"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",
"work_item": {
"id": "8c3d1f72-4a9e-4b65-9d20-6e1f3b7a5c48",
"name": "Fix login redirect loop",
"sequence_id": 142
},
"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-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-20T10:15:21.640117Z",
"created_by_id": null,
"updated_by_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94"
}
