For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTList traces
      • POSTBulk delete traces
      • GETRetrieve a trace
      • DELDelete a trace
      • PATCHShare a trace publicly
      • GETRetrieve a public trace
      • POSTIngest spans from traces (v1 legacy)
      • POSTCreate a trace (OTLP)
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceTraces

Share a trace publicly

PATCH
https://api.respan.ai/api/traces/:trace_unique_id/
PATCH
/api/traces/:trace_unique_id/
$curl -X PATCH https://api.respan.ai/api/traces/trace_unique_id/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "is_public": true
>}'
1{
2 "trace_unique_id": "trace_9f8b7c6d5e4a3b2c1d0e",
3 "is_public": true
4}

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

Was this page helpful?
Previous

Retrieve a public trace

Next
Built with

Path parameters

trace_unique_idstringRequired
Unique trace identifier.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

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