Query traces for a project with filtering, sorting, and cursor-based pagination.
Request
GET /api/v1/traces?limit=20&name=support-agent&status=ERROR
Authorization: Bearer 2s_live_your_key
Query Parameters
Parameter
Type
Default
Description
limit
integer
50
Number of traces to return (1–100)
cursor
string
—
Pagination cursor from a previous response
name
string
—
Filter by trace name (substring match)
status
string
—
Filter by status: OK or ERROR
tags
string
—
Comma-separated list of tags (traces must have all listed tags)
startDate
ISO 8601
—
Only return traces after this timestamp
endDate
ISO 8601
—
Only return traces before this timestamp
curl Example
# Get the last 20 error traces for a specific agent
curl "https://api.2signal.dev/api/v1/traces?limit=20&status=ERROR&name=support-agent" \
-H "Authorization: Bearer 2s_live_your_key"
# Paginate through results
curl "https://api.2signal.dev/api/v1/traces?cursor=eyJpZCI6Imxhc3QtdHJhY2UtaWQifQ" \
-H "Authorization: Bearer 2s_live_your_key"
# Filter by date range and tags
curl "https://api.2signal.dev/api/v1/traces?startDate=2026-03-01T00:00:00Z&endDate=2026-03-15T00:00:00Z&tags=production,v2" \
-H "Authorization: Bearer 2s_live_your_key"