Skip to content

A page of a shared thread's history, for a signed-in reader​

GET
/agui/shared/{token}/history

getThreadHistory for a thread a link names (ADR 0040): the same pages over the reader projection, read-only. Cache-Control: no-store and X-Robots-Tag: noindex, nofollow.

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)

Parameters​

Query Parameters

before
Type
integer
Minimum
1
limit
Type
integer
Minimum
1
since
Type
integer
Minimum
1
after
Type
integer
Minimum
1

Responses​

A page

JSON
{
  
"threadId": "123e4567-e89b-12d3-a456-426614174000",
  
"start": 0,
  
"end": 0,
  
"head": 0,
  
"earlier": true,
  
"projection": 0,
  
"frames": [
  
  
{
  
  
  
"id": 0,
  
  
  
"event": "string"
  
  
}
  
],
  
"anchor": {
  
  
"seq": 0,
  
  
"runId": "string"
  
},
  
"carry": {
  
  
"turns": 0,
  
  
"usage": {
  
  
  
"tasks": [
  
  
  
  
{
  
  
  
  
  
"task": "string",
  
  
  
  
  
"models": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"inputTokens": 0,
  
  
  
  
  
  
  
"outputTokens": 0,
  
  
  
  
  
  
  
"totalTokens": 0,
  
  
  
  
  
  
  
"reasoningTokens": 0,
  
  
  
  
  
  
  
"cachedInputTokens": 0,
  
  
  
  
  
  
  
"cacheWriteInputTokens": 0,
  
  
  
  
  
  
  
"provider": "string",
  
  
  
  
  
  
  
"model": "string"
  
  
  
  
  
  
}
  
  
  
  
  
]
  
  
  
  
}
  
  
  
],
  
  
  
"groups": [
  
  
  
  
{
  
  
  
  
  
"inputTokens": 0,
  
  
  
  
  
"outputTokens": 0,
  
  
  
  
  
"totalTokens": 0,
  
  
  
  
  
"reasoningTokens": 0,
  
  
  
  
  
"cachedInputTokens": 0,
  
  
  
  
  
"cacheWriteInputTokens": 0,
  
  
  
  
  
"kind": "agent",
  
  
  
  
  
"name": "string",
  
  
  
  
  
"calls": 0
  
  
  
  
}
  
  
  
],
  
  
  
"latest": {
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
},
  
  
"files": [
  
  
  
{
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
]
  
}
}

Samples​

Powered by VitePress OpenAPI