Skip to main content
POST
/
v2
/
auth
/
api-keys
Create API key
curl --request POST \
  --url https://api.example.com/v2/auth/api-keys/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "otp": "<string>",
  "name": "<string>",
  "publicKey": "<string>",
  "whitelistedIPs": [
    "<string>"
  ]
}
'
{
  "apiKey": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
otp
string
required
name
string
required
publicKey
string
required

PEM-encoded public key for request signing

whitelistedIPs
string[]

Response

OK

apiKey
string
required