How to create a ticket with Zapier

Updated a month ago ​by Romain Lapeyre

Zapier is an easy way for non-technical users to access integrations between web applications. No coding needed.

You can use Zapier to create a ticket in Gorgias when some event happens in another tool. Here's how to do it. 

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. Create a Zap with a trigger of your choice. The zap will run when this event happens. 
  4. Add an action to the Zap, for instance as the second step
  5. Select Webhooks by Zapier as the app
  6. Select Custom request
  7. Now let's build you request
    1. Method: POST
    2. Url: https://{{your base api url from step 2}}.gorgias.io/api/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
  8. This should look like this:




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

You're done!

Zap action code for step 7d:

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