- API reference
- Changelog subscribers
Add changelog subscribers
POSThttps://app.notert.io/api/v1/changelog-subscribers
Adds addresses to the changelog's subscribers as the token's holder, as Settings > Changelog's Add emails does: each becomes a contact, found or added, and every entry that goes live after emails them. One who unsubscribed, or whose address takes no email, is left out, so no one who left is added back. Only a token whose holder is an owner or admin adds any.
A token with changelog:manage. How to send one
Request
curl -X POST https://app.notert.io/api/v1/changelog-subscribers \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"emails": [
"sam@example.com"
]
}'Response 200
{
"added": 2,
"already": 0,
"skipped": 0
}Body
emailsemail[]RequiredThe addresses to add, at most 100, each added once whatever its case.
Response 200
addedintegerHow many were added.
alreadyintegerHow many were subscribed already.
skippedintegerHow many were left out: they unsubscribed, or their address takes no email, so no one who left is added back.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
FORBIDDENThe teammate who holds this API token's secret can't add changelog subscribers. Only an owner or admin can: one of them should roll it in the workspace's settings. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't publish, unpublish or delete changelog entries. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.