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

# Get challenge status

> Retrieve the current status of a challenge. Use this to poll for challenge state or display remaining time/attempts to the user.



## OpenAPI

````yaml /swagger.json get /v1/auth/{app_id}/challenges/{token}
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/auth/{app_id}/challenges/{token}:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
      - name: token
        in: path
        description: Challenge token
        required: true
        schema:
          type: string
    get:
      tags:
        - Challenges
      summary: Get challenge status
      description: >-
        Retrieve the current status of a challenge. Use this to poll for
        challenge state or display remaining time/attempts to the user.
      operationId: getChallenge
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  challenge:
                    $ref: '#/components/schemas/Challenge'
        '404':
          description: challenge not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Challenge not found
                  error_code:
                    type: string
                    example: challenge_not_found
      security: []
components:
  schemas:
    Challenge:
      type: object
      properties:
        token:
          type: string
          description: Unique challenge token
          example: ch_abc123xyz789
        status:
          type: string
          enum:
            - pending
            - completed
            - failed
            - expired
            - cancelled
            - denied
          description: Current challenge status
        purpose:
          type: string
          enum:
            - authenticate
            - mfa
            - step_up
            - verify_contact
            - verify_identity
            - custom
            - change_identifier
          description: Purpose of the challenge
        method:
          type: string
          enum:
            - email_otp
            - sms_otp
            - magic_link
            - totp
            - backup_code
            - webauthn
            - push
            - plaid_idv
          description: Verification method
        expires_at:
          type: string
          format: date-time
          description: When the challenge expires
        remaining_attempts:
          type: integer
          description: Number of verification attempts remaining
          example: 3
        time_remaining:
          type: integer
          description: Seconds until challenge expires
          example: 540
        intent:
          type: string
          nullable: true
          description: Custom intent name for custom challenges
        delivery_required:
          type: boolean
          description: Whether this challenge type requires delivery (OTP/magic link)
      required:
        - token
        - status
        - purpose
        - method
        - expires_at
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````