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

# Answer a question

> Ask a natural-language question and receive an answer with web citations in a single JSON response. TinyAnswer must be enabled for your account. Use a personal API key; team API keys are not supported.

[Try TinyAnswer in the playground](https://agent.tinyfish.ai/playground/answer).



## OpenAPI

````yaml https://agent.tinyfish.ai/v1/openapi/answer post /
openapi: 3.0.0
info:
  title: TinyAnswer API
  version: 1.0.0
  description: Ask questions and receive answers with web citations.
  contact:
    name: TinyFish Support
    email: support@tinyfish.ai
servers:
  - url: https://api.answer.tinyfish.ai
security: []
paths:
  /:
    post:
      summary: Answer a question
      description: >-
        Ask a natural-language question and receive an answer with web citations
        in a single JSON response. TinyAnswer must be enabled for your account.
        Use a personal API key; team API keys are not supported.


        [Try TinyAnswer in the
        playground](https://agent.tinyfish.ai/playground/answer).
      operationId: answer
      requestBody:
        required: true
        description: >-
          Only question is accepted: 1–2,000 characters after trimming
          surrounding whitespace.
        content:
          application/json:
            schema:
              type: object
              properties:
                question:
                  type: string
                  minLength: 1
                  maxLength: 2000
                  description: Natural-language question.
                  example: How much funding has Deel raised?
              required:
                - question
              additionalProperties: false
            example:
              question: Who is the CEO of Stripe?
      responses:
        '200':
          description: >-
            The answer and its sources. Citations may be empty; titles may be
            null.
          content:
            application/json:
              schema:
                type: object
                properties:
                  answer:
                    type: string
                    description: Answer text.
                  citations:
                    type: array
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                          nullable: true
                          description: Page title, or null when the page has none.
                        url:
                          type: string
                      required:
                        - title
                        - url
                      additionalProperties: false
                    description: Sources the answer cites.
                  request_id:
                    type: string
                required:
                  - answer
                  - citations
                  - request_id
                additionalProperties: false
              example:
                answer: Patrick Collison is the CEO and co-founder of Stripe.
                citations:
                  - url: https://stripe.com/about
                    title: About Stripe
                request_id: example-request-id
        '400':
          description: >-
            Invalid JSON or question. Unknown fields are rejected.
            (INVALID_INPUT)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: INVALID_INPUT
                  message: Invalid JSON or question. Unknown fields are rejected.
                request_id: example-request-id
        '401':
          description: >-
            Missing or invalid personal API key (INVALID_API_KEY).
            (MISSING_API_KEY)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: MISSING_API_KEY
                  message: Missing API key
                request_id: example-request-id
        '402':
          description: Insufficient wallet balance when enforced. (INSUFFICIENT_CREDITS)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: INSUFFICIENT_CREDITS
                  message: Insufficient wallet balance when enforced.
                request_id: example-request-id
        '403':
          description: >-
            TinyAnswer is not enabled, or the key is unsupported (FORBIDDEN).
            (TIER_ACCESS_DENIED)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: TIER_ACCESS_DENIED
                  message: TinyAnswer is not enabled for this account.
                request_id: example-request-id
        '429':
          description: >-
            Rate or concurrency limit exceeded (CONCURRENCY_LIMIT_EXCEEDED).
            (RATE_LIMIT_EXCEEDED)
          headers:
            Retry-After:
              description: Seconds to wait before retrying, when provided.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: RATE_LIMIT_EXCEEDED
                  message: Rate limit exceeded
                request_id: example-request-id
        '500':
          description: Unexpected server error. (INTERNAL_ERROR)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: INTERNAL_ERROR
                  message: Unexpected server error.
                request_id: example-request-id
        '502':
          description: >-
            Upstream communication failed. Retry with backoff.
            (BACKEND_UNAVAILABLE)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: BACKEND_UNAVAILABLE
                  message: Upstream communication failed. Retry with backoff.
                request_id: example-request-id
        '503':
          description: >-
            Temporarily unavailable (SERVICE_BUSY, BACKEND_UNAVAILABLE). Retry
            with backoff. (SERVICE_BUSY)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: SERVICE_BUSY
                  message: Answer is temporarily unavailable
                request_id: example-request-id
        '504':
          description: Request timed out (GATEWAY_TIMEOUT, BACKEND_UNAVAILABLE). (TIMEOUT)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - MISSING_API_KEY
                          - INVALID_API_KEY
                          - INVALID_INPUT
                          - RATE_LIMIT_EXCEEDED
                          - DAILY_LIMIT_EXCEEDED
                          - INTERNAL_ERROR
                          - RETRY_REQUIRED
                          - UNAUTHORIZED
                          - VAULT_RECONNECT_REQUIRED
                          - FORBIDDEN
                          - NOT_FOUND
                          - FEATURE_NOT_AVAILABLE
                          - SERVICE_BUSY
                          - TIMEOUT
                          - INSUFFICIENT_CREDITS
                          - FREE_ALLOWANCE_EXHAUSTED
                          - CONTENT_POLICY_VIOLATION
                          - MAX_STEPS_EXCEEDED
                          - SITE_BLOCKED
                          - TASK_FAILED
                          - CANCELLED
                          - TIER_ACCESS_DENIED
                          - CONCURRENCY_LIMIT_EXCEEDED
                          - BACKEND_UNAVAILABLE
                          - GATEWAY_TIMEOUT
                        example: INVALID_INPUT
                      message:
                        type: string
                        example: Invalid question
                      details:
                        nullable: true
                        description: Additional error details (validation errors, etc.)
                    required:
                      - code
                      - message
                  request_id:
                    type: string
                    description: >-
                      Request correlation ID, also returned as the X-Request-ID
                      response header. Include it when reporting issues.
                    example: 8f9dba20-e37b-4749-a919-2269e28b4a2c
                required:
                  - error
              example:
                error:
                  code: TIMEOUT
                  message: Request timed out
                request_id: example-request-id
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication. Get your key from the API Keys page.

````

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