Skip to content

List agent run activities ​

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

Return the activities on one run, oldest first: the people's prompts and the agent's thoughts, actions, responses, elicitations, and errors. An agent reads this list to rebuild the conversation before it answers. See Fetching previous activities.

The list shows every activity up to the moment you call it, including one you posted a moment ago. To check whether it already answered, an agent can filter with ?actor_id= set to its bot user and match its own content_metadata.

To read new activity across all of your runs at once, use List workspace agent run activities instead.

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. A run you can't reach returns 404.

Query parameters ​

Filters combine with AND. A malformed value, such as an unknown type or an id that isn't a UUID, returns 400 invalid_request instead of an unfiltered page.

type:optionalstring

Return activities of one type. One of prompt, thought, action, response, elicitation, or error.

type__in:optionalarray of string

Return activities of any of several types, comma-separated, for example ?type__in=prompt,response for the conversation without the agent's thoughts and actions.

signal:optionalstring

Return activities with one signal. One of continue, stop, auth_request, select, or upgrade.

actor_id:optionalstring (uuid)

Return activities posted by one user, such as the agent's bot user or one person.

comment_id:optionalstring (uuid)

Return the activity tied to one comment in the run's thread.

ephemeral:optionalboolean

false for the activities that reached the work item thread, true for the ephemeral ones.

created_at__gte:optionalstring (date-time)

Return activities posted at or after this time.

agent_run_id:optionalstring (uuid)

Accepted for symmetry with the workspace feed. The path already fixes the run, so another run's id returns an empty list.

Ordering ​

order_by:optionalstring

Field to sort by. Prefix with - for descending. Defaults to created_at, oldest first.

  • created_at, -created_at
  • id, -id

Both work with paginate=cursor. An unrecognized value falls back to the default.

Pagination ​

per_page:optionalinteger

Page size. Defaults to 50, maximum 200.

offset:optionalinteger

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

Set 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:optionalboolean

Defaults to true. Set to false to skip the COUNT(*) behind total_count. The field is then omitted from the response.

Response shaping ​

fields:optionalstring

Comma-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: 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, so an id is never replaced by an object. An unknown value returns 400. Field filtering never removes an expanded object, so ?fields=id,type&expand=actor returns id, type, and actor. See Expanding relations.

Scopes ​

agents.run_activities:read

Errors ​

StatusCodeCause
400invalid_requestA filter value is malformed, such as an unknown type, the cursor is invalid, or ?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 run in this workspace, or you can't reach it. 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.
List agent run activities
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/runs/5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63/activities/" \
  -H "Authorization: Bearer $PLANE_BOT_TOKEN"
Response200
json
{
  "data": [
    {
      "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",
      "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
    },
    {
      "id": "3e9a1c56-7d2b-4a84-b0f3-6c1e8d5a2b97",
      "agent_run_id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
      "type": "thought",
      "content": {
        "type": "thought",
        "body": "Checking recent commits that touch the auth redirect."
      },
      "content_metadata": {},
      "ephemeral": true,
      "signal": "continue",
      "signal_metadata": {},
      "actor_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
      "comment_id": null,
      "project_id": null,
      "created_at": "2026-11-20T10:15:09.871230Z",
      "updated_at": "2026-11-20T10:15:09.871230Z",
      "created_by_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
      "updated_by_id": null
    },
    {
      "id": "7f2c8d14-5b6e-4c39-a1d7-9e4b2a6f3c58",
      "agent_run_id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
      "type": "action",
      "content": {
        "type": "action",
        "action": "search_commits",
        "parameters": {
          "path": "apps/web/auth",
          "since": "2026-11-01"
        }
      },
      "content_metadata": {},
      "ephemeral": true,
      "signal": "continue",
      "signal_metadata": {},
      "actor_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
      "comment_id": null,
      "project_id": null,
      "created_at": "2026-11-20T10:15:21.640117Z",
      "updated_at": "2026-11-20T10:15:21.640117Z",
      "created_by_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
      "updated_by_id": null
    },
    {
      "id": "9a6e3b72-1d4c-4e85-b2f9-5c8a7d1e4f36",
      "agent_run_id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
      "type": "response",
      "content": {
        "type": "response",
        "body": "<p>The loop started with commit 4e1a9c2, which set the session cookie to SameSite=Strict. Safari drops the cookie on the OAuth callback, so the app sends you back to login. Setting it to Lax fixes it.</p>"
      },
      "content_metadata": {
        "idempotency_key": "triage-5d2e8b47-final"
      },
      "ephemeral": false,
      "signal": "continue",
      "signal_metadata": {},
      "actor_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
      "comment_id": "d58b2f7a-4e1c-4a96-9b03-8f6c2e7d1a45",
      "project_id": null,
      "created_at": "2026-11-20T10:17:30.915842Z",
      "updated_at": "2026-11-20T10:17:30.915842Z",
      "created_by_id": "a8f3c1d2-6b4e-4e57-9d10-2f5b7c8e3a94",
      "updated_by_id": null
    }
  ],
  "next": null,
  "previous": null,
  "total_count": 4,
  "pagination": {
    "style": "offset"
  }
}