traces

Mint a grant for one source [write]

Changed on

The token (tgr_…) is shown once. It may only add events to this trace, as this source, in the content scopes it names, until it expires (default 24 hours, at most 7 days, never past the trace). Returns 404 when the TASK_TRACES switch is off for the workspace and 503 not_migrated before the tables exist.

post/traces/{id}/grants

Request

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

Path parameters

idstring required

The trace id (trc_…)

Request body

sourcestring required
ttl_secondsinteger
content_scopesstring[]

Content the source may send beside metadata; omitted admits metadata only

Response

Created

tokenstring required

Changes