Creating side conversation with attachments via API | Community
Skip to main content

Creating side conversation with attachments via API

  • June 6, 2025
  • 1 reply
  • 0 views

Matthew14

I'm trying to create a side conversation email with attachments from an earlier step. I've tried passing both tokens from uploads as well as audit.event.attachment.ids. 

 

In the documentation, JSON look like ""attachment_ids": ["s3-d2a3111e-26d9-4e1c-88b4-cf7c0649d81d"]. However I am unsure how or where to find that identifier:

Also, based on the documentation, it looks like I would pass an array of strings. Is that correct?

1 reply

Elaine14
  • August 12, 2025
H Matthewi,
 
Thanks for sharing the details of your issue.
 
To create a side conversation with attachments via the API, you will indeed need to provide an array of attachment tokens in the attachment_ids field. These tokens are typically the upload tokens you receive when you first upload the files using the Uploads API endpoint, not the integer IDs from ticket audits or the URL strings.
 
Here’s a brief overview of the process:
  1. Upload your attachment file(s) via the Upload API. The response will include an upload token (a string like "9JKFuWB6keUmEciyMGqkcPGNe").
  2. Use this token in your side conversation creation call inside the attachment_ids array.
     
For example:
"attachment_ids": ["9JKFuWB6keUmEciyMGqkcPGNe"]
 
Make sure you’re passing the upload tokens, not the audit IDs or URLs, as those aren’t accepted in this field.
 
Hope this helps clarify things!