Skip to main content
Answered

Fowarding Files via API


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

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!


Hi ​@Jacques Reynolds 

 

Thanks for answering this :) 

 

Yes - I create a Ticket in Intercom, which activates a Workflow which then activates Custom Action. This Custom Actions creates a ticket in our other tool. 

 

When creating a Ticket and adding the file, a URL is created for the files. What it means is that the image is hosted on Intercom, but I have no way to access this URL and add it to the Webhook. When sending a GET request for the Ticket, I’m able to pull the URL of the Intercom hosted images. 

 

One solution would be to make a GET request from our tool, but it would be much easier if we could send these already from the creation of the Ticket. Any other good ideas on how to solve this? 


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