레퍼런스HTTP APIAgents

The agent's latest GitHub receipts

GET
/v1/agents/{id}/github/activity

Up to 20 receipts, newest first: set_agent_github, set_agent_mcp (a save of the agent's MCP settings, with the names before and after and no values), the create_agent_release and activate_agent receipts that changed the GitHub settings (result.github_changed), and for the agent's sessions mint_github_token (a refusal is failed with result.reason_code), dispatch_workflow, rerun_workflow and review_pull_request. Found by target, not by actor, so a release a person made is listed. Session receipts come only from sessions the caller can see, filtered before the 20 are cut: an agent manager is not shown a private session nobody shared with them. Whoever manages the agent reads it, and so do the live members of its managing team.

Auth: cookie session only; no scope.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Path Parameters

id*string

The agent's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The receipts.

application/json
  1. response
items*array<>
Itemsitems <= 20
receipt_repositories?array<>
Example Request
curl -X GET 'https://example.com/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/github/activity'
Example Response
{  "items": []}