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 = "/newsletters"METHOD = "GET"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.
{"results": [ {"api_key": "7f819f8f-8220-4dcd-b7e3-37c81ead8b7a","creation_date": "2019-08-24T14:15:22Z","description": "I write about corgis and Python and lifting and all sorts of stuff!","id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","name": "Justin's neat newsletter","username": "jmduke","footer": "Thanks, as always, for reading!","header": "Howdy, gang!","tint_color": "#0069FF","from_name": "Justin Duke" } ],"count": 1}