Create an API Key
Create a new API Key. The full key is returned only once in the response; store it on your server right away. This endpoint accepts console login credentials only.
Authentication
Console login credentials: Authorization: Bearer <login credential>. API Keys are not accepted.
Credentials in the examples are placeholders. Replace them and run the examples on your server.
Code examples
curl -X POST 'https://shixux.com/api/keys' \ -H 'Authorization: Bearer login_credential_placeholder' \ -H 'Content-Type: application/json' \ -d '{"name":"default"}'{ "id": "example", "name": "example", "public_prefix": "example", "is_active": true, "last_used_at": "2026-10-06T10:00:00Z", "created_at": "2026-10-06T10:00:00Z", "key": "example"}application/json- body
name?NameLength
length <= 120Default
"default"Request succeeded
application/json- response
created_at*Created AtFormat
date-timeid*Idis_active*Is Activekey*Keylast_used_at*|nullname*Namepublic_prefix*Public Prefix