keys

Create Key

Create a new API key.

Requires master key authentication.

If user_id is provided, the key will be associated with that user (creates user if it doesn't exist). If user_id is not provided, a new user will be created automatically and the key will be associated with it.

post/v1/keys

Request body

expires_atstring date-time nullable

Optional expiration timestamp

key_namestring nullable

Optional name for the key

metadataobject

Optional metadata

user_idstring nullable

Optional user ID to associate with this key

Response

Successful Response

created_atstring required
expires_atstring nullable required
idstring required
is_activeboolean required
keystring required
key_namestring nullable required
metadataobject required
user_idstring nullable required

Changes