Image
Images are, well, images! Buttondown allows you to upload images to its secure S3 bucket and do with them what you will. This is sort of an odd duck of an API, to be sure, but if you want to be able to do things like draft and send emails completely on your iPad you need a surefire way of creating images.
Basic image
{"creation_date": "2019-08-24T14:15:22Z","id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","image": "string"}
field | type | description |
---|---|---|
id | string | |
creation_date | string | |
image | string |
Create Image
python
ruby
curl
Copy to clipboard
curl -X POST https://api.buttondown.email/v1/images
Responses
Status | Description | Sample Response |
---|---|---|
201 | Created |
|
403 | Forbidden |
|
Delete Image
python
ruby
curl
Copy to clipboard
curl -X DELETE https://api.buttondown.email/v1/images/{pk}
Responses
Status | Description | Sample Response |
---|---|---|
204 | No Content |
|
403 | Forbidden |
|
404 | Not Found |
|
In the wild
Check out how Jon Sullivan uses the Buttondown API to upload images through Typora and then embed them in his newsletters.