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

# Submit answer

> Submit an answer for a KYB flow question



## OpenAPI

````yaml post /v1/kyb/submit-answer
openapi: 3.0.0
info:
  title: KYB API
  version: 1.0.0
  description: API documentation for Know Your Business verification flows
servers: []
security:
  - bearerAuth: []
paths:
  /v1/kyb/submit-answer:
    post:
      tags:
        - KYB Flow
      summary: Submit answer
      description: Submit an answer for a KYB flow question
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitAnswerRequest'
      responses:
        '200':
          description: Answer submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KYBFlowResponse'
components:
  schemas:
    SubmitAnswerRequest:
      type: object
      required:
        - actor_id
        - flow_name
        - question_name
        - answer
      properties:
        actor_id:
          type: string
          format: uuid
        flow_name:
          type: string
        question_name:
          type: string
        record_index:
          type: integer
          minimum: 0
        answer:
          type: object
        metadata:
          type: object
          additionalProperties:
            type: string
    KYBFlowResponse:
      type: object
      properties:
        flow:
          $ref: '#/components/schemas/KYBFlow'
        question:
          $ref: '#/components/schemas/Question'
    KYBFlow:
      type: object
      properties:
        actor_id:
          type: string
          format: uuid
        flow_name:
          type: string
        current_step:
          type: string
        previous_step:
          type: string
        status:
          type: string
          enum:
            - NOT_STARTED
            - PENDING
            - COMPLETE
        sections:
          type: array
          items:
            $ref: '#/components/schemas/Section'
    Question:
      type: object
      properties:
        name:
          type: string
        section:
          $ref: '#/components/schemas/Section'
        q:
          type: string
        description:
          type: string
        message:
          $ref: '#/components/schemas/Message'
        schema:
          type: object
        uiSchema:
          type: object
        formData:
          type: object
    Section:
      type: object
      properties:
        name:
          type: string
        title:
          type: string
        icon:
          type: string
        status:
          type: string
          enum:
            - NOT_STARTED
            - PENDING
            - COMPLETE
        show:
          type: boolean
          default: true
    Message:
      type: object
      properties:
        text:
          type: string
        severity:
          type: string
          enum:
            - info
            - warning
            - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````