> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oviond.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ask Oviond

> One chat turn in the user's own conversation: a new question (a new conversation when `id` doesn't exist yet), answers to approval cards, or a retry. Streams an AI SDK UI message stream (server-sent events); the question and the reply are stored.



## OpenAPI

````yaml https://api.oviond.com/openapi.json post /v1/ask-oviond
openapi: 3.1.0
info:
  title: Oviond Backend API
  version: 1.0.0
  description: Authentication, account management, billing, and media services for Oviond.
  x-logo:
    url: https://app.oviond.com/img/oviond-full-logo.svg
    altText: Oviond
servers:
  - url: https://api.oviond.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/ask-oviond:
    post:
      tags:
        - Ask Oviond
      summary: Ask Oviond
      description: >-
        One chat turn in the user's own conversation: a new question (a new
        conversation when `id` doesn't exist yet), answers to approval cards, or
        a retry. Streams an AI SDK UI message stream (server-sent events); the
        question and the reply are stored.
      operationId: ask_oviond
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AskOviondRequest'
      responses:
        '200':
          description: The reply, streamed
          content:
            text/event-stream:
              schema:
                type: string
components:
  schemas:
    AskOviondRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^[A-Za-z0-9]+$
        trigger:
          type: string
          enum:
            - submit-message
            - regenerate-message
        message:
          type: object
          properties:
            text:
              type: string
              minLength: 1
              maxLength: 4000
            files:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 40
                    pattern: ^[A-Za-z0-9]+$
                  name:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^/\\]+$
                required:
                  - id
                  - name
                additionalProperties: false
              maxItems: 5
          required:
            - text
          additionalProperties: false
        approvals:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
                maxLength: 80
              approved:
                type: boolean
            required:
              - id
              - approved
            additionalProperties: false
          minItems: 1
          maxItems: 20
        page_path:
          type: string
          maxLength: 200
          pattern: ^\/[A-Za-z0-9/_-]*$
        page_id:
          type: string
          minLength: 1
          maxLength: 40
          pattern: ^[A-Za-z0-9]+$
        widget_ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 40
            pattern: ^[A-Za-z0-9]+$
          maxItems: 20
      required:
        - id
        - trigger
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Oviond API key (prefix `oviond_`) sent as a Bearer token — the
        credential for REST/programmatic and headless integrations. Manage keys
        in Settings → API Keys. API keys do NOT authenticate the MCP endpoint
        (/mcp), which uses OAuth 2.1 + PKCE.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase-issued JWT used by the Oviond web app session. External API
        consumers should authenticate with an Oviond API key (ApiKeyAuth)
        instead.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.