Retrieve an article
Read one article, including its content. This is the only operation that returns a body.
The same two gates apply as on the list. An article stamped with an audience answers 404 to a credential that does not hold that audience, and a future dated article answers 404 until it goes live, including to the newsletter's own team, so that a preview link cannot be shared early.
For an article written in Commune, content is the email rendered to HTML with personalization placeholders resolved against an empty context, so a merge tag never leaks as raw text. For an imported article it is the body as it arrived from the provider.
?expand=content adds content_markdown, the same body as Markdown. Ask for it when a model is going to read the article, and ask for ?fields=content_markdown with it to leave the HTML behind entirely.
Request
- Base URL: https://api.usecommune.com
- URL: https://api.usecommune.com/articles/{article}
- 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: content:read)
Query parameters
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 article, with content.
Example response
{
"short_id": "k7Rm2xQp",
"newsletter": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"authors": [
{
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
],
"thread": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.