Zendesk Ticket Creation
Copy page
Configure ticket creation in Zendesk with Inkeep.
Overview:
- Configure and deploy an endpoint that will process the form data.
- Call the endpoint from the
onSubmit
function of your Inkeep widget. Example implementation can be found here
Official Zendesk API Reference
For complete details on available endpoints and ticket parameters, see the official Zendesk Tickets API reference.
Basic Ticket Creation
This code must be executed in a secure server environment. Never expose your Zendesk API tokens in client-side code as they contain sensitive permissions that could be misused if compromised. Example endpoint for creating a new ticket can be found here
The following example demonstrates how to call the Zendesk Tickets API to create a new ticket. You can copy this code into your project and modify it to suit your needs:
Prefill a Zendesk ticket form
Alternatively, you can use the callback function to prefill a Zendesk ticket form with the user's questions. See the Zendesk documentation for more details on how to create a pre-filled ticket form.
Example: