curl --request POST \
--url https://{defaultHost}/v1/auth/{app_id}/challenges/{token}/deny{
"challenge": {
"token": "ch_abc123xyz789",
"status": "pending",
"purpose": "authenticate",
"method": "email_otp",
"expires_at": "2023-11-07T05:31:56Z",
"remaining_attempts": 3,
"time_remaining": 540,
"intent": "<string>",
"delivery_required": true
}
}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.
curl --request POST \
--url https://{defaultHost}/v1/auth/{app_id}/challenges/{token}/deny{
"challenge": {
"token": "ch_abc123xyz789",
"status": "pending",
"purpose": "authenticate",
"method": "email_otp",
"expires_at": "2023-11-07T05:31:56Z",
"remaining_attempts": 3,
"time_remaining": 540,
"intent": "<string>",
"delivery_required": true
}
}Was this page helpful?