Create publishable key
Create a publishable key (oi_pk_…) for use with the Web SDK.
Publishable keys are safe to embed in front-end code — they are scoped to web calls only and locked to the origins you register. Never use a secret key (oi_sk_…) in browser code.
The full key value is returned only on create — subsequent list responses show key_prefix only. Store it securely.
Auth: requires Authorization: Bearer <api_key> (your secret oi_sk_… key).
Authorizations
Use api_key from POST /v1/api-keys
Body
Human-readable label for this key
"Production widget"
Domains allowed to use this publishable key. Include protocol and no trailing slash.
Requests from unlisted origins return 403 Origin not allowed.
Leave empty to allow all origins (useful during development — restrict before going to production).
["https://yoursite.com"]Response
Created — key value shown only once
"pk_abc123"
Full publishable key value — only returned on create. Shows key_prefix on subsequent lists.
"oi_pk_live_abc123def456"
"oi_pk_live_abc1"
"Production widget"
Domains allowed to use this key. Requests from other origins return 403.
[
"https://yoursite.com",
"https://app.yoursite.com"
]