Set up email verification via HTTP call
The official Logto connector for HTTP email.
In this guide, we assume you have basic knowledge of Logto Connectors. If you don't, check out the Configure connectors guide to get started.
Get startedβ
The HTTP email connector allows you to send emails via HTTP call. To use the HTTP email connector, you'll need to have your own email service that expose an HTTP API for sending emails. Logto will call this API when it needs to send an email. For example, when a user registers, Logto will call the HTTP API to send a verification email.
Set up HTTP email connectorβ
To use the HTTP email connector, you need to set up an HTTP endpoint that Logto can call. And an optional authorization token for the endpoint.
Payloadβ
The HTTP email connector will send the following payload to the endpoint when it needs to send an email:
{
"to": "[email protected]",
"type": "SignIn",
"payload": {
"code": "123456"
}
}
You can find all of the types in Email template, and the full type definition of SendMessageData
in connector-kit.