Skip to main content

Execute Query

POST 

/api/v1/query

Answer a natural-language question through the answer core.

Summary​

POST /api/v1/query is an operation in the query group of the Nexatron REST API, served from https://api.nexatron.io. Send an API key as a bearer token in the Authorization header. It takes a JSON body whose required field is question. A successful call returns 200; the other documented responses are 400, 401, 403, 404, 422 and 429.

Example request​

curl -X POST "https://api.nexatron.io/api/v1/query" \
-H "Authorization: Bearer $NEXATRON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question":"<question>"}'

Placeholders in angle brackets stand for your own values. NEXATRON_API_KEY holds an API key from Settings → API tokens. See the API overview for authentication, errors and rate limits.

Request​

Responses​

Successful Response