Drafts
The draft object
A draft looks like this:
{"creation_date": "2019-08-24T14:15:22Z","id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","body": "Lorem ipsum yadda yadda","subject": "This is my first email on Buttondown!"}
field | type | description |
---|---|---|
creation_date | datetime | |
id | uuid | |
subject | string | |
body | string |
Listing drafts
GET → https://api.buttondown.email/v1/drafts
Parameters
parameter | type | description | optional |
---|---|---|---|
page | string | A page number within the paginated result set. Each page has 100 results. |
Responses
Status | Description | Sample Response |
---|---|---|
200 |
|
Creating a new draft
POST → https://api.buttondown.email/v1/drafts
Parameters
parameter | type | description | optional |
---|---|---|---|
body | string | ||
subject | string |
Responses
Status | Description | Sample Response |
---|---|---|
201 |
|
Retrieving a specific draft
GET → https://api.buttondown.email/v1/drafts/<id>
Responses
Status | Description | Sample Response |
---|---|---|
200 |
|