Skip to main content
POST
/
v1
/
auth
/
keys
Create Api Key Endpoint
curl --request POST \
  --url https://api.example.com/v1/auth/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "prefix": "<string>",
  "key": "<string>",
  "created_at": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Response

Successful Response

発行直後のみ key を含む。

id
string
required
name
string
required
prefix
string
required
key
string
required
created_at
string
required