Sample requests
These sample requests are autogenerated by the OpenAPI spec.
import requests
url = "https://api.buttondown.com/v1/events"
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": [
{
"id": "13121cd6-0dfc-424c-bb12-988b0a32fcb3",
"subscriber_id": "13121cd6-0dfc-424c-bb12-988b0a32fcb3",
"subscriber": null,
"email_id": null,
"email": null,
"automation_id": null,
"automation": null,
"creation_date": "2020-09-29T00:00:00+00:00",
"metadata": {},
"event_type": "opened"
}
],
"count": 1
}
Path parameters
Consult the Filtering documentation for more information on how to filter and sort your requests.
event_type
Type
EmailEventType
expand
Type
array
Description
If provided, expand the given field. (Only supported field: 'subscriber').