# Add changelog subscribers (https://notert.io/docs/api/reference/add-changelog-subscribers)

`POST /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.

Access: A token with changelog:manage.

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `emails` | email[] | Yes | The addresses to add, at most 100, each added once whatever its case. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `added` | integer | How many were added. |
| `already` | integer | How many were subscribed already. |
| `skipped` | integer | How many were left out: they unsubscribed, or their address takes no email, so no one who left is added back. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `FORBIDDEN` | The 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_ALLOWED` | The 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_SCOPE` | This API token can't publish, unpublish or delete changelog entries. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This 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_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
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"
  ]
}'
```

## Example response 200

```json
{
  "added": 2,
  "already": 0,
  "skipped": 0
}
```
