Subscribe or unsubscribe a contact from a topic
The two directions behave differently, and the asymmetry is deliberate: consent needs proof, withdrawal of consent does not.
subscribed: true does NOT subscribe anyone. It parks the contact at pending and returns a confirmation_url; nothing is mailed on this topic until somebody opens it. There is no parameter to skip that step. A caller asserting a subscription is not evidence that the mailbox holder agreed — anyone can type an address into a form — and treating the assertion as consent is the exact failure double opt-in exists to prevent. Sendly does not send the confirmation email; you do, from your own verified domain, because it is your relationship with the contact and your sending reputation.
subscribed: false records the opt-out immediately. Requiring somebody to confirm that they want to stop is a dark pattern, and it is also the fastest route to a spam report.
Requires the topics:write scope — Create and edit topics, and change what your contacts are subscribed to — this decides who your campaigns reach.
Request
- Base URL: https://api.sendly.now
- URL: https://api.sendly.now/api/v1/topics/{id}/subscriptions
- Auth: one of:
- HTTP bearer
- API key in cookie better-auth.session_token
- OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: topics:write)
Path parameters
Resource id.
Request body
Response
The resulting subscription
Changes
No recorded changes to this operation across all 1 revision of this API.