Buttondown Documentation
Introduction
API recipes
Emails
Subscribers
Tags
Images
Newsletters
Exports
Bulk actions
RSS feeds
Webhooks
Comments
Surveys
Routes
Coupons
Automations
Changelog
© 2016–2024 Buttondown LLC.
These sample requests are autogenerated by the OpenAPI spec.
import requests url = "https://api.buttondown.com/v1/surveys" headers = { "accept": "application/json", "authorization": "Token $BUTTONDOWN_API_KEY" } response = requests.get(url, headers=headers) print(response.text)
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", "creation_date": "2020-09-29T00:00:00+00:00", "identifier": "color", "question": "What's your favorite color?", "response_count": 0, "answers": [ "Red", "Green", "Blue" ], "notes": "", "response_cadence": "once", "status": "active", "is_freeform_response_enabled": false } ], "count": 1 }