Test passwordless connector
Test a passwordless (email or SMS) connector by sending a test message to the given phone number or email address.
Path parameters
-
The unique identifier of the factory.
Body Required
-
phone string(regex)
Phone number to send test message to. If this is set, email will be ignored.
Format should match the following pattern:
/^\d+$/
. -
email string(regex)
Email address to send test message to. If phone is set, this will be ignored.
Format should match the following pattern:
/^\S+@\S+\.\S+$/
. -
Connector configuration object for testing.
Additional properties are allowed.
POST /api/connectors/{factoryId}/test
curl \
-X POST https://[tenant_id].logto.app/api/connectors/{factoryId}/test \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"phone":"string","email":"string","config":{}}'
Request examples
{
"phone": "string",
"email": "string",
"config": {}
}