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

# Post capturechallenge



## OpenAPI

````yaml /openapi.json post /capture/challenge
openapi: 3.0.0
info:
  title: Braid
  version: '1.0'
servers:
  - url: http://localhost:8001/api
security: []
tags:
  - name: Admin
  - name: ApiKey
  - name: Auth
  - name: Calendar
  - name: Capture
  - name: Concerns
  - name: Dashboard
  - name: DataRequests
  - name: Device
  - name: Feedback
  - name: Graph
  - name: Health
  - name: Job
  - name: OAuth
  - name: Organisation
  - name: Realtime
  - name: Search
  - name: Session
  - name: Workshop
  - name: Workspace
paths:
  /capture/challenge:
    post:
      tags:
        - Capture
      requestBody:
        content:
          application/json; charset=utf-8:
            schema:
              $ref: '#/components/schemas/SubmitCaptureChallengeRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SubmitCaptureChallengeSuccess'
                  - $ref: '#/components/schemas/CaptureWaitingResponse'
        '403':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/CaptureRetryForbiddenResponse'
        '409':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: ''
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitCaptureChallengeRequest:
      type: object
      title: SubmitCaptureChallengeRequest
      required:
        - shape
        - colour
        - client_nonce
      properties:
        shape:
          $ref: '#/components/schemas/CaptureChallengeShapeResponse'
        colour:
          $ref: '#/components/schemas/CaptureChallengeColourResponse'
        client_nonce:
          type: string
    SubmitCaptureChallengeSuccess:
      type: object
      title: SubmitCaptureChallengeSuccess
      required:
        - pending_handle
        - display_name
        - display_colour
      properties:
        pending_handle:
          type: string
        display_name:
          type: string
        display_colour:
          $ref: '#/components/schemas/CaptureDisplayColourResponse'
    CaptureWaitingResponse:
      type: object
      title: CaptureWaitingResponse
      required:
        - phase
      properties:
        phase:
          $ref: '#/components/schemas/CapturePhaseResponse'
    CaptureRetryForbiddenResponse:
      type: object
      title: CaptureRetryForbiddenResponse
      required:
        - success
        - message
        - retry_after
      properties:
        success:
          type: boolean
        message:
          type: string
        retry_after:
          type: integer
          format: uint32
    ErrorResponse:
      type: object
      title: ErrorResponse
      required:
        - success
        - message
      properties:
        success:
          type: boolean
        message:
          type: string
    CaptureChallengeShapeResponse:
      type: string
      enum:
        - circle
        - triangle
        - square
        - star
        - heart
        - moon
    CaptureChallengeColourResponse:
      type: string
      enum:
        - blue
        - orange
        - green
    CaptureDisplayColourResponse:
      type: string
      enum:
        - blue
        - orange
        - green
        - purple
        - yellow
        - pink
        - red
        - brown
    CapturePhaseResponse:
      type: string
      enum:
        - waiting
        - live
        - closed

````

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