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

Create API Key

POST request to /v2/auth/api-keys

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
whitelistedIPs
string[]
required

Response

Created

apiKey
string
required