Skip to main content
POST
Create User API Key

Authorizations

Authorization
string
header
required

Bearer authentication using an access token. Format: Bearer <access_token>

Body

application/json

CreateUserApiKeyRequest is the request to create a user API key.

userId
string

The user ID that owns this key.

name
string

Optional key name.

scopes
string[]

Optional scopes.

expiresAt
string<date-time>

Optional expiration.

Response

A successful response.

CreateUserApiKeyResponse is the response after creating an API key.

apiKey
object

ApiKey represents an API key object owned by a user.