cURL
curl --request POST \ --url https://api.askmy.biz/query \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "job_id": "vI2wMzZwuf2l1hkYYO_Fb", "namespace": "avamo_fr", "query": "<string>", "schema": { "type": "object", "properties": { "product_categories": { "type": "array", "items": { "type": "object", "properties": { "product_type": { "type": "string" }, "reasoning": { "type": "string" }, "source_urls": { "type": "array", "items": { "type": "string" } } } } } } }, "prompt": "<string>", "k": 5 }'
{ "job_id": "<string>", "namespace": "<string>", "query": "<string>", "answer": {}, "metadata": { "processing_time_ms": 123 } }
Interrogate the vector store for information related to a given job_id or namespace. The job must be completed before querying can be performed.
API key for authentication
Query executed successfully
The response is of type object.
object