Skip to content

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
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.

connection
required
string
/^pcn_[a-z0-9]{26}$/

Example

pcn_01hx0000000000000000000000
Media typeapplication/json
object
from
required
string format: email
<= 254 characters

Example generated

{
"from": "hello@example.com"
}

Send result

Media typeapplication/json
object
ok
required
boolean
providerMessageId
required
string
nullable
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"
}
}