---
title: "Test passwordless connector"
method: POST
path: "/api/connectors/{factoryId}/test"
tags: ["Connectors"]
---

# Test passwordless connector

`POST /api/connectors/{factoryId}/test`

Test a passwordless (email or SMS) connector by sending a test message to the given phone number or email address.

## Path parameters

- `factoryId` string, required

## Request body

- object
  - `phone` string, regex — Phone number to send test message to. If this is set, email will be ignored.
  - `email` string, regex — Email address to send test message to. If phone is set, this will be ignored.
  - `config` object, required — Connector configuration object for testing.
  - `locale` string — Preferred language for the message. If not set, the default language will be used. (Applicable only when custom i18n templates are configured.)

## Response `204`

Test message was sent successfully.

## Other responses

- `400` — Invalid request body (e.g. wrong phone number, email or config).
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Connector not found.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/a163dc77d842/schema)
