openapi: 3.1.0 info: title: Borminto AI Voice version: 2026-12-03 description: >- Conversations with text and voice replies, live calls, Text To Sound, Sound To Text and live captions. Keys start with bv_ and stay on your server. Full guide: https://docs.borminto.com/ai-voice/conversations servers: - url: https://borminto.com/api/v1/voice security: - voiceKey: [] paths: /capabilities: get: summary: Voices, languages and limits responses: '200': { description: Supported settings, content: { application/json: { schema: { type: object } } } } /usage: get: summary: Allowance, limits and recent usage responses: '200': { description: Usage, content: { application/json: { schema: { $ref: '#/components/schemas/Usage' } } } } '401': { $ref: '#/components/responses/Error' } /conversations: get: summary: List recent conversations responses: '200': { description: Conversations, content: { application/json: { schema: { type: object } } } } post: summary: Create a conversation requestBody: content: application/json: schema: type: object properties: settings: { $ref: '#/components/schemas/Settings' } metadata: { type: object, description: Up to 2 KB, private to your server. } responses: '201': { description: Conversation, content: { application/json: { schema: { $ref: '#/components/schemas/Conversation' } } } } '401': { $ref: '#/components/responses/Error' } '422': { $ref: '#/components/responses/Error' } /conversations/{conversation}: parameters: [{ $ref: '#/components/parameters/Conversation' }] get: summary: Read a conversation and its recent history responses: '200': { description: Conversation, content: { application/json: { schema: { $ref: '#/components/schemas/Conversation' } } } } '404': { $ref: '#/components/responses/Error' } patch: summary: Change settings or metadata requestBody: content: application/json: schema: type: object properties: settings: { $ref: '#/components/schemas/Settings' } metadata: { type: object } responses: '200': { description: Conversation, content: { application/json: { schema: { $ref: '#/components/schemas/Conversation' } } } } /conversations/{conversation}/turns: parameters: [{ $ref: '#/components/parameters/Conversation' }] post: summary: Ask a question parameters: [{ $ref: '#/components/parameters/IdempotencyRequired' }] requestBody: required: true content: application/json: schema: type: object properties: text: { type: string, maxLength: 2400 } reply: { type: string, maxLength: 2400 } multipart/form-data: schema: type: object properties: audio: { type: string, format: binary } reply: { type: string } responses: '200': { description: 'Events, one JSON object per line', content: { application/x-ndjson: { schema: { type: string } } } } '409': { $ref: '#/components/responses/Error' } '422': { $ref: '#/components/responses/Error' } '429': { $ref: '#/components/responses/Error' } '503': { $ref: '#/components/responses/Error' } /conversations/{conversation}/tool-result: parameters: [{ $ref: '#/components/parameters/Conversation' }] post: summary: Answer a tool.request parameters: [{ $ref: '#/components/parameters/IdempotencyRequired' }] requestBody: required: true content: application/json: schema: type: object required: [turn_id, result] properties: turn_id: { type: string, format: uuid } result: { type: string, maxLength: 12000 } reply: { type: string, maxLength: 2400 } responses: '200': { description: 'Events, one JSON object per line', content: { application/x-ndjson: { schema: { type: string } } } } /conversations/{conversation}/connect: parameters: [{ $ref: '#/components/parameters/Conversation' }] post: summary: Get a one-time ticket for a live call requestBody: required: true content: application/json: schema: type: object required: [transport] properties: transport: { type: string, enum: [websocket, webrtc] } greeting: { type: string, maxLength: 300 } speech_pause_ms: { type: integer, enum: [950, 3200] } settings: { $ref: '#/components/schemas/Settings' } metadata: { type: object } responses: '201': description: Ticket content: application/json: schema: type: object properties: conversation_id: { type: string, format: uuid } ticket: { type: string } expires_in: { type: integer, example: 45 } path: { type: string, example: /voice-stream/socket } '402': { $ref: '#/components/responses/Error' } '409': { $ref: '#/components/responses/Error' } /conversations/{conversation}/stop: parameters: [{ $ref: '#/components/parameters/Conversation' }] post: summary: Stop the current reply responses: '200': { description: Stopped, content: { application/json: { schema: { type: object } } } } /conversations/{conversation}/connection: parameters: [{ $ref: '#/components/parameters/Conversation' }] delete: summary: End the live call responses: '200': { description: Ended, content: { application/json: { schema: { type: object } } } } /speech: post: summary: Generate speech (up to 3 minutes) parameters: [{ $ref: '#/components/parameters/Idempotency' }] requestBody: required: true content: application/json: schema: type: object required: [text, voice, language] properties: text: { type: string, maxLength: 2500 } voice: { type: string } language: { type: string, example: en-US } responses: '200': { description: The WAV file, content: { audio/wav: { schema: { type: string, format: binary } } } } '202': { description: Accepted for background generation, content: { application/json: { schema: { $ref: '#/components/schemas/SpeechRequest' } } } } '402': { $ref: '#/components/responses/Error' } '409': { $ref: '#/components/responses/Error' } '422': { $ref: '#/components/responses/Error' } '429': { $ref: '#/components/responses/Error' } '503': { $ref: '#/components/responses/Error' } /speech/{speechRequest}: parameters: [{ name: speechRequest, in: path, required: true, schema: { type: string, format: uuid } }] get: summary: Speech request status responses: '200': { description: Status, content: { application/json: { schema: { $ref: '#/components/schemas/SpeechRequest' } } } } /speech/{speechRequest}/audio: parameters: [{ name: speechRequest, in: path, required: true, schema: { type: string, format: uuid } }] get: summary: Download the generated audio responses: '200': { description: The WAV file, content: { audio/wav: { schema: { type: string, format: binary } } } } '409': { $ref: '#/components/responses/Error' } '410': { $ref: '#/components/responses/Error' } /dictations: post: summary: Transcribe a recording description: Upload up to 15 minutes of audio and 32 MiB. Recordings over 30 seconds are processed in the background. parameters: [{ $ref: '#/components/parameters/Idempotency' }] requestBody: required: true content: multipart/form-data: schema: type: object required: [audio] properties: audio: { type: string, format: binary } language: { type: string, example: ar } responses: '200': description: Transcript content: application/json: schema: type: object properties: text: { type: string } language_hint: { type: string } audio_ms: { type: integer } elapsed_ms: { type: integer } '202': { description: Accepted for background transcription, content: { application/json: { schema: { $ref: '#/components/schemas/DictationRequest' } } } } '413': { $ref: '#/components/responses/Error' } '402': { $ref: '#/components/responses/Error' } '409': { $ref: '#/components/responses/Error' } '422': { $ref: '#/components/responses/Error' } '429': { $ref: '#/components/responses/Error' } '503': { $ref: '#/components/responses/Error' } /dictations/{dictationRequest}: parameters: [{ name: dictationRequest, in: path, required: true, schema: { type: string, format: uuid } }] get: summary: Check a background transcription with the same application key responses: '200': { description: Request status and the transcript when complete, content: { application/json: { schema: { $ref: '#/components/schemas/DictationRequest' } } } } '404': { $ref: '#/components/responses/Error' } '410': { $ref: '#/components/responses/Error' } /dictations/usage: get: summary: Allowance and usage for Sound To Text responses: '200': { description: Usage, content: { application/json: { schema: { $ref: '#/components/schemas/Usage' } } } } /transcription-sessions: post: summary: Create a live caption session requestBody: required: true content: application/json: schema: type: object required: [language] properties: language: { type: string, example: ar-EG } responses: '201': description: Session content: application/json: schema: type: object properties: session_id: { type: string, format: uuid } state: { type: string } /transcription-sessions/{session}: parameters: [{ $ref: '#/components/parameters/Session' }] get: summary: Final lines of a session, for 24 hours responses: '200': { description: Segments, content: { application/json: { schema: { type: object } } } } /transcription-sessions/{session}/connect: parameters: [{ $ref: '#/components/parameters/Session' }] post: summary: Get a one-time ticket for captions requestBody: required: true content: application/json: schema: type: object required: [transport] properties: transport: { type: string, enum: [websocket, webrtc] } responses: '201': description: Ticket content: application/json: schema: type: object properties: session_id: { type: string, format: uuid } ticket: { type: string } expires_in: { type: integer } protocol: { type: string, const: borminto.transcription.v1 } path: { type: string } /transcription-sessions/{session}/connection: parameters: [{ $ref: '#/components/parameters/Session' }] delete: summary: End the caption session responses: '200': { description: Ended, content: { application/json: { schema: { type: object } } } } components: securitySchemes: voiceKey: type: http scheme: bearer description: A voice application key. It starts with bv_. parameters: Conversation: { name: conversation, in: path, required: true, schema: { type: string, format: uuid } } Session: { name: session, in: path, required: true, schema: { type: string, format: uuid } } Idempotency: { name: Idempotency-Key, in: header, required: false, schema: { type: string, pattern: '^[A-Za-z0-9_-]{8,80}$' } } IdempotencyRequired: { name: Idempotency-Key, in: header, required: true, schema: { type: string, pattern: '^[A-Za-z0-9_-]{8,80}$' } } responses: Error: description: 'Error: {"error": {"code", "message"}} for allowance and service errors, {"message", "code"} for request errors' content: application/json: schema: { type: object } schemas: DictationRequest: type: object required: [request_id, status, status_url] properties: request_id: { type: string, format: uuid } status: { type: string, enum: [pending, running, complete, failed] } status_url: { type: string, format: uri } text: { type: string } language_hint: { type: string } audio_ms: { type: integer } elapsed_ms: { type: integer } error: { type: object, nullable: true, properties: { code: { type: string }, message: { type: string } } } Settings: type: object properties: language: { type: string, example: ar-EG } voice: { type: [string, 'null'] } mode: { type: string, enum: [text, voice, both] } knowledge: { type: [string, 'null'], maxLength: 12000 } context: { type: [string, 'null'], maxLength: 12000 } tool: { type: [string, 'null'] } Conversation: type: object properties: conversation_id: { type: string, format: uuid } connected: { type: boolean } settings: { $ref: '#/components/schemas/Settings' } connection: { type: object } turn: { type: object } SpeechRequest: type: object properties: request_id: { type: string, format: uuid } status: { type: string, examples: [pending, complete, failed] } stage: { type: [string, 'null'] } progress: { type: integer } status_url: { type: string } audio_url: { type: string } error: { type: [object, 'null'] } Usage: type: object properties: usage: type: object properties: state: { type: string } limit_ms: { type: [integer, 'null'] } used_ms: { type: integer } reserved_ms: { type: integer } remaining_ms: { type: [integer, 'null'] } rpm: { type: integer } concurrency: { type: integer } resets_at: { type: [string, 'null'] } expires_at: { type: [string, 'null'] } services: { type: array, items: { type: object } } history: { type: array, items: { type: object } }