Skip to content

Create API Key

POST
/v1/users/self/api-keys
curl --request POST \
--url https://example.com/api/v1/users/self/api-keys \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "expiresAt": "example", "name": "example" }'

API Key Data

Media type application/json
object
expiresAt
string
nullable
name
required
string
>= 1 characters <= 255 characters
Example generated
{
"expiresAt": "example",
"name": "example"
}

Created

Media type application/json
object
createdAt
string
expiresAt
string
nullable
id
string
lastUsedAt
string
nullable
name
string
token
string
userId
string
Example generated
{
"createdAt": "example",
"expiresAt": "example",
"id": "example",
"lastUsedAt": "example",
"name": "example",
"token": "example",
"userId": "example"
}