Skip to main content
POST
/
user
/
api-keys
Create API Key
curl --request POST \
  --url https://api.totalis.com/user/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Trading Bot"
}
'
{
  "key": "<string>",
  "key_prefix": "<string>",
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Privy JWT token. Use Authorization: Bearer <token>. Supported for REST API only.

Body

application/json
name
string

Optional friendly name for the API key

Response

API key created

key
string

Full API key (only shown once)

key_prefix
string
name
string | null
created_at
string<date-time>
expires_at
string<date-time> | null
message
string