> ## 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.

# Deny a challenge

> Explicitly deny/reject a challenge. Used for push-based approvals or when the user wants to reject a verification request.

If a callback URL was provided when creating the challenge, it will be notified of the denial.




## OpenAPI

````yaml /swagger.json post /v1/auth/{app_id}/challenges/{token}/deny
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}/deny:
    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
    post:
      tags:
        - Challenges
      summary: Deny a challenge
      description: >
        Explicitly deny/reject a challenge. Used for push-based approvals or
        when the user wants to reject a verification request.


        If a callback URL was provided when creating the challenge, it will be
        notified of the denial.
      operationId: denyChallenge
      parameters: []
      responses:
        '200':
          description: challenge denied
          content:
            application/json:
              schema:
                type: object
                properties:
                  challenge:
                    $ref: '#/components/schemas/Challenge'
        '422':
          description: challenge not pending
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Challenge is no longer pending
                  error_code:
                    type: string
                    example: challenge_not_pending
      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

````