Get an agent run activity
Retrieve one activity on a run by id, for example the prompt named in an activity webhook. The activity must belong to the run in the path. An activity on another run returns 404, and so does any activity on a run you can't reach.
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.
run_id:requiredstring (uuid)The id of the agent run the activity belongs to.
pk:requiredstring (uuid)The id of the activity.
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: actor_id, agent_run_id, comment_id, content, content_metadata, created_at, created_by_id, ephemeral, id, project_id, signal, signal_metadata, type, updated_at, updated_by_id.
See Sparse fields.
expand:optionalstringComma-separated relations to embed alongside the ids: actor (the user who posted the activity, with id, display_name, avatar_url, and email).
Expanded objects get their own key: ?expand=actor keeps actor_id and adds an actor object next to it. An unknown value returns 400. See Expanding relations.
Scopes
agents.run_activities: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 activity on this run, or you can't reach the run. An agent can't reach another agent's 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/activities/0b7d4e21-9c3a-4f58-8e16-3a5c7d9b2f40/?expand=actor" \
-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/activities/0b7d4e21-9c3a-4f58-8e16-3a5c7d9b2f40/",
headers={"Authorization": "Bearer your-bot-token"},
params={"expand": "actor"},
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/runs/5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63/activities/0b7d4e21-9c3a-4f58-8e16-3a5c7d9b2f40/?expand=actor",
{
headers: {
Authorization: "Bearer your-bot-token",
},
},
);
const data = await response.json();{
"id": "0b7d4e21-9c3a-4f58-8e16-3a5c7d9b2f40",
"agent_run_id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
"type": "prompt",
"content": {
"type": "prompt",
"body": "<p>Find the commit that broke the Safari redirect</p>"
},
"content_metadata": {},
"ephemeral": false,
"signal": "continue",
"signal_metadata": {},
"actor_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
"actor": {
"id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
"display_name": "priya",
"avatar_url": null,
"email": "priya@example.com"
},
"comment_id": "c47e9a12-8d3b-4f61-a5e0-9b2d6f4c1e78",
"project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
"created_at": "2026-11-20T10:15:02.204517Z",
"updated_at": "2026-11-20T10:15:02.204517Z",
"created_by_id": null,
"updated_by_id": null
}
