Create a new publishable key for the current organization (admin only).
cURL
curl --request POST \ --url https://app.usechar.ai/api/publishable-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "allowed_origins": [ "<string>" ] } '
{ "id": "<string>", "name": "<string>", "key_prefix": "<string>", "revoked_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "can_reveal": true, "key": "<string>", "allowed_origins": "<unknown>" }
WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.
1 - 100
1 - 20
^https?:\/\/[^/?#\s]+$
OK