POST
/
query
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
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json

Response

200
application/json

Query executed successfully

The response is of type object.