X-SP-End-User. See Authentication.
Base URL
Every path on these pages is relative to:Ids
Every id is a string that Priors creates. The first part tells you the type.
An id your key cannot open returns
404, never 403, so a key cannot be used to learn which ids exist.
Long lists
List calls that can return many items acceptlimit and cursor. The response has next_cursor. Send it back as cursor to receive the next page. When next_cursor is missing or null, you have the last page.
Calls that finish later
POST /v1/agents, DELETE /v1/agents/{agent_id}, DELETE .../threads/{thread_id}, observe, and observe-file return 202. The work continues after the response. To know when it is done, poll the resource or the observation status.
Errors
Every error has the format{"error": "...", "code": "...", "request_id": "..."}. See Errors for every code.
Rate limits
A429 response has Retry-After in seconds and X-RateLimit-Reset as a Unix timestamp. Wait, then send the request again.