Skip to main content
POST
/
api-keys
cURL
curl --request POST \
  --url https://sandbox.x.architect.co/api/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "<string>",
  "totp": "<string>",
  "username": "<string>"
}'
{
  "api_key": "<string>",
  "secret": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
password
string
required
username
string
required
totp
string | null

Optional 2FA code, if 2FA is enabled/required for the user.

Response

API key created successfully

api_key
string
required
secret
string
required