Skip to content

List workspace agent run activities ​

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

Return one feed of the activities on every run you can see in the workspace, oldest first. Called with an agent's bot token, the feed holds every activity on that agent's runs. Called by a person, it covers the runs they can list. See List agent runs for which runs those are.

An agent that doesn't use webhooks can keep a single cursor on this feed instead of polling run by run. Filter it to ?type=prompt to pick up mentions, thread replies, and stop requests, or to ?signal=stop for stop requests only. Each row's agent_run_id tells you which run to answer.

A poll with created_at__gte or an ascending cursor walk leaves out activities posted in the last 3 seconds. They come back on your next poll, after the writes have committed, so the feed never skips an activity. A descending walk holds nothing back. To read your own writes at once, use the run's activity list.

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.

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.

created_at__gte:optionalstring (date-time)

Return activities posted at or after this time. Pass the time of your last poll.

agent_run_id:optionalstring (uuid)

Return the activities on one run.

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.

signal:optionalstring

Return activities with one signal. One of continue, stop, auth_request, select, or upgrade. ?signal=stop returns the stop requests.

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, for example the prompt Plane created from a thread reply.

ephemeral:optionalboolean

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

Ordering ​

order_by:optionalstring

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

  • created_at, -created_at
  • id, -id

For a cursor walk, order by created_at or -created_at. 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 workspace.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
List workspace agent run activities
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/runs/activities/?type=prompt&created_at__gte=2026-11-20T11:00:00Z&paginate=cursor" \
  -H "Authorization: Bearer $PLANE_BOT_TOKEN"
Response200
json
{
  "data": [
    {
      "id": "f4a8c2e6-1b7d-4f39-9a05-3e6d8b2c7f14",
      "agent_run_id": "5d2e8b47-3a1c-4f96-b0e2-7c9a4d1f8e63",
      "type": "prompt",
      "content": {
        "type": "prompt",
        "body": "<p>Thanks. Can you also check the Firefox login flow?</p>"
      },
      "content_metadata": {},
      "ephemeral": false,
      "signal": "continue",
      "signal_metadata": {},
      "actor_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
      "comment_id": "a3d6f9b2-7e4c-4185-8b2a-6f1c9e5d3a07",
      "project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
      "created_at": "2026-11-20T11:01:12.774306Z",
      "updated_at": "2026-11-20T11:01:12.774306Z",
      "created_by_id": null,
      "updated_by_id": null
    },
    {
      "id": "b2c5e8f1-6a3d-4b97-8e20-4d7f1a9c3e65",
      "agent_run_id": "6c3f1a8e-2d9b-4e75-a4c1-8b7e5d2f9a16",
      "type": "prompt",
      "content": {
        "type": "text",
        "body": "Stopping"
      },
      "content_metadata": {},
      "ephemeral": true,
      "signal": "stop",
      "signal_metadata": {},
      "actor_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
      "comment_id": null,
      "project_id": "4af68566-94a4-4eb3-94aa-50dc9427067b",
      "created_at": "2026-11-20T11:04:10.462519Z",
      "updated_at": "2026-11-20T11:04:10.462519Z",
      "created_by_id": "16c61a3a-512a-48ac-b0be-b6b46fe6f430",
      "updated_by_id": null
    }
  ],
  "next_cursor": null,
  "has_more": false,
  "pagination": {
    "style": "cursor"
  }
}