Skip to content

Test send of the document open in the editor, to up to 5 addresses (excluding suppressed ones and those pending confirmation; per person, 25 recipients per hour): creates no rows and does not count in metrics

POST
/v1/brands/{brand}/test-send
curl --request POST \
--url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/test-send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "document": { "additionalProperty": "example" }, "subject": "example", "preheader": "example", "emails": [ "hello@example.com" ], "fromEmail": "hello@example.com", "fromName": "example", "replyTo": "hello@example.com", "connectionId": "example" }'
brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
Media typeapplication/json
object
document
required

M5 document (schemaVersion 1)

object
key
additional properties
nullable
subject
required
string
>= 1 characters <= 998 characters /^[^\x00-\x1f\x7f]*$/
preheader
string
nullable <= 500 characters /^[^\x00-\x1f\x7f]*$/
emails
required

Only emails of active organization members (422 test_recipient_not_member)

Array<string>
>= 1 items <= 5 items
fromEmail

Only valid if it belongs to a verified domain or identity of the brand on that connection; otherwise the brand’s verified sender is used (this one is ignored)

string format: email
<= 254 characters
fromName
string
nullable <= 120 characters /^[^\x00-\x1f\x7f]*$/
replyTo
string format: email
nullable <= 254 characters
connectionId

Brand or shared connection; without it, the most recent active one

string
<= 64 characters

Example generated

{
"document": {
"additionalProperty": "example"
},
"subject": "example",
"preheader": "example",
"emails": [
"hello@example.com"
],
"fromEmail": "hello@example.com",
"fromName": "example",
"replyTo": "hello@example.com",
"connectionId": "example"
}

Result per address

Media typeapplication/json
object
results
required
Array<object>
object
email
required
string
ok
required
boolean
error
string

Example generated

{
"results": [
{
"email": "example",
"ok": true,
"error": "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"
}
}

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"
}
}

Too many attempts

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"
}
}