Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.
Examples
API Request
TypeScript
Python (Sync)
curl --location --request POST 'https://api.usecortex.ai/embeddings/create_tenant?tenant_id={TENANT_ID}' \
--header 'Authorization: Bearer {API_KEY}' \
--header 'accept: application/json'
Create a tenant dedicated to directly storing and querying embeddings.
Use this API only if you plan to upload embeddings directly (via /upload/upload_embeddings) and query them (via /embeddings/*). For standard document, text/markdown, or webpage ingestion, use /user/create_tenant instead.
Query Parameters
- tenant_id: Required string — The tenant identifier.
Sample Response
{
"status": "success",
"message": "Tenant 'embeddings_test' created successfully.",
"tenant_id": "embeddings_test",
}
Error Responses
All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.message
string
default:Embeddings collection created successfully