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

# Resolve

> Answer text, a message array, or an email object without streaming.

Returns the completed answer, or 202 with a Location to poll. Set Accept to
text/markdown or text/plain to receive only the completed answer body.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/resolutions
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/resolutions:
    post:
      tags:
        - Resolutions
      summary: Resolve
      description: >-
        Answer text, a message array, or an email object without streaming.


        Returns the completed answer, or 202 with a Location to poll. Set Accept
        to

        text/markdown or text/plain to receive only the completed answer body.
      operationId: create_resolution
      parameters:
        - in: header
          name: Idempotency-Key
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
          required: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolutionIn'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolutionOut'
            text/markdown:
              schema:
                type: string
            text/plain:
              schema:
                type: string
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolutionOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolutionOut'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolutionOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    ResolutionIn:
      additionalProperties: false
      properties:
        agent_id:
          format: uuid
          title: Agent Id
          type: string
        input:
          anyOf:
            - maxLength: 100000
              minLength: 1
              type: string
            - items:
                $ref: '#/components/schemas/ResolutionMessage'
              maxItems: 100
              minItems: 1
              type: array
            - $ref: '#/components/schemas/ResolutionEmail'
          title: Input
        conversation_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Conversation Id
        language:
          default: en
          maxLength: 20
          minLength: 2
          title: Language
          type: string
        wait_seconds:
          default: 30
          maximum: 60
          minimum: 0
          title: Wait Seconds
          type: integer
      required:
        - agent_id
        - input
      title: ResolutionIn
      type: object
    ResolutionOut:
      properties:
        id:
          format: uuid
          title: Id
          type: string
        status:
          enum:
            - queued
            - running
            - completed
            - requires_action
            - canceled
            - failed
          title: Status
          type: string
        conversation_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Conversation Id
        message_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Message Id
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
        sources:
          items:
            $ref: '#/components/schemas/MessageSourceOut'
          title: Sources
          type: array
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        status_url:
          title: Status Url
          type: string
      required:
        - id
        - status
        - status_url
      title: ResolutionOut
      type: object
    ResolutionMessage:
      additionalProperties: false
      properties:
        role:
          enum:
            - user
            - assistant
          title: Role
          type: string
        content:
          maxLength: 100000
          minLength: 1
          title: Content
          type: string
      required:
        - role
        - content
      title: ResolutionMessage
      type: object
    ResolutionEmail:
      additionalProperties: false
      properties:
        subject:
          default: ''
          maxLength: 1000
          title: Subject
          type: string
        from:
          default: ''
          maxLength: 1000
          title: From
          type: string
        to:
          items:
            maxLength: 1000
            type: string
          maxItems: 50
          title: To
          type: array
        text:
          anyOf:
            - maxLength: 100000
              minLength: 1
              type: string
            - type: 'null'
          title: Text
        html:
          anyOf:
            - maxLength: 100000
              minLength: 1
              type: string
            - type: 'null'
          title: Html
      title: ResolutionEmail
      type: object
    MessageSourceOut:
      properties:
        object:
          default: message_source
          title: Object
          type: string
        document_id:
          title: Document Id
          type: string
        page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        position:
          title: Position
          type: integer
      required:
        - document_id
        - position
      title: MessageSourceOut
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````