Skip to main content
GET
Read your key's identity and upload limits

Authorizations

Authorization
string
header
required

Your API key, shaped sp_<key_id>_<secret>, sent as Authorization: Bearer sp_.... It identifies your organization, not a person. Your organization owns the agents, holds the credit, and is billed. Every key your organization holds reaches the same things, so you rotate a key by minting the new one, deploying it, and revoking the old one.

Keep the key on your server. A request that carries a Sec-Fetch-Site header is refused with 400, because only a browser sets that header. Priors sends no CORS headers, so a browser blocks the call before it leaves the page. The secret is shown once when the key is minted and is stored only as a hash. A lost secret is replaced, never recovered.

An administrator of your organization mints and revokes keys in the Priors application, under Settings. There is no endpoint for it: a key reaches your whole organization, so issuing one is an act of administration.

Response

Authenticated application session.

What your key resolves to, and the upload limits that apply to it. Read it once when your client starts rather than hardcoding the numbers.

authenticated
enum<boolean>
required
Available options:
true
user
object
required

The principal this request ran as. Without X-SP-End-User that is your organization; with it, the derived id for that person. email is empty and display_name reads partner key, because a key names no person.

organization_id
string | null
required
organization_name
string | null
required
max_upload_bytes
integer
required

The largest document your organization may upload, in bytes. A larger upload is refused with 413 before any conversion.

Required range: x >= 1
max_image_bytes
integer
required

The largest single image, in bytes. Refused with 413 while the body streams.

Required range: x >= 1
max_images_per_turn
integer
required

How many distinct image sources one chat turn may name. A turn naming more is refused rather than truncated.

Required range: x >= 1
max_image_bytes_per_turn
integer
required

The total bytes of image one chat turn may carry, across every attachment. Not implied by the two limits above: this is the cap their product would otherwise reach. Always >= max_image_bytes, so a single image at the per-image limit is always sendable. A turn over it is refused with 413 and code payload_too_large.

Required range: x >= 1