Start a thread
Opens a new conversation in the newsletter's community and returns it. Needs content: write.
The thread is written by the person the credential belongs to, the same person createArticle credits, and readers see it exactly as if they had posted it in Commune. Subscribers are notified the way they are for any new thread, and an @username in the text mentions that person.
content is Markdown, as readers write it in Commune: plain text with light formatting, up to 5,000 characters. It is stored as sent. It can be left out when media attaches something, so a photo with no caption is a thread; a body with neither answers 400.
visibility decides where the thread can be read. subscribers, the default, keeps it inside the newsletter. public also puts it on Commune's global feed in the same write, which is what Put a thread on the global feed (POST /threads/{thread}/publish) does to a thread that already exists.
Publishes thread.created, and thread.published with source created_public when the thread is created public.
Request
- Base URL: https://api.usecommune.com
- URL: https://api.usecommune.com/newsletters/{newsletter}/threads
- 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:write)
Headers
A value of your choosing naming the change this request is making.
Send the same value again to retry the same request. Commune replays the answer the first attempt gave instead of making the change twice, and marks the replay with an Idempotent-Replay: true response header. Send a different value for a different change: a key reused for a request that differs in any way answers 409, because replaying an answer to a question you did not ask is a wrong answer you could not detect.
A UUID per change is the usual choice. Remembered for 24 hours, per credential, so two credentials choosing the same value never see each other's answers.
Required, not optional.
Request body
Response
The thread, as created. It has no replies yet.
Example response
{
"newsletter": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"author": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
},
"article": {
"object": "newsletter",
"id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.