Create a new index
cURL
curl --request POST \ --url http://0.0.0.0:8008/indexes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "default_features": [ "proxy" ], "description": "<string>", "is_sample": false } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "num_assets": 123, "size_bytes": 123, "total_tokens_used": 123, "duration": 123, "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "default_features": [ "proxy" ], "is_sample": true, "is_sample_ready": true, "sample_prompts": [ "<string>" ], "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z" }
JWT in Authorization header. 'Bearer ' prefix optional.
API request schema for creating an index
Feature types that are exposed to users via the API
proxy
preview
visual
transcription
Successful Response
API response schema for creating an index