Nexatron Query API
The query API from Nexatron — 2 operation(s) for query.
The query API from Nexatron — 2 operation(s) for query.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nexatron-io:nexatron-io-query-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
contact:
email: ai@nexatron.io
name: Nexatron
url: https://nexatron.io/
description: 'Nexatron API: governed answers from your connected systems, in your own words. Action tools available over MCP v2: list_actions / dry_run / execute_action.
This specification documents the public Nexatron REST API surface. Admin, compliance, billing, audit, and internal pipeline endpoints are documented separately and are available to enterprise customers via their account team.'
license:
name: Proprietary
title: Nexatron Query API
version: 2.13.6
tags:
- name: Query
paths:
/api/v1/query:
post:
description: Answer a natural-language question through the answer core.
operationId: execute_query_api_v1_query_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/app__schemas__query__QueryRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/app__schemas__query__QueryResponse'
description: Successful Response
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Malformed or business-invalid request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Authentication required or invalid credentials
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Authenticated but insufficient permissions
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Resource not found
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Validation error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: 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.
headers:
Retry-After:
description: Seconds to wait before retrying; sent only when the server knows the wait (equals retry_after).
schema:
type: integer
security:
- HTTPBearer: []
summary: Execute Query
tags:
- Query
x-public: true
/api/v1/query/stream:
post:
description: 'Ask a question in natural language and receive the answer as Server-Sent Events.
The stream carries progress, the result and an end event, or a write''s preview, or a refusal.'
operationId: stream_query_api_v1_query_stream_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StreamQueryRequest'
required: true
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Malformed or business-invalid request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Authentication required or invalid credentials
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Authenticated but insufficient permissions
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Resource not found
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: Validation error
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
description: 'Rate limited: the workspace''s query budget is spent. Back off and retry; no Retry-After is sent. A warehouse capacity refusal arrives as a refusal event in the stream, not as an HTTP 429.'
security:
- HTTPBearer: []
summary: Stream Query
tags:
- Query
x-public: true
components:
schemas:
app__schemas__query__QueryResponse:
properties:
answer_contract:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Answer Contract
confidence_breakdown:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Confidence Breakdown
confidence_score:
anyOf:
- type: integer
- type: 'null'
title: Confidence Score
content:
title: Content
type: string
conversation_id:
format: uuid
title: Conversation Id
type: string
core_evidence:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Core Evidence
freshness:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Freshness
generated_sql:
anyOf:
- type: string
- type: 'null'
title: Generated Sql
governance:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Governance
latency_ms:
anyOf:
- type: integer
- type: 'null'
title: Latency Ms
message_id:
format: uuid
title: Message Id
type: string
reasoning:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Reasoning
refusal:
anyOf:
- $ref: '#/components/schemas/GovernanceRefusal'
- type: 'null'
result_chart:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Result Chart
result_data:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Result Data
source_routing:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Source Routing
sources:
anyOf:
- additionalProperties: true
type: object
- items: {}
type: array
- type: 'null'
title: Sources
stage_metrics:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Stage Metrics
total_cost_usd:
anyOf:
- type: number
- type: 'null'
title: Total Cost Usd
total_tokens:
anyOf:
- type: integer
- type: 'null'
title: Total Tokens
required:
- message_id
- conversation_id
- content
title: QueryResponse
type: object
ErrorEnvelope:
description: Standard error response envelope. Every non-2xx response the API returns has this shape.
properties:
category:
description: Coarse error category, e.g. 'permanent_user_input', 'auth'.
type: string
code:
description: Machine-readable error code, e.g. 'NotFoundError', 'ValidationError'.
type: string
detail:
description: Deprecated one-release alias of 'message'.
type: string
fields:
additionalProperties:
type: string
description: Per-field validation messages (validation errors only).
type: object
message:
description: Human-readable error message.
type: string
retry_after:
description: Seconds to wait before retrying (rate-limit / transient errors).
type: integer
support_id:
description: Request id for support correlation (present when a request id exists).
type: string
required:
- code
- category
- message
- detail
title: ErrorEnvelope
type: object
app__schemas__query__QueryRequest:
properties:
concise_answer:
default: false
title: Concise Answer
type: boolean
conversation_id:
anyOf:
- format: uuid
type: string
- type: 'null'
title: Conversation Id
input_modality:
default: text
enum:
- text
- voice
title: Input Modality
type: string
question:
maxLength: 2000
minLength: 1
title: Question
type: string
sources_off:
anyOf:
- items:
type: string
maxItems: 200
type: array
- type: 'null'
title: Sources Off
starter:
anyOf:
- $ref: '#/components/schemas/StarterDefinition'
- type: 'null'
temporary_chat:
default: false
title: Temporary Chat
type: boolean
required:
- question
title: QueryRequest
type: object
StarterDefinition:
description: 'The approved definition a starter card asks (``StarterQuestion.definition_id``), sent with the card''s question
so the answer core can answer it from that definition alone, with no model call. A typed question has none.'
properties:
connection_id:
format: uuid
title: Connection Id
type: string
definition_id:
maxLength: 300
minLength: 1
title: Definition Id
type: string
required:
- connection_id
- definition_id
title: StarterDefinition
type: object
StreamQueryRequest:
description: Request body for the streaming query endpoint.
properties:
conversation_id:
anyOf:
- format: uuid
type: string
- type: 'null'
title: Conversation Id
input_modality:
default: text
enum:
- text
- voice
title: Input Modality
type: string
question:
maxLength: 2000
minLength: 1
title: Question
type: string
skip_cache:
default: false
title: Skip Cache
type: boolean
sources_off:
anyOf:
- items:
type: string
maxItems: 200
type: array
- type: 'null'
title: Sources Off
starter:
anyOf:
- $ref: '#/components/schemas/StarterDefinition'
- type: 'null'
temporary_chat:
default: false
title: Temporary Chat
type: boolean
required:
- question
title: StreamQueryRequest
type: object
GovernanceRefusal:
additionalProperties: false
description: 'A governed answer the platform withheld, as a typed body rather than prose.
Nexatron withholds an answer when an approved metric''s owner declared something
the requested shape contradicts, such as a grain finer than the metric allows or
a filter it cannot honour. Clients should read the typed state and code rather
than parsing prose, and should not re-ask a question that was refused.
``clarification_required`` / ``sql_generation_declined`` means Nexatron declined
to write a query. It is not a policy decision or proof of missing data.
``generation_failed`` / ``sql_generation_failed`` means the question was accepted
and no query could be produced. It is a failure of this platform, not a
statement about the question: present it as retryable, and don''t prompt the
person for a definition. It carries no number, no rows and no SQL, because
nothing was measured.'
properties:
code:
anyOf:
- type: string
- type: 'null'
title: Code
governance_state:
title: Governance State
type: string
metric:
anyOf:
- type: string
- type: 'null'
title: Metric
reason:
title: Reason
type: string
suggestions:
items:
type: string
title: Suggestions
type: array
required:
- reason
- governance_state
title: GovernanceRefusal
type: object
securitySchemes:
HTTPBearer:
scheme: bearer
type: http