Traces
Add an agent trace
Changed onAdd an agent trace/transcript to the index.
Accepts traces as a string in Hyperdoc format (native), Vercel AI SDK format, or OpenClaw JSONL format. The format is auto-detected if not specified.
Hyperdoc format (JSON array, snake_case with type discriminators):
{"history": "[{\"type\": \"trace_message\", \"role\": \"user\", \"text\": \"Hello\"}]"}
Vercel AI SDK format (JSON array, camelCase):
{"history": "[{\"role\": \"user\", \"content\": \"Hello\"}]"}
OpenClaw JSONL format (newline-delimited JSON):
{"history": "{\"type\":\"session\",\"id\":\"abc\"}\n{\"type\":\"message\",\"message\":{\"role\":\"user\",...}}"}
post/trace/add
Request
- Base URLhttps://api.hyperspell.com
- URLhttps://api.hyperspell.com/trace/add
- AuthHTTP bearer
Headers
X-As-Userstring nullable
Optionally set this header to act as a specific user when using an API Key, equivalent to first exchanging the API Key for a User Token
Request body
Response
Successful Response
Changes
- warning
added the new
gongenum value to theresponse property for the response status
- warning
- warning
added the new
firefliesenum value to theresponse property for the response status
- warning