Skip to main content
POST
https://your-rootprint-host
/
api
/
api-keys
Create an API key
curl --request POST \
  --url https://your-rootprint-host/api/api-keys \
  --header 'Content-Type: application/json' \
  --cookie better-auth.session_token= \
  --data '
{
  "name": "<string>",
  "indexId": "<string>"
}
'
{
  "summary": {
    "id": 123,
    "name": "<string>",
    "tokenPrefix": "<string>",
    "indexId": "<string>",
    "lastUsedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdByUserId": "<string>"
  },
  "token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.rootprint.io/llms.txt

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

Authorizations

better-auth.session_token
string
cookie
required

Better Auth session cookie used by the Rootprint web UI.

Body

application/json
name
string
required
Required string length: 1 - 100
indexId
string
required
Minimum string length: 1
role
enum<string>
required
Available options:
ingest,
search

Response

Created API key.

summary
object
required
token
string
required