Skip to main content
Answered

Fowarding Files via API

  • March 19, 2025
  • 1 reply
  • 11 views

Hey!

We are creating tickets for some chats and sending the ticket attributes to an external tool using POST API requests. I’m able to forward all attributes except for any files added to the ticket, as the file attribute isn’t saved like the others.

Is there a way to include links to the files in my API call through the Action Builder? I see that the files are stored like this, so I would just need a way to include this in the call. 


https://downloads.intercomcdn.com/i/o/qwum5ehb/1430332547/0a18547e88a0534a2b11dc66de1c/About+-+Wolt+%28Germany%29.pdf?expires=1742396400&signature=71937dcca587c48f45395961771de4a294247409d94427ef8a309fcc0f603793&req=dSQkFsp9n4RbXvMU3HP0gCfl8Ixw9B04fnL9Av84zX8P2bzVoXE%3D%0A

Best answer by Jacques Reynolds

Hey ​@Rasmus Wedel-Heinen Andersen 👋 Jacques here from Intercom Support. I hope all is well today!

Is this API call being made through a Custom Action in Intercom?

To include links to files in your API call through the Custom Action Builder, you would need to provide URLs of the files rather than uploading them directly. The files must be hosted publicly, and you should include these URLs in your request payload. This means you cannot attach locally saved files directly; they must be accessible via a URL.

When creating a ticket via the API, you can attach up to 10 image URLs by specifying the attachment_urls parameter as an array of strings, each representing a URI of the image you want to attach.

Hope this helps!

View original
Did this topic help you find an answer to your question?

Jacques Reynolds
Intercom Team
Forum|alt.badge.img+4

Hey ​@Rasmus Wedel-Heinen Andersen 👋 Jacques here from Intercom Support. I hope all is well today!

Is this API call being made through a Custom Action in Intercom?

To include links to files in your API call through the Custom Action Builder, you would need to provide URLs of the files rather than uploading them directly. The files must be hosted publicly, and you should include these URLs in your request payload. This means you cannot attach locally saved files directly; they must be accessible via a URL.

When creating a ticket via the API, you can attach up to 10 image URLs by specifying the attachment_urls parameter as an array of strings, each representing a URI of the image you want to attach.

Hope this helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings