curl --request POST \
--url https://{defaultHost}/v1/auth/{app_id}/challenges/{token}/resend{
"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
}
}Resend a challenge delivery (OTP code or magic link). This cancels the current challenge and creates a new one with a fresh code.
Only applicable to delivery-based methods: email_otp, sms_otp, magic_link
curl --request POST \
--url https://{defaultHost}/v1/auth/{app_id}/challenges/{token}/resend{
"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?