Base URL
The default base URL for self-hosted Phoenix is:/v1:
API Versioning
The Phoenix API uses URL-based versioning. The current version isv1, which is included in all endpoint paths:
/v1/traces/v1/evaluations/v1/datasets
OpenAPI Specification
Phoenix provides a complete OpenAPI 3.1.0 specification for the REST API. You can access the schema at:- Complete endpoint documentation
- Request and response schemas
- Parameter descriptions
- Authentication requirements
- Example requests
schemas/openapi.json.
Common Patterns
Pagination
Many list endpoints support cursor-based pagination:cursor query parameter to fetch the next page:
Relay Global IDs
Phoenix uses Relay-style Global IDs for resource identification. These are base64-encoded strings that include the type and internal ID:- Global ID: The Relay-encoded ID (e.g., from API responses)
- Name or OpenTelemetry ID: Human-readable identifiers (where supported)
Content Types
The API supports multiple content types depending on the endpoint:- application/json: Standard JSON requests/responses
- application/x-protobuf: Protocol Buffers for trace ingestion
- application/x-pandas-arrow: PyArrow tables for evaluations
- text/csv: CSV file uploads and downloads
- application/jsonl: JSONL file uploads
Error Handling
The API uses standard HTTP status codes:- 200 OK: Successful request
- 204 No Content: Successful request with no response body
- 400 Bad Request: Invalid request format
- 401 Unauthorized: Missing or invalid authentication
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Resource not found
- 422 Unprocessable Entity: Invalid request parameters
- 429 Too Many Requests: Rate limit exceeded
- 503 Service Unavailable: Server at capacity
Rate Limiting
Phoenix may reject requests when the server is at capacity (HTTP 503). The trace ingestion endpoint monitors queue capacity and returns 503 when the span queue is full.Next Steps
Authentication
Learn how to authenticate API requests
Traces API
Send and manage trace data
Evaluations API
Submit and retrieve evaluations
Datasets API
Manage datasets for testing