Buttondown Documentation
You'll notice that the endpoint is /subscribers/{id_or_email}
, not {id}
. This is because you can retrieve a subscriber by either their ID or their email address, so you don't have to store or remember the ID if you don't want to.
If you update a subscriber's type from premium
to unsubscribed
, it will also cancel their backing Stripe subscription.
These sample requests are autogenerated by the OpenAPI spec. This endpoint requires one or more parameters in the URL: those are offset in curly-braces.
The IDs and values referenced in these responses are fake; please only rely on these responses for overall structure.
All parameters are optional unless explicitly specified.
"telemachus@buttondown.email"
Any notes you want to attach to the subscriber. These are not publicly visible.
"One of our first subscribers!"
This endpoint may return the following error codes. See the error codes reference for more details about error handling.
Error Code | Description |
---|---|
email_already_exists | A subscriber with this email address already exists. |
email_has_been_changed_too_many_times | This subscriber's email has been changed too many times. |
email_invalid | The email address provided is not valid. |
subscriber_type_invalid | The subscriber type provided is not valid. |
tag_invalid | The tag provided is invalid or does not exist. |