Send a test copy of an article
Sends this article to addresses you name, or to yourself when you name none, so somebody can look at it before the list does. Needs sending: write.
Leave out to (or the whole body) and the copy goes to the person the credential belongs to. Their address is not echoed back: the answer says sent_to_owner: true and recipients is empty, because an email address is revealed only by GET /me.
Nobody on the list receives anything. No subscriber is touched, no delivery is recorded, the article's status does not move and no event is published. Run it as often as you like on the same draft: it changes nothing about the article, so a repeat is a second look rather than a second send.
The article is rendered the way a real send renders it, with three differences. Personalization placeholders are filled with example data rather than left as raw text. The unsubscribe link points at a page that explains itself rather than at a live token, so a forwarded test cannot unsubscribe a real person. And the subject is prefixed, so a test is never mistaken for the article.
Three of the six send gates apply here. There has to be an article, a verified sending address, and something in the body. The footer required on commercial email, the article's status and the image reachability check do not refuse a test, so a test is where you go to see that the footer has gone. Send an article to the list (POST /articles/{article}/send) refuses on all six.
Test sends count towards the same daily sending allowance real sends do.
Request
- Base URL: https://api.usecommune.com
- URL: https://api.usecommune.com/articles/{article}/test-send
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://usecommune.com/api/oauth/authorize, token URL https://usecommune.com/api/oauth/token, scopes: sending:write)
Request body
Example request
{
"to": [
"editor@example.com",
"proofreader@example.com"
]
}Response
What was attempted and what the sending provider accepted. sent plus failed is always the number of addresses the copy went to, and an address named twice is only sent once.
Example response
{
"article": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.