/v1/holds/{reservationId}/otp
POST
/v1/holds/{reservationId}/otp
const url = 'http://localhost:8787/v1/holds/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/otp';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "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
email
required
string format: email
Examplegenerated
{ "email": "hello@example.com"}Responses
Section titled “Responses”OTP issued and emailed to the guest (fake EmailPort in tests).
Media typeapplication/json
object
accepted
required
boolean
expiresAt
required
string
Example
{ "accepted": true}No such hold for this API key’s tenant.
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"}Hold exists but is not an active (unexpired, held) 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"}OTP-issue 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"}