Create a subscriber
Add a subscriber directly, the way an import would. The subscribe form on your published site uses double opt-in instead.
A site’s list holds each email address once. Posting an address already on the list returns the existing subscriber with 201, keeping its original id, subscribedAt, and any confirmedAt. Fields you send overwrite the stored ones. A subscriber who had unsubscribed stays unsubscribed and comes back with unsubscribedAt still set. Only the confirmation link sent to their own address subscribes them again. This route never answers 409.
POST https://sitepaste.com/api/v1/public/sites/{siteId}/newsletter-subscribers
Requires the data scope.
Usage
curl -X POST "https://sitepaste.com/api/v1/public/sites/default/newsletter-subscribers" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]", "name": "Reader", "confirmed": true }'
Authorizations
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Body
| Field | Type | Required | Description |
|---|---|---|---|
| string | Yes | Subscriber email. | |
| name | string | No | Display name (max 100 chars). Trimmed. On a re-post, an empty or omitted name keeps the stored one; clear it with a PATCH. |
| phone | string | No | Phone (max 20 chars). Trimmed. On a re-post, an empty or omitted phone keeps the stored one; clear it with a PATCH. |
| categories | array | No | Event type slugs; must exist on the site. On a re-post, a non-empty list replaces the stored one and an empty or omitted list keeps it. |
| confirmed | boolean | No | Mark confirmed immediately (imports of an already-confirmed list). false or omitted never unconfirms a subscriber who is already confirmed. |
The site is named in the path, not the body. See addressing.
Response
201 Created with the new subscriber, and a Location header naming it.
{
"id": "n7rstu2vwxyz",
"email": "[email protected]",
"categories": [],
"subscribedAt": "2026-02-08T12:00:00Z"
}
A subscriber added this way is unconfirmed unless the request sets confirmed: true. Newsletters go only to confirmed subscribers who have not unsubscribed. When the workspace has a Resend key and sender address set, a visitor who signs up through a site’s newsletter form gets an email asking them to confirm, and is confirmed when they do. Without them, the signup stays unconfirmed until you confirm it. The response carries confirmedAt once they are.