Attachments

Create upload link

Mint a one-time link to upload one file with a plain PUT of its bytes (no multipart, no base64). Single use, valid for an hour, max 100MB.

post/attachments/uploads

Request

  • Base URL: https://api.caliuapp.com
  • URL: https://api.caliuapp.com/attachments/uploads
  • Auth: one of:
    • HTTP bearer
    • API key in cookie caliu_session

Request body

filenamestring required
content_typestring

Defaults to application/octet-stream.

Response

Upload link created

upload_urlstring required

PUT the raw file bytes here, with a Content-Length. Single use, expires after an hour.

method'PUT' required
attachment_idstring required
download_urlstring required

Where the file will be, for note markdown.

content_typestring required
expires_atstring required
max_bytesnumber required

Changes

No recorded changes to this operation across all 2 revisions of this API.