Attachments

Upload Attachment

POST /v1/attachments

POST/v1/attachments
POST
/v1/attachments

Upload an attachment

Upload a file (PDF, DOCX, image, etc.) and receive a hashed attachmentId. Pass that attachmentId in the attachmentIds[] of an Email-step variant when creating or updating a step to attach the file to outgoing emails. For attachments referenced from a note, use POST /v1/notes/attachments instead.

Content-Type: multipart/form-data with a single file field.

Authorization

x-api-key<token>

API key for Open API authentication

In: header

Request Body

multipart/form-dataRequired

filefile

Format: "binary"

Responses

201
Attachment uploaded

Request

curl -X POST \
  "https://open-api.saleshandy.com/v1/attachments" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@/path/to/your/file.pdf"

Response

No response body