ghl_conversation_upload_file_attachments
Upload file attachments to a conversation by sending a file buffer with required metadata including conversation, contact, and location IDs. Supports common file types such as PDF, JPG, PNG, MP4, and DOCX.
Instructions
multipart/form-data upload. The body schema below carries only the declared form fields (conversationId, contactId, locationId, attachmentUrls, chatServiceSid, isGroupSms) from UploadFilesDto — per the endpoint description, each file's binary content must ALSO be attached as a separate multipart part keyed fileAttachment (buffer), which is not represented in the JSON schema. Allowed file types per spec: JPG, JPEG, PNG, MP4, MPEG, ZIP, RAR, PDF, DOC, DOCX, TXT, MP3, WAV.
Upload file attachments
Post the necessary fields for the API to upload files. The files need to be a buffer with the key "fileAttachment". The allowed file types are: JPGJPEGPNGMP4MPEGZIPRARPDFDOCDOCXTXTMP3WAV The API will return an object with the URLs
Endpoint: POST /conversations/messages/upload (Version header: v3; source: v3/conversations-v3.json)
OAuth scopes: conversations/message.write
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). |