By default, newly created subscribers are subject to double opt-in — they will receive an email asking them to confirm their subscription, and have a state of unactivated until they do so.
You can't disable this behavior globally, but you can disable it on a per-subscriber basis by providing a subscriber_type of regular in the request body.
Sample requests
These sample requests are autogenerated by the OpenAPI spec.
import requests# You can find this key in your API requests page:# https://buttondown.email/requestsBUTTONDOWN_API_KEY = "your-api-key-here"headers = {"Authorization": f"Token {BUTTONDOWN_API_KEY}",}BASE_URL = "https://api.buttondown.email"ENDPOINT = "/subscribers"METHOD = "POST"response = requests.request(METHOD, f"{BASE_URL}/v1{ENDPOINT}", headers=headers)
Sample responses
The IDs and values referenced in these responses are fake; please only rely on these responses for overall structure.