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
- 200
- 400
- 401
- 403
- 404
- 422
- 429
Successful Response
Malformed or business-invalid request
Authentication required or invalid credentials
Authenticated but insufficient permissions
Resource not found
Validation error
Rate limited. Back off and retry. A Retry-After header and a retry_after field (seconds) are sent only when the server knows the wait (for example, warehouse capacity is busy); a spent workspace query budget sends neither.
Response Headers
Seconds to wait before retrying; sent only when the server knows the wait (equals retry_after).