Skip to main content
POST
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
expiresAt
string<date-time> | null

Future ISO 8601 expiration timestamp. Omit or use null for a key that does not expire.

name
string

Display name for identifying this API key.

Required string length: 1 - 100

Response

Create an API key

createdAt
string<date-time>
required
expiresAt
string<date-time> | null
required
id
string<uuid>
required
lastUsedAt
string<date-time> | null
required
name
string | null
required
updatedAt
string<date-time>
required
userId
string
required
tokenPreview
string
required
token
string
required