Start a conversation

Created Tickets Through REST API Cannot Be Replied to or the Email Is Never Sent to the Requester at All

Overview

When you create a ticket through Kayako REST API while using the 'staffid' instead of 'userid' or 'autouserid', the ticket gets created but no user is linked to it. As a result, when staff replies on this ticket, the outgoing emails are broken or can't be replied to. Or sometimes, the email does not get sent to the user at all.

 

Information

Kayako requires, one of the following parameters when using the API to create a ticket:

autouserid

If dispatched as "1", then the User ID is looked up based on the email address.

If none is found, the system ends up creating a new user based on the information supplied.

userid

The User ID, if the ticket is to be created as a user.

staffid

The Staff ID, if the ticket is to be created as a staff.

When using the argument staffid, the source code sets the userid to be 0. As a result, it is not able to link any user to the ticket. This was a limitation identified in older versions of Kayako Classic. A fix was deployed to the code starting from version 4.93.11 to create a user when only 'staffid' is provided when creating a ticket using REST API.

If you are experiencing this issue and you are using a version that is older than Kayako Classic 4.93.11, you need to upgrade your instance to the latest version.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments