Skip to main content

Email a guest a sign-in link

POST 

/guests/sign-in-link

Mails the guest who has the given email address a link that signs them in again in a new browser, to the conversations they had (Better Messages 3.3). Public endpoint: it is for a visitor who has no guest credentials in this browser, so it does not take the guest headers, and it refuses a logged in WordPress member. Only a guest whose email is confirmed (or came with a booking) is mailed. The link works once and expires in 30 minutes. A member who opens it while signed in is asked whether to move the guest conversations to the account.

The answer is { "sent": true } for every well formed request, whether the address belongs to a guest or not, whether the email was refused by the limits or not. That way the route does not tell who has chatted here. The limits of /guests/confirm/resend apply to the emails, silently.

When Captcha on Sign-up is on and a provider is ready, captchaToken is required: the place of the check is better-messages:sign-in-link. A visitor who skipped it or failed it gets the 400, 403 or 503 below.

Request#

Responses#

Handled