Skip to content · تخطَّ إلى المحتوى
نبرة Nabra

Reference

API reference

Every endpoint of the Voice API.

The running service also serves interactive OpenAPI docs at /docs and the machine-readable contract at /openapi.json.

MethodPathPurpose
POST/api/v1/voice/parseAudio → transcript → your schema, validated. ?stream=true for NDJSON progress. Optional sessionId.
POST/api/v1/text/parseThe same extraction and validation from text. Optional sessionId.
GET/api/v1/schemasAll schemas (latest version of each), built-in and saved.
POST/api/v1/schemasSave a schema version. A saved version never changes (409 on conflicting content).
POST/api/v1/schemas/validateCheck a schema without saving it; every error with its path.
GET/api/v1/schemas/{name}One definition (latest, or ?version=).
GET/api/v1/schemas/{name}/versionsThe versions of a schema.
DELETE/api/v1/schemas/{name}Delete a saved schema (one ?version=, or all). Built-ins are read-only.
GET/api/v1/field-typesThe field types and their options.
POST/api/v1/sessionsStart a session; pins one schema version.
GET/api/v1/sessions/{id}The session's current record and history.
POST/api/v1/sessions/{id}/reviewConfirm, reject or set field values.
DELETE/api/v1/sessions/{id}Forget a session, transcripts included.
GET/api/v1/localesSupported locales.
GET/healthLiveness.
GET/readyReadiness — speech model loaded, language model reachable.

Deprecated

Kept so existing 1.x clients keep working unchanged:

POST/api/v1/voice/orders/parse1.x. Same engine, 1.x response shape (field `kind`; statuses inferred / incomplete). Use /voice/parse.
POST/api/v1/text/orders/parse1.x text endpoint. Use /text/parse.