Skip to main content
Answered

Is it possible to trigger the creation of a ticket through the Intercom JS API?

  • December 15, 2023
  • 4 replies
  • 280 views

Is it possible to get to this screen with the Intercom JS API?

 

 

Best answer by aykut.aydin

Hey @charles 

 

At the moment, there is no option to open new ticket space/page via JS API. You can currently only access the existing tickets by using either

 

Intercom('showSpace', 'tickets') -- This opens the list of existing tickets for the end user.

Intercom('showTicket', 123) -- This opens the specific existing ticket by ID.

 

You can also find the full list of JS API methods here.

 

This would be a great feature request if you wish to submit it in our ideas/wishlist page.

 

It is possible to create a ticket via REST API on the server side by using Create a Ticket endpoint. So currently, the only option for you would be to create a custom form on your site for the end users to fill up and based on the information they fill up there, you can create a ticket by using REST API.

 

Hope this clarifies your question. 😊

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

4 replies

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • 512 replies
  • December 25, 2023

Hey @charles Racheal from the support engineer team here👋

 

You can definitely open to the Ticket space in the Messenger! You’ll just want to use the Intercom('showSpace', 'tickets'); JavaScript method mentioned here.


  • Author
  • New Participant
  • 1 reply
  • January 2, 2024

Hi @Racheal ,

unfortunately the method you mentioned only shows the existing tickets, but does not open the creation of a new ticket. Is there a way to trigger the creation of a specific customer ticket?

Charles


aykut.aydin
Employee
Forum|alt.badge.img+4
  • Customer Support Engineer
  • 104 replies
  • Answer
  • January 8, 2024

Hey @charles 

 

At the moment, there is no option to open new ticket space/page via JS API. You can currently only access the existing tickets by using either

 

Intercom('showSpace', 'tickets') -- This opens the list of existing tickets for the end user.

Intercom('showTicket', 123) -- This opens the specific existing ticket by ID.

 

You can also find the full list of JS API methods here.

 

This would be a great feature request if you wish to submit it in our ideas/wishlist page.

 

It is possible to create a ticket via REST API on the server side by using Create a Ticket endpoint. So currently, the only option for you would be to create a custom form on your site for the end users to fill up and based on the information they fill up there, you can create a ticket by using REST API.

 

Hope this clarifies your question. 😊


TJ B12
Forum|alt.badge.img+1
  • Active User
  • 11 replies
  • July 9, 2024

This would be really helpful to be able to do...


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