/projects/{project_id}/branches/{branch_id}/auth/email_provider/testSend test email using the saved email providerSends a test email using the branch's already-saved custom SMTP configuration. Only the recipient_email is provided — the stored SMTP settings and password are used server-side, so the caller does not need to re-supply (or be able to read) the password. This avoids the GET response's masked password being sent back, which would fail SMTP authentication.
Requires a configured custom SMTP provider on a Better Auth integration. A shared provider, a missing configuration, or a non-Better-Auth integration is rejected.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
Request to test the branch's saved email provider. Only the recipient is supplied; the stored SMTP settings and password are used server-side.
recipient_emailstring · emailrequiredThe email address to send the test email to.
{
"recipient_email": "user@example.com"
}Responses
error_messagestringThe error message from the email server.
successbooleanrequiredWhether the test email was sent successfully.
{
"error_message": "string",
"success": true
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}