Skip to main content
POST
/
v1
/
beta
/
private_indexes
/
cURL
curl --request POST \
  --url https://trytako.com/api/v1/beta/private_indexes/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "is_default": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "ontology_status": "<string>"
}

Notes

  • To authenticate, you’ll need a Tako API key. It’s best practice to store it as an environment variable to avoid hardcoding sensitive credentials in your code.
  • Creates a new private index with the specified name and optional description.
  • Private indexes allow you to organize and manage your custom data sources and knowledge bases.

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Name of the private index

description
string | null

Description of the private index

Response

Private index created

id
string
name
string
description
string | null
is_default
boolean
created_at
string<date-time>
updated_at
string<date-time>
ontology_status
string
I