Skip to content

/v1/holds/{reservationId}/otp

POST
/v1/holds/{reservationId}/otp
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" }'
reservationId
required
string format: uuid
Media typeapplication/json
object
email
required
string format: email
Examplegenerated
{
"email": "hello@example.com"
}

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
Allowed values: hold_not_found hold_not_held bad_code expired exhausted_attempts rate_limited
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
Allowed values: hold_not_found hold_not_held bad_code expired exhausted_attempts rate_limited
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
Allowed values: hold_not_found hold_not_held bad_code expired exhausted_attempts rate_limited
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{
"code": "hold_not_found"
}