client_tokens
Mint an ephemeral browser-safe client token (pvct_)
Server-side token exchange (§4.9): authenticate with a secret key (or first-party session), receive a short-lived scoped pvct_ bearer for the browser. The browser then calls Primate directly — your secret key never leaves your server. Tokens are revoked implicitly when the minting key is revoked (≤5s). Rate class: 120/min per key. Client tokens can never mint tokens.
post/v1/client_tokens
Request
- Base URL: https://api.primateintelligence.ai
- URL: https://api.primateintelligence.ai/v1/client_tokens
- Auth: none declared
Request body
Example request
{
"video_id": "video_01KX12XX3BNM688AWHX7406HCF"
}Response
Token minted. The raw token appears only in this response.
Example response
{
"token": "pvct_…",
"video_id": "video_01KX12XX3BNM688AWHX7406HCF"
}Changes
No recorded changes to this operation across all 1 revision of this API.