Create an API key
Create an API key. End-user authentication. Send the API key in the apikey header; user endpoints also need Authorization: Bearer.
Authorizations
Your publishable (pb_pk_…) or secret (pb_sk_…) key.
The signed-in person's access token.
Body
A label so you can recognise the key later.
1 - 120What the key may do, from the scope catalogue (GET /keys/scopes). Leave empty for the role's defaults.
50Days until the key stops working. Leave out for never.
1 <= x <= 3650Restrict the key to one organization (its slug). Leave out to act as the user in every organization.
63Response
Created. The body is the new object.
Unique identifier.
The name.
The scopes it grants.
Current status.
When it was created (UTC).
When it stops being valid.
When it was last used (UTC).