Skip to main content
POST
/
v1
/
api-keys
Create Api Key Handler
curl --request POST \
  --url http://localhost:8000/v1/api-keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "key": "<string>",
  "key_suffix": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Documentation Index

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

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

Cookies

ks_uat
string | null

Body

application/json

Request to create a new API key.

name
string
required
Required string length: 1 - 100

Response

Successful Response

Response after creating an API key. Contains the full key (shown once).

id
string<uuid>
required
name
string
required
key
string
required
key_suffix
string
required
created_at
string<date-time>
required