Skip to content

One thread​

GET
/api/threads/{threadId}

A thread the caller may read: their own. Another person's is a 404, the answer for one that does not exist, whatever the caller's roles (ADR 0039). A thread that is shared has share, with the link (url), and the response is then Cache-Control: no-store.

Authorizations​

bearerToken

A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.

Type
HTTP (bearer)
or
dpopToken

A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".

Type
HTTP (DPoP)
or
proxyIdentity

Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.

Type
API Key (header: X-Auth-Request-Email)

Responses​

Thread

JSON
{
  
"id": "00000000-0000-4000-8000-000000000001",
  
"owner": "user@example.com",
  
"title": "Fix the failing login test",
  
"target": {
  
  
"agentId": "coder"
  
},
  
"state": "working",
  
"tools": [
  
  
"websearch"
  
],
  
"createdAt": "2026-01-15T09:12:03Z",
  
"updatedAt": "2026-01-15T09:14:41Z",
  
"lastSeq": 7
}

Samples​

Powered by VitePress OpenAPI