Skip to content

A page of a public shared thread's history, for anybody​

GET
/agui/public/shared/{token}/history

getSharedThreadHistory for anybody, outside the identity layer, for a thread served as public, over the public projection. Rate limited like getPublicSharedThread, and holds one of the link's stream permits for as long as it folds, as an open connectPublicSharedThread does (5 per link and 50 in all, by default): a page costs a full fold, and the permit is what bounds how many run at once. 429 when they are taken.

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