sessions

Report an agent activity-state signal for a session

post/api/v1/sessions/{sessionId}/activity

Path parameters

sessionIdstring required

Session identifier, e.g. project-1.

Session identifier, e.g. project-1.

Request body

agentSessionIdstring

Native agent session identifier used to resume its transcript.

conversationCheckpointOrigin'human' | 'coordination'

Whether the main-turn boundary came from a human or AO coordination.

coordinationIdstring

Opaque identity of an AO-authored semantic prompt accepted by the native agent.

eventstring

AO hook sub-command that produced this state (e.g. post-tool-use).

latestAssistantUpdatestring

Latest assistant update exposed by the provider hook.

latestUserPromptstring

Latest real user prompt exposed by the provider hook.

launchIdstring

AO process generation that produced the signal.

observedAtstring date-time

Time the local hook process observed the event, before delivery to the daemon.

providerTurnIdstring

Native main-turn identity reported by the hook, when supported.

state'active' | 'idle' | 'waiting_input' | 'blocked' | 'exited'

Agent activity state reported by an agent hook. Optional for metadata-only hooks.

submissionIdstring

AO prompt-hook context correlation UUID, when supported.

toolNamestring

Native tool name, for tool-use hook events.

toolUseIdstring

Native tool-use id, for tool-use hook events.

transcriptPathstring

Read-only provider-native transcript path exposed by the hook.

Response

OK

okboolean required
sessionIdstring required
statestring required

Changes

Changed in 11 of the 169 revisions of this API.2421

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ○

      added the new optional request property /

      new-optional-request-property

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      the request property became optional

      request-property-became-optional

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new blocked enum value to the request property

      request-property-enum-value-added