Attachments

Retrieve Attachment

Changed on

Retrieve an attachment

get/attachments/{id}

Request

  • Base URL
    https://api.buttondown.com/v1
  • URL
    https://api.buttondown.com/v1/attachments/{id}
  • Auth
    API key in header Authorization

Path parameters

idstring required

Response

OK

idstring required

A unique TypeID associated with the object.

creation_datestring date-time required

The date and time at which the object was first created.

namestring required

The name of the attachment.

filestring required

The URL of the attachment file.

sizeinteger required

The size of the attachment in bytes.

Example response

{
  "name": "newsletter-guide.pdf",
  "file": "https://buttondown.s3.amazonaws.com/attachments/newsletter-guide.pdf",
  "size": 1000
}

Changes

    • info

      added the non-success response with the status

    • breaking

      the response's property type changed from no type to string for status

    • breaking

      the response's property type changed from no type to string for status

    • info

      the endpoint scheme security ApiKeyAuth was added to the API

    • info

      the endpoint scheme security PermissionAuthenticationRequirement was removed from the API

    • info

      api tag Attachments added

    • info

      added the non-success response with the status