cURL
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>" }
Generate a new API key for the authenticated user. The full key is only returned once — save it securely.
Privy JWT token. Use Authorization: Bearer <token>. Supported for REST API only.
Authorization: Bearer <token>
Optional friendly name for the API key
API key created
Full API key (only shown once)
Was this page helpful?