Image upload with Rest API

  • 31 October 2023
  • 3 replies

Hey there, I’m finding it difficult to understand the rest API docs around file uploads. I would love to have a user fill out a form, and attach an image, and this would be submitted by the API to create a ticket. I see that the “File” type is supported in the tickets, however I’m finding difficulty in figuring out what Intercom wants as a file


Is there any more documentation that you could point me towards? Or could you provide a quick example of what an image upload would look like with the API? 


Thanks, Aaron. 


Best answer by cameron.gumley 2 November 2023, 08:00

View original

3 replies


Hi @Aaron Byrom -- Cam from the Intercom Support Engineering team here!

Appreciate your question and your feedback on the API docs, which I’ll pass along to our Product Management team 👍

Have you had a look at the details covered HERE in our Dev Docs (screenshot below as well👇)?

Let me know if this is helpful or if you’ve already looked through things there and things are still unclear. 


I’m having the same issue. I created a ticket type that require a “attachment” field. This attachment field is of format “file upload”. When creating a new ticket, I tried to send the files as multipart/form-data or using the same format that on the ticket part on nothing is working.

How should I send files with the creation of a ticket through the API?


@Louis Demeslay -- Glad to help if this remains an open issue. Can you confirm - what value are you entering for the “type” attribute within the “attachments” array? Are you adding the string “file upload” as indicated in your above message, or are you using/have you tried just putting “upload”?