Skip to content

Agent run activities overview ​

An activity is one message inside an agent run. People send the agent prompt activities, and the agent answers with thought, action, response, elicitation, and error activities. Each activity the agent posts moves the run's status, as described in Run statuses.

Activities are an append-only log. You can list, create, and read them, but not edit or delete them. Within a run they're listed oldest first.

The content and signal shapes match the ones in Signals and content payload, which shows how an agent should use each type.

Learn more about agent sessions

The agent run activity object ​

Attributes ​

  • id string (uuid)

    Unique identifier for the activity.

  • agent_run_id string (uuid)

    The run the activity belongs to.

  • type string

    What the activity is:

    • prompt: a message from a person to the agent. A mention, a reply in the run's thread, a prompt posted through the API, and a stop request are all prompts.
    • thought: the agent's reasoning. Always ephemeral.
    • action: a tool call the agent makes. Always ephemeral.
    • response: the agent's answer. Plane posts it as a reply in the run's thread.
    • elicitation: a question from the agent. Plane posts it in the thread and the run waits as awaiting.
    • error: the agent reporting a failure. Always ephemeral. The run moves to failed.
  • content object

    What the activity says. Most types carry {"type": "<type>", "body": "<text or HTML>"}. An action carries {"type": "action", "action": "<name>", "parameters": {...}}, with string values in parameters. A person's prompt can add attachment_ids, a list of strings. A prompt Plane creates from a thread reply has the reply's HTML as its body. A stop request has {"type": "text", "body": "Stopping"}.

  • content_metadata object

    Data the poster attached to the activity. Plane stores it and returns it unchanged, so an agent can tag its activities, for example with its own idempotency key, and find them again.

  • ephemeral boolean

    Whether the activity is temporary. Plane doesn't post an ephemeral activity to the work item thread, and Plane hides it once a non-ephemeral activity follows. thought, action, and error activities are always ephemeral.

  • signal string

    How to interpret the activity. Defaults to continue. The other values are stop, auth_request, select, and upgrade. A person's stop request is a prompt with signal: stop. Plane sets upgrade on a run that the workspace's plan refused.

  • signal_metadata object

    Details for the signal. An auth_request carries the url to open. On an error activity, Plane copies this object into the run's error_metadata.

  • actor_id string (uuid) or null

    Who posted the activity: the agent's bot user or a person.

  • comment_id string (uuid) or null

    The comment in the run's thread that matches the activity. For a person's prompt, it's the mention, the reply, or the mirrored comment. For an agent's non-ephemeral activity, it's the reply Plane posted. null for ephemeral activities.

  • project_id string (uuid) or null

    The project of the run's work item, when Plane records it. Activities posted through the API leave it null.

  • created_at string (date-time)

    When the activity was posted.

  • updated_at string (date-time)

    When the activity record last changed.

  • created_by_id string (uuid) or null

    The user who created the activity record.

  • updated_by_id string (uuid) or null

    The user who last updated the activity record.

Response200
json
{
  "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
}

Endpoints ​

MethodPathDescription
GET/api/v2/workspaces/{slug}/runs/activities/List workspace agent run activities
GET/api/v2/workspaces/{slug}/runs/{run_id}/activities/List agent run activities
POST/api/v2/workspaces/{slug}/runs/{run_id}/activities/Create an agent run activity
GET/api/v2/workspaces/{slug}/runs/{run_id}/activities/{pk}/Get an agent run activity

Reads need the agents.run_activities:read scope, and create needs agents.run_activities:write.

Who can post what ​

What you can post depends on who you are:

  • The run's agent, calling with its bot token, posts the run's output: thought, action, response, elicitation, and error. An agent can't post a prompt. On a run with a work item, a non-ephemeral response or elicitation becomes a reply in the run's thread, posted as the agent. If the run has no thread yet, that reply starts it.
  • A person posts a prompt only, with no signal, no ephemeral, and no comment_id. They need permission to comment on the run's work item. If the run already has a thread on a work item, Plane mirrors the prompt into it as a reply from them. Plane then sends the agent's app the activity webhook. A Plane agent picks the prompt up inside Plane instead. To stop a run, a person calls Stop an agent run.

Both can read every activity on the runs they can see.

One run or the whole workspace ​

List agent run activities reads one run's log. It shows everything up to the moment you call it, including the activity you just posted, so an agent can check its own writes there.

List workspace agent run activities is a single feed of the activities on every run you can see. For an agent, that's every activity on its own runs. An agent that polls instead of using webhooks keeps one cursor on this feed and finds new prompts and stop requests across all its runs. Filter it with ?agent_run_id= to narrow it to one run.

The feed leaves out activities from the last 3 seconds when you poll with created_at__gte or walk it with an ascending cursor. Your next poll picks them up, after the writes have committed, so the feed never skips an activity. The per-run list doesn't hold anything back.

Response shaping ​

Every activity read accepts ?fields= for sparse responses and ?expand=actor to embed the user who posted it. See Sparse fields and Expanding relations. Errors follow the shared problem+json contract.

Changed from v1 ​

  • Ids are flat: v1's agent_run, actor, comment, and project are now agent_run_id, actor_id, comment_id, and project_id.
  • type is required when you create an activity. v1 defaulted it to prompt.
  • A person can post only a prompt, and Plane mirrors it into the work item thread, as in Plane's own session view.
  • A malformed content, content_metadata, or signal_metadata returns 400. In some of these cases v1 returned 500.
  • v2 adds the workspace-wide activity feed.

See Migrating from v1 for the full list.