POST
/
v5
/
spans
/
search
curl --request POST \
  --url https://api.egp.scale.com/v5/spans/search \
  --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": {},
  "trace_id": "<string>"
}'
{
  "object": "list",
  "items": [
    {
      "id": "<string>",
      "object": "span",
      "name": "<string>",
      "trace_id": "<string>",
      "parent_id": "<string>",
      "group_id": "<string>",
      "start_timestamp": "2023-11-07T05:31:56Z",
      "end_timestamp": "2023-11-07T05:31:56Z",
      "input": {},
      "output": {},
      "metadata": {},
      "status": "SUCCESS",
      "type": "STANDALONE",
      "application_interaction_id": "<string>",
      "application_variant_id": "<string>",
      "account_id": "<string>",
      "created_by_user_id": "<string>"
    }
  ],
  "limit": 100,
  "total": 123,
  "has_more": true
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Query Parameters

starting_after
string | null
ending_before
string | null
limit
integer
default:100
Required range: 1 <= x <= 1000
sort_order
enum<string> | null
default:asc
Available options:
asc,
desc
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

The response is of type object.