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 = "/comments"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": [ {"creation_date": "2019-08-24T14:15:22Z","id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","subscriber_id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","email_id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","body": "I really liked this email!","parent_id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } ],"count": 1}
Path parameters
Consult the Filtering documentation for more information on how to filter and sort your requests.
string
email_id
If provided, only return comments for the given email.
string
subscriber_id
If provided, only return comments for the given subscriber.
array
expand
If provided, expand the given field. (Only supported fields: 'subscriber', 'email').