Sample requests
These sample requests are autogenerated by the OpenAPI spec.
import requests
url = "https://api.buttondown.com/v1/comments"
headers = {
"accept": "application/json",
"authorization": "Token $BUTTONDOWN_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.text)
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.
email_id
Type
string
Description
If provided, only return comments for the given email.
subscriber_id
Type
string
Description
If provided, only return comments for the given subscriber.
expand
Type
array
Description
If provided, expand the given field. (Only supported fields: 'subscriber', 'email').