REST API Reference
cURL
curl --request POST \ --url https://api.example.com/v1/vectors/num_vectors
Documentation IndexFetch the complete documentation index at: https://docs.cyborg.co/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
{ "index_name": "my_index", "index_key": "64_character_hex_string_representing_32_bytes" }
Show parameters
{ "status": "success", "message": "1500" }
Show response fields
# Get vector count count=$(curl -s -X POST "http://localhost:8000/v1/vectors/num_vectors" \ -H "X-API-Key: cyborg_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "index_name": "my_index", "index_key": "your_64_character_hex_key_here" }' | jq -r '.message') echo "Index contains $count vectors"
Was this page helpful?