---
title: "Report an agent activity-state signal for a session"
method: POST
path: "/api/v1/sessions/{sessionId}/activity"
tags: ["sessions"]
---

# Report an agent activity-state signal for a session

`POST /api/v1/sessions/{sessionId}/activity`

## Path parameters

- `sessionId` string, required — Session identifier, e.g. project-1.

## Request body

- SetActivityRequest
  - `agentSessionId` string — Native agent session identifier used to resume its transcript.
  - `event` string — AO hook sub-command that produced this state (e.g. post-tool-use).
  - `state` 'active' | 'idle' | 'waiting_input' | 'blocked' | 'exited' — Agent activity state reported by an agent hook. Optional for metadata-only hooks.
  - `toolName` string — Native tool name, for tool-use hook events.
  - `toolUseId` string — Native tool-use id, for tool-use hook events.

## Response `200`

OK

- SetActivityResponse
  - `ok` boolean, required
  - `sessionId` string, required
  - `state` string, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error
- `501` — Not Implemented

## Changes

- **2026-07-16** `7a49ff91f2db` — 2 info
  - added the new optional request property `agentSessionId`
  - the request property `state` became optional
- **2026-07-11** `ff644229050b` — 4 info
  - added the new optional request property `event`
  - added the new optional request property `toolName`
  - added the new optional request property `toolUseId`
  - added the new `blocked` enum value to the request property `state`
- **2026-06-10** `b64f5ab46d87` — 2 breaking, 4 warning
  - the request property `state` became required
  - removed the enum value `blocked` of the request property `state`
  - removed the request property `agentSessionId`
  - removed the request property `event`
  - …2 more

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/activity/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/1e626d3a1e6b?raw)
