Common capabilitiesAPI referenceAPI Key managementCreate an API Key

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"}

Request Body

application/json
  1. body
name?Name
Lengthlength <= 120
Default"default"

Response Body

Request succeeded

application/json
  1. response
created_at*Created At
Formatdate-time
id*Id
is_active*Is Active
key*Key
last_used_at*|null
name*Name
public_prefix*Public Prefix

On this page