How to create a ticket with Zapier

Updated 4 weeks ago by Romain Lapeyre

Zapier is an easy way for non-technical users to create integrations between web applications. No coding required! You can use Zapier to create a ticket in Gorgias when an action or an event happens on another application.

Create a ticket in Gorgias with a Zap:

  1. In your Gorgias account, go to your profile
  2. Click on Rest API, and copy the base API URL, the username and the password
  3. Log in to your Zapier account
  4. Create a Zap with a trigger of your choice. The zap will run when this event happens
  5. Add an action to the Zap
  6. Select Webhooks by Zapier as the app, then select Custom Request, then Save + Continue
  7. On the left sidebar, this is what you should see:
  8. Now let's build your request:
    1. "Method:" POST
    2. "Url:" {{your base api url from step 2}}tickets 
    3. "Data Pass-Through?" No
    4. "Data:" see code below
    5. "Unflatten:" no
    6. "Basic Auth:" {{username from step 2}}|{{password from step 2}}
    7. "Headers:" Content-Type, application/json
  9. It should look something like this (in pink), all the fields that you need to customize:

The code (please just keep in mind that you should update it with your details, the ones in the code and the URL are just an example):

{

"channel": "email",

"via": "api",

"messages": [

{

"channel": "email",

"via": "api",

"source": {

"type": "email",

"from": {

"name": "Romain Lapeyre",

"address": "romain@gmail.com"

},

"to": [

{

"name": "Gorgias support",

"address": "support@gorgias.io"

}

]

},

"subject": "Reset password",

"body_text": "Can you help me reset my password?",

"body_html": "Can you help me reset my password?",

"from_agent": false

}

]

}

And also:

  1. Click Continue
  2. Click Create and continue and Zapier will try to create a Gorgias ticket
  3. Click Finish, name your Zap, and activate it

And you're all set!


How did we do?


Powered by HelpDocs (opens in a new tab)