Send a test email through the connection to your own address (credentials.manage). Only `from` is yours to choose.
POST
/v1/connections/{connection}/test-send
const url = 'https://api.replifier.com/v1/connections/pcn_01hx0000000000000000000000/test-send';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"from":"hello@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/connections/pcn_01hx0000000000000000000000/test-send \ --header 'Content-Type: application/json' \ --data '{ "from": "hello@example.com" }'The recipient is always the verified email of the requester: it cannot be used to write to third parties. It creates no campaigns and does not count in metrics.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”connection
required
string
Example
pcn_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
from
required
string format: email
Example generated
{ "from": "hello@example.com"}Responses
Section titled “Responses”Send result
Media typeapplication/json
object
ok
required
boolean
providerMessageId
required
string
error
required
object
kind
required
string
code
required
string
message
required
string
Example generated
{ "ok": true, "providerMessageId": "example", "error": { "kind": "example", "code": "example", "message": "example" }}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}