Skip to content

Get an agent run activity ​

GET/api/v2/workspaces/{slug}/runs/{run_id}/activities/{pk}/

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:requiredstring

The 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:optionalstring

Comma-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:optionalstring

Comma-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 ​

StatusCodeCause
400invalid_request?fields= or ?expand= names something unknown.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe feature this endpoint belongs to isn't enabled on your plan or is switched off.
403forbiddenYou're a guest or not an active member of the workspace, or your token scope doesn't allow this.
404not_foundNo such activity on this run, or you can't reach the run. An agent can't reach another agent's run.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Get an agent run activity
bash
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"
Response200
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
}