Share a trace publicly

Toggle public sharing for a trace. When is_public is true, the trace becomes accessible through the public trace URL.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Path parameters

trace_unique_idstringRequired
Unique trace identifier.

Request

This endpoint expects an object.
is_publicbooleanRequired

Set true to make the trace public, or false to revoke public access.

Response

Trace sharing state updated.
trace_unique_idstring
is_publicboolean

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error