cURL
curl --request POST \ --url https://api.usecortex.ai/embeddings/by-chunk-ids \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: <content-type>' \ --header 'accept: <accept>' \ --data '{ "chunk_ids": [ "CortexEmbeddings123_0", "CortexEmbeddings123_1" ], "tenant_id": "tenant_456", "sub_tenant_id": "subtenant_123" }'
{ "embeddings": { "CortexEmbeddings123_0": [ 0.12, 0.34, 0.56, 0.78 ], "CortexEmbeddings123_1": [ 0.11, 0.33, 0.55, 0.77 ] }, "not_found_chunk_ids": [] }
curl --location 'https://api.usecortex.ai/embeddings/by-chunk-ids' \ --header 'Authorization: Bearer {API_KEY}' \ --header 'accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "chunk_ids": [ "CortexEmbeddings123_0", "CortexEmbeddings123_1", "CortexEmbeddings456_0", "CortexEmbeddings789_2" ], "tenant_id": "{TENANT_ID}", "sub_tenant_id": "{SUB_TENANT_ID}" }'
{ "embeddings": { "CortexEmbeddings123_0": [ 21.0, 22.0, 23.0, 24.0, 25.0, 26.0 ], "CortexEmbeddings123_1": [ 20.100000381469727, 20.200000762939453, 20.299999237060547, 20.399999618530273, 20.5, 20.600000381469727 ], "CortexEmbeddings456_0": [ 1.5, 2.5, 8.5, 8.5, 8.5, 6.5 ] }, "not_found_chunk_ids": [ "CortexEmbeddings789_2" ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Bearer token (your API key)
Request content type
Response content type
Embeddings retrieved successfully
The response is of type object.
object