Attachments

Initiate Upload

Initiate an attachment upload.

Returns a temporary upload URL. The upload must be confirmed after the file is uploaded.

post/attachments/upload

Request

  • Base URL
    https://api.aspect.inc
  • URL
    https://api.aspect.inc/attachments/upload
  • Auth
    API key in header Authorization

Request body

filenamestring required

Original filename

mime_typestring required

MIME type of the file

size_bytesinteger required

File size in bytes (max 100MB)

Response

Successful Response

idstring uuid required

Resource identifier

urlstring required

Temporary URL for the upload or download

url_expires_atstring date-time required

UTC datetime when the URL expires

Changes

No recorded changes to this operation across all 1 revision of this API.