API Reference
The Pyramid AI API is organized into three services, each serving a distinct purpose:
Projects, documents, uploads, and processing.
Chat, single queries, and batch Q&A.
Compliance verification and analysis runs.
API groups
Authentication
Every request (except /health) requires a Bearer token:
See Authentication for key management details.
Response format
Every response follows the same envelope:
The request_id is also returned in the X-Request-Id header. Always include it when contacting support.
Common status codes
Using the interactive explorer
The endpoints below include a built-in playground. To test:
- Enter your API key in the Authorization field (use
Bearer pai_test_*for staging) - Fill in the required parameters
- Click Send to make a live request
The explorer sends real requests to the server you select. Use a pai_test_* key to avoid affecting production data.
Versioning
All endpoints are under /api/v2. Breaking changes will increment the version number. Non-breaking additions (new optional fields, new endpoints) are added without a version bump.