traces

Admit events [trace grant]

Changed on

Authenticated by a trace grant token (Bearer tgr_…), not an API key. At most 256 events, 64 KiB each, 4 MiB per request. Each event is judged on its own: the same event id and content returns its first receipt; different content, a session outside the workspace, another source's span, a changed parent, a parent cycle or content outside the grant's scopes is refused. Returns 404 when the TASK_TRACES switch is off for the workspace and 503 not_migrated before the tables exist.

post/traces/{id}/events

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/traces/{id}/events
  • Auth
    HTTP bearer

Path parameters

idstring required

The trace id (trc_…)

Request body

Response

OK

trace_idstring required
sourcestring required

Changes