Skip to main content
POST
/
api
/
api-keys
Create API key
curl --request POST \
  --url https://api.userintuition.ai/api/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Production MCP Key"
}
'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "key": "ui_sk_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345678901234",
  "key_prefix": "ui_sk_aBcDeF",
  "name": "Production MCP Key"
}

Documentation Index

Fetch the complete documentation index at: https://docs.userintuition.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authenticate with an API key (prefixed ui_sk_) or a JWT token from the dashboard.

Body

application/json
name
string
default:Default

A human-readable label for the API key

Maximum string length: 100

Response

API key created successfully. The key field is only returned once.

id
string
required

Unique identifier for the API key record

key
string
required

The raw API key. This is the only time it is returned — store it securely.

key_prefix
string
required

First 12 characters of the key, used for identification in listings

name
string
required

The label given to this API key