/v1/holds/{reservationId}/otp/verify
POST
/v1/holds/{reservationId}/otp/verify
const url = 'http://localhost:8787/v1/holds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/otp/verify';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"code":"example","email":"hello@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/holds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/otp/verify \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "email": "hello@example.com" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”reservationId
required
string format: uuid
Request Body
Section titled “Request Body”Media typeapplication/json
object
code
required
string
email
required
string format: email
Examplegenerated
{ "code": "example", "email": "hello@example.com"}Responses
Section titled “Responses”Code matched an active, unexpired, not-yet-consumed OTP for this hold+email. The returned token authorizes confirming ONLY this one hold (API-008).
Media typeapplication/json
object
expiresAt
required
string
guestVerificationToken
required
string
Examplegenerated
{ "expiresAt": "example", "guestVerificationToken": "example"}No active OTP for this hold+email, wrong code, expired, or attempt-locked — all fold into the SAME bad_code shape (M4: no oracle for which one it was).
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "hold_not_found"}OTP-verify rate limit exceeded for this hold.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "hold_not_found"}