How to create a ticket with Zapier

Updated 8 months 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 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 your Zappier 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 see.
  8. Now let's build you 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. This should look like this (in pink, all the fields you need to customize):




  10. Click Continue.
  11. Click Create and continue, Zapier will try to create a Gorgias ticket.
  12. Click Finish, name your Zap, and activate it. 


You're done!

Zap action code for step 7d (don't forget, you have to customize the "from", the "to", the "subject", the "body_text", the "body_html"!):

          {  
             "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?"
                }
             ]
          }



How did we do?