POST
/
v5
/
spans
/
export
curl --request POST \
  --url https://api.egp.scale.com/v5/spans/export \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "parents_only": true,
  "span_id": "<string>",
  "group_id": "<string>",
  "name": "<string>",
  "status": "SUCCESS",
  "type": "TEXT_INPUT",
  "extra_metadata": {},
  "export_method": "direct",
  "trace_ids": [
    "<string>"
  ]
}'
{
  "filename": "<string>",
  "signed_url": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Query Parameters

from_ts
string | null

The starting (oldest) timestamp in ISO format.

to_ts
string | null

The ending (most recent) timestamp in ISO format.

Body

application/json

Response

200
application/json

Successful Response

Response model for exporting spans. This class represents the response when users export span data. It contains either a signed URL to download the exported data from object storage, or the actual content bytes when direct download is used (in environments where object storage is not configured).