Attachments

Prepare an attachment upload

Creates a company-scoped attachment and returns a presigned PUT URL. Upload the exact file bytes to uploadUrl, then pass attachment.id when creating or replying to a client request. Use the company id in x-organization-id.

post/attachments/presign

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/attachments/presign
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Request body

fileNamestring required
contentTypestring required
fileSizenumber required

Response

Attachment record and presigned PUT URL

Changes

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