---
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).
  - `launchId` string — AO process generation that produced the signal.
  - `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.
  - `usage` UsageHookMetadata
    - `harness` 'claude-code' | 'codex', required
    - `modelId` string
    - `subagentId` string
    - `subagentTranscriptPath` string
    - `transcriptPath` string

## 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

---

[API](https://skmtc.net/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.net/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/versions/0754881ee8f4/schema)
