CLI Request Shape
The request is made to the Arize API at /v2/spans endpoint:
URL: https://api.arize.com/v2/spans
Headers:
{
"Authorization": "{API_KEY}",
"Content-Type": "application/json"
}
Request Payload:
{
"space_id": "spaceid",
"project_id": "projectid,
"start_time": "2026-04-12T11:00:00Z",
"end_time": "2026-05-12T11:56:00Z",
"filter": "(name IN ('x', 'y)) AND parent_id IS NULL",
"cursor": "optional_pagination_cursor"
}
Key Fields:
- project_id - Production project ID
- limit - Page size
- start_time / end_time - ISO 8601 format with Z suffix
- filter - SQL-like filter string for span names and root spans only
- cursor - Optional cursor for pagination (added after first page)