Retrieve one delivery attempt
One attempt from the delivery log, by its id. Needs sending: read. The same shape a page of them carries, and what POST /delivery-attempts/{attempt}/replay acts on.
An attempt belonging to another newsletter answers 404, the same as one that does not exist.
The delivery log is kept per newsletter and an attempt is not a Commune object, so there is nothing in the path to work out which newsletter to look in: name it with ?newsletter=. Leave it out if your credential reaches exactly one newsletter.
The body your endpoint answered with is not returned, since a refusing server routinely echoes the request back inside it, credentials included. What came back is response_status, or failure when nothing answered at all; the full body is in the delivery portal.
Request
- Base URL: https://api.usecommune.com
- URL: https://api.usecommune.com/delivery-attempts/{attempt}
- 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:read)
Query parameters
Which newsletter this request is for, by id or by handle.
Most operations never need this. A credential reaches a list of newsletters, and an operation that acts on one of them normally works out which from the object in its path: an article, a thread, a subscriber and a key each belong to a newsletter, so naming one is naming the other. This parameter is for the operations whose subject is not a Commune object, where there is nothing to work it out from.
Leave it out if your credential reaches exactly one newsletter, which is the usual case: it is that one. If your credential reaches several and you leave it out, the answer is 400 naming this parameter, because picking one for you would be picking wrong most of the time.
GET /newsletters lists the newsletters your credential reaches, and is where the value for this comes from.
Comma-separated list of relationship paths to inline in the response. Unexpanded relationships are returned as a reference object carrying only id and object. Each operation documents the paths it accepts, and an unknown path answers 400. Nested paths use a dot, for example article.newsletter.
Comma-separated allow-list of top level properties to return on each object, so a client can trim a response it does not need in full. id and object are always returned. An unknown property name answers 400. Properties omitted by an operation, such as content on any article list, cannot be brought back with fields.
Response
The delivery attempt.
Example response
{
"newsletter": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"destination": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"destination_type": "webhook",
"event_type": "article.published",
"response_status": 200,
"failure": "timeout"
}Changes
No recorded changes to this operation across all 1 revision of this API.