Skip to main content
POST
/
api
/
me
/
personal-keys
Create Personal Key
curl --request POST \
  --url https://api.example.com/api/me/personal-keys \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "full_key": "<string>",
  "key_prefix": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Response

200 - application/json

Successful Response

id
integer
required
full_key
string
required

Plaintext personal key in the format xag_personal_<6 chars>_<32 chars>. Returned exactly once.

key_prefix
string
required
created_at
string<date-time>
required
expires_at
string<date-time> | null