Skip to content
Developer Resources

Creating Sub-Accounts using Zapier

To create new subaccounts via public API please make sure you're currently subscribed to the ProPlan.

9 min read2,032 words8 explained imagesUpdated Sun, 29 Dec, 2024 at 1:27 PM
View as markdownOpen in ClaudeOpen in ChatGPT
Each image has a one line explanation. Switch to full detail for the step it belongs to, the fields and buttons involved, examples and the whole procedure.
On this page
  1. To create new subaccounts via Public API please make sure you're currently subscribed to the ProPlan.
  2. 1. Head into your agency settings and grab your Agency API Key
  3. 2. Once you have copied the Agency API Key, log into Zapier and create a new Zap
  4. 3. Lets jump back into Zapier and create the location zap
  5. Step 3.1: Select webhooks again but this time choose "Custom Request" and Select "POST" as Action Event.
  6. Step 3.2: Add the location creation endpoint URL:
  7. Step 3.3: Leave Data Pass-Through Empty
  8. Step 3.4: Next let's map the "Data" with the contact info submitted in Step 2.2.
  9. Step 3.5: (Optional) Add Snapshot ID(s) to Payload
  10. Step 3.6: Leave Basic Authorization Blank
  11. Step 3.7: Adding Authorization Headers
  12. 4. Hit Continue and run your test
  13. 5. Last step is to create a user, password and add them to the new location
  14. Step 5.1: Select webhooks again, choosing "Custom Request" and Select "POST" as Action Event.
  15. Step 5.2: Add the User Creation endpoint URL:
  16. Step 5.3: Leave Data Pass-Through Empty
  17. Step 5.4: Next let's map the User "Data" with the contact info submitted in Step 2.2.
  18. User Data Fields: (Click here to see the developer's docs)
  19. Step 5.5: Leave Basic Authorization Blank
  20. Step 5.6: Adding Authorization Headers
  21. 6. Hit Continue and run your test

Zapier Setup Guide - Developer Integration

To create new subaccounts via Public API please make sure you're currently subscribed to the ProPlan.

For more information and links to our API documentation, visit our developer's website:https://developers.https://ghlcustomercare.com/ 

 Important Notes Before Proceeding Further:

If you would like to automate account creation within GHL Customer Care (without Zapier) please check out the GHL Customer Care SaaS Guide (Pro Plan Required)
The Zapier LeadConnector integration action "add Account" was deprecated 21st Feb. 2022. 
The steps in this article are for Advanced Integration and for informational purposes only.
While our support team does not currently service or support either our API or Custom Zapier Integrations due to their complexities, we have many tools and groups to help you get started and connected! For assistance with APIs only, you can join our Developer Council Slack Community here: https://ghlcustomercare.com/dev-slack
We also hold a Developer Council Zoom Call once a month (second to last Friday) which you can find on the Events calendar here: https://ghlcustomercare.com/events
For more information and links to our API documentation, visit our developer's website:https://developers.https://ghlcustomercare.com/
In order to use this article, Zapier webhooks are required which are not included in their free plan. Please sign up for a paid planbefore proceeding further. 

TABLE OF CONTENTS

1. Head into your agency settings and grab your Agency API Key

2. Once you have copied the Agency API Key, log into Zapier and create a new Zap

3. Lets jump back into Zapier and create the location zap

4. Hit Continue and run your test

5. Last step is to create a user, password and add them to the new location

6. Hit Continue and run your test

Troubleshooting

Q1) When creating a user I do not receive a password, location or agency API in the Post results?

Q2) My webhook is not firing from the workflow


1. Head into your agency settings and grab your Agency API Key

Step 1.1: To create a new location under your agency you will need to use Agency API Keys. To find your API Keys please head into your Agency View -> Settings -> API Keys -> Click to copy API key

Step 1.2: Save this API Key for later, or come back to this step at the two points in this article when prompted to put this into use! We want to ensure you have an Agency API Key on hand before taking the time to build out the rest of your integration

Please note:

If you do not see the API key please create a new key by clicking on the "+ Create New" button (orange arrow)
1. Head into your agency settings and grab your Agency API Key (image 1 of 8) What this shows If you do not see the API key please create a new key by clicking on the " + Create New " button (orange arrow) What this shows Illustrates the "1. Head into your agency settings and grab your Agency API Key" section of "Creating Sub-Accounts using Zapier". This screenshot appears in the "1. Head into your agency settings and grab your Agency API Key" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: If you do not see the API key please create a new key by clicking on the " + Create New " button (orange arrow). Immediately after, the guide continues: Step 2.1: The first step in your zap will be the action/ event that will trigger Zapier to create the account in GHL Customer Care. This action/event can be a LeadConnector action like; pipeline change, add/ update opportunity etc. (see all…. Image 1 of 8 What this coversIf you do not see the API key please create a new key by clicking on the " + Create New " button (orange arrow)
Buttons and menus referenced Step 1.1Agency VStep 1.2+ Create New
Next stepStep 2.1: The first step in your zap will be the action/ event that will trigger Zapier to create the account in GHL Customer Care. This action/event can be a LeadConnector action like; pipeline change, add/ update opportunity etc. (see all internal actions here) or we can use Zapier's "capture webhook" action and a workflow to create a new subaccount.

2. Once you have copied the Agency API Key, log into Zapier and create a new Zap

Step 2.1: The first step in your zap will be the action/ event that will trigger Zapier to create the account in GHL Customer Care. This action/event can be a LeadConnector action like; pipeline change, add/ update opportunity etc. (see all internal actions here) or we can use Zapier's "capture webhook" action and a workflow to create a new subaccount. 

For the example below we will be using Zapier's "Capture webhook" action . Please copy your webhook URL and proceed to next step (2.2) below.

2. Once you have copied the Agency API Key, log into Zapier and create a new Zap (image 2 of 8) What this shows For the example below we will be using Zapier's " C apture webhook " action. What this shows Illustrates the "2. Once you have copied the Agency API Key, log into Zapier and create a new Zap" section of "Creating Sub-Accounts using Zapier". This animation appears in the "2. Once you have copied the Agency API Key, log into Zapier and create a new Zap" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: For the example below we will be using Zapier's " C apture webhook " action. Please copy your webhook URL and proceed to next step (2.2) below. Immediately after, the guide continues: To use Zapier webhooks (premium) please sign up for a paid plan. Image 2 of 8 What to copyFor the example below we will be using Zapier's " C apture webhook " action. Please copy your webhook URL and proceed to next step (2.2) below.
Buttons and menus referenced Step 2.1Capture webhookpaid plan.
Next stepTo use Zapier webhooks (premium) please sign up for a paid plan.

Please Note:

To use Zapier webhooks (premium) please sign up for a paid plan.

Step 2.2: Next, let's set up a NEW workflow in GHL Customer Care that will execute the Zapier webhook that we just created. 

The first step in our workflow is an order form called "Account Creation Form". Next, click on the + and search and select "webhook" action (see image below). 

Once you have setup your form and webhook, please test the webhook before proceeding to the next step. To test your webhook please submit the form at least once with some dummy contact data.

2. Once you have copied the Agency API Key, log into Zapier and create a new Zap (image 3 of 8) What this shows Once you have setup your form and webhook, please test the webhook before proceeding to the next step. What this shows Illustrates the "2. Once you have copied the Agency API Key, log into Zapier and create a new Zap" section of "Creating Sub-Accounts using Zapier". This screenshot appears in the "2. Once you have copied the Agency API Key, log into Zapier and create a new Zap" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: Once you have setup your form and webhook, please test the webhook before proceeding to the next step. To test your webhook please submit the form at least once with some dummy contact data. Immediately after, the guide continues: If you do not submit the form at least once, Zapier will not have the data it requires for the next step which is creating a new location. Image 3 of 8 How to confirmOnce you have setup your form and webhook, please test the webhook before proceeding to the next step. To test your webhook please submit the form at least once with some dummy contact data.
Buttons and menus referenced Step 2.1Capture webhookpaid plan.
Next stepIf you do not submit the form at least once, Zapier will not have the data it requires for the next step which is creating a new location

Please Note:

If you do not submit the form at least once, Zapier will not have the data it requires for the next step which is creating a new location

3. Lets jump back into Zapier and create the location zap

3. Lets jump back into Zapier and create the location zap (video 1) Open in a new tab

Step 3.1: Select webhooks again but this time choose "Custom Request" and Select "POST" as Action Event.

Step 3.2: Add the location creation endpoint URL:

https://rest.https://ghlcustomercare.com/v1/locations

Step 3.3: Leave Data Pass-Through Empty

Step 3.4: Next let's map the "Data" with the contact info submitted in Step 2.2.

Please Note:

- If you do not see any data for the "input fields" please head back to your workflow and submit the form at least once.

{

    "businessName": "{{Insert__company_name}}",

    "address": "3500 Deer Creek Road",

    "city": "Palo Alto",

    "country": "US",

    "state": "CA",

    "postalCode": "94304",

    "website": "https://www.tesla.com",

    "timezone": "US/Central",

    "firstName": "{{Insert __first_name}}",

    "lastName": "{{Insert  __last_name}}",

    "email": "{{Insert __email}}",

    "phone": "{{Insert __Phone}}",

    "settings": {

        "allowDuplicateContact": false,

        "allowDuplicateOpportunity": false,

        "allowFacebookNameMerge": false,

        "disableContactTimezone": false

    },

    "snapshot": {

        "id": "NLCFWNuvs9DLwMsYku3H",

        "type": "vertical"

    },

    "social": {

        "facebookUrl": "https://facebook.com/groups/XXX",

        "googlePlus": "https://groups.google.com/d/XXX",

        "linkedIn": "https://www.linkedin.com/groups/XXX/profile",

        "foursquare": "https://foursquare.com/groups/XXX",

        "twitter": "https://twitter.com/XXX",

        "yelp": "https://yelp.com/XXX",

        "instagram": "https://instagram.com/XXX",

        "youtube": "https://youtube.com/XXX",

        "pinterest": "https://pinterest.com/XXX",

        "blogRss": "https://rss.xyz.com",

        "googlePlaceId": "redfdfdere"

    }

}

Step 3.5: (Optional) Add Snapshot ID(s) to Payload 

If you want to automatically load one or more snapshots to the new accounts you will be creating through this integration, you will need to locate the Snapshot ID for each one to place it in the body of the above payload. Watch the video below for the easiest way to locate a Snapshot ID without using an API call.

Step 3.5: (Optional) Add Snapshot ID(s) to Payload (video 2) Open in a new tab

When adding a snapshot please add your "Snapshot ID" and the "Type" as either: Own, Imported, Vertical

What do the different snapshot "Types" mean?

- Own: You created this Snapshot

- Imported: Another Agencies Snapshot

- Vertical: Native GHL Customer Care Snapshots

Step 3.6: Leave Basic Authorization Blank

Step 3.7: Adding Authorization Headers

You will need two Headers for your request to be successfully submitted. An Authorization Header which contains your API Key, and a Content Type Header which tells our API what format the data is being sent in. 

First, add "Authorization" as your Header title, then type the word "Bearer" -> add one space then your Agency API key from the first step in the authorization box. 

Hit the + button underneath and add a new header: "Content-Type", then "application/json"

Step 3.7: Adding Authorization Headers (image 4 of 8) What this shows Hit the + button underneath and add a new header: " Content-Type", then " application/json " What this shows Illustrates the "Step 3.7: Adding Authorization Headers" section of "Creating Sub-Accounts using Zapier". This screenshot appears in the "Step 3.7: Adding Authorization Headers" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: Hit the + button underneath and add a new header: " Content-Type", then " application/json ". Immediately after, the guide continues: When adding " Authorization" as your Header title, then type the word " Bearer " -> add one space then add your agency API key from the first step. Image 4 of 8 What to fill inHit the + button underneath and add a new header: " Content-Type", then " application/json "
Buttons and menus referenced AuthorizationBearerContent-Type"application/jsonAuthorization"onespace
Next stepWhen adding " Authorization" as your Header title, then type the word " Bearer " -> add one space then add your agency API key from the first step

Please Note:

When adding "Authorization" as your Header title, then type the word "Bearer" -> add one space then add your agency API key from the first step

4. Hit Continue and run your test

Check to see your "Post" results for your new location ID

4. Hit Continue and run your test (image 5 of 8) What this shows Check to see your " Post " results for your new location ID What this shows Illustrates the "4. Hit Continue and run your test" section of "Creating Sub-Accounts using Zapier". This screenshot appears in the "4. Hit Continue and run your test" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: Check to see your " Post " results for your new location ID. Immediately after, the guide continues: Location ID Note: Just like you did with Section 3.4, when mapping the Location ID to Step 5 of this Article (The User Creation portion) make sure that you do not copy and paste the Location ID highlighted in the screenshot. At this…. Image 5 of 8 What this coversCheck to see your " Post " results for your new location ID
Buttons and menus referenced Postdo not copy and paste
Next stepLocation ID Note: Just like you did with Section 3.4, when mapping the Location ID to Step 5 of this Article (The User Creation portion) make sure that you do not copy and paste the Location ID highlighted in the screenshot. At this stage, you are simply reviewing to ensure a location was successfully created, and a Location ID in this place is proof of such without having to go into your GHL Customer Care account. If you copy and paste this Location ID into the next step rather than selecting it from the drop down similar to Section 3.4 Field Mapping, all subsequent User Creations that run through this in the future will be mapped to the Location ID that is pasted in rather than dynamically updating each time a new location is created.
Location ID Note: Just like you did with Section 3.4, when mapping the Location ID to Step 5 of this Article (The User Creation portion) make sure that you do not copy and paste the Location ID highlighted in the screenshot. At this stage, you are simply reviewing to ensure a location was successfully created, and a Location ID in this place is proof of such without having to go into your GHL Customer Care account.
If you copy and paste this Location ID into the next step rather than selecting it from the drop down similar to Section 3.4 Field Mapping, all subsequent User Creations that run through this in the future will be mapped to the Location ID that is pasted in rather than dynamically updating each time a new location is created.

5. Last step is to create a user, password and add them to the new location

5. Last step is to create a user, password and add them to the new location (image 6 of 8) What this shows Location ID Note: Just like you did with Section 3.4, when mapping the Location ID to Step 5 of this Article (The User Creation portion)… What this shows Illustrates the "5. Last step is to create a user, password and add them to the new location" section of "Creating Sub-Accounts using Zapier". This animation appears in the "5. Last step is to create a user, password and add them to the new location" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: Location ID Note: Just like you did with Section 3.4, when mapping the Location ID to Step 5 of this Article (The User Creation portion) make sure that you do not copy and paste the Location ID highlighted in the screenshot. At this stage, you are simply reviewing to ensure a location was…. Immediately after, the guide continues: https://rest.https://ghlcustomercare.com/v1/users/. Image 6 of 8 What to copyLocation ID Note: Just like you did with Section 3.4, when mapping the Location ID to Step 5 of this Article (The User Creation portion) make sure that you do not copy and paste the Location ID highlighted in the screenshot. At this stage, you are simply reviewing to ensure a location was successfully created, and a Location ID in this place is proof of such without having to go into your GHL Customer Care account. If you copy and paste this Location ID into the next step rather than selecting it from the drop down similar to Section 3.4 Field Mapping, all subsequent User Creations that run through this in the future will be mapped to the Location ID that is pasted in rather than dynamically updating each time a new location is created. Next stephttps://rest.https://ghlcustomercare.com/v1/users/

Step 5.1: Select webhooks again, choosing "Custom Request" and Select "POST" as Action Event.

Step 5.2: Add the User Creation endpoint URL:

https://rest.https://ghlcustomercare.com/v1/users/

Step 5.3: Leave Data Pass-Through Empty

Step 5.4: Next let's map the User "Data" with the contact info submitted in Step 2.2.

Once you have mapped your input fields from the previous step, make sure to set your desired user permissions.

Step 5.4: Next let's map the User "Data" with the contact info submitted in Step 2.2. (image 7 of 8) What this shows Once you have mapped your input fields from the previous step, make sure to set your desired user permissions. What this shows Illustrates the "Step 5.4: Next let's map the User "Data" with the contact info submitted in Step 2.2." section of "Creating Sub-Accounts using Zapier". This screenshot appears in the "Step 5.4: Next let's map the User "Data" with the contact info submitted in Step 2.2." section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: Once you have mapped your input fields from the previous step, make sure to set your desired user permissions. Immediately after, the guide continues: Leave Password Field Blank to AUTO Generate a password. OR Use 8 characters w/ special Symbols. Image 7 of 8 What to fill inOnce you have mapped your input fields from the previous step, make sure to set your desired user permissions.
Buttons and menus referenced AUTO Generate a passwordOR
Next stepLeave Password Field Blank to AUTO Generate a password. OR Use 8 characters w/ special Symbols

Please Note:

Leave Password Field Blank to AUTO Generate a password.   OR  Use 8 characters w/ special Symbols
Location ID: Note how the Location ID looks in this screenshot. It has been properly mapped from the available list of variables from the previous step as opposed to being copied and pasted into this line.
You will look for the field titled 'ID'

User Data Fields: (Click here to see the developer's docs)

{

    "firstName": "Zapier",

    "lastName": "Test",

    "email": "test@testing.com",

    "password": "Qwerty123!@#",

    "type": "account",

    "role": "admin",

    "locationIds": [

        "ABXfgmOjNw2FG2Y4UJPt"

    ],

    "permissions": {

        "campaignsEnabled": false,

        "campaignsReadOnly": false,

        "contactsEnabled": true,

        "workflowsEnabled": true,

        "triggersEnabled": false,

        "funnelsEnabled": false,

        "websitesEnabled": false,

        "opportunitiesEnabled": false,

        "dashboardStatsEnabled": true,

        "bulkRequestsEnabled": true,

        "appointmentsEnabled": true,

       "reviewsEnabled": true,

        "onlineListingsEnabled": true,

        "phoneCallEnabled": true,

        "conversationsEnabled": true,

        "assignedDataOnly": false,

        "adwordsReportingEnabled": false,

        "membershipEnabled": false,

        "facebookAdsReportingEnabled": false,

        "attributionsReportingEnabled": false,

        "settingsEnabled": true,

        "tagsEnabled": true,

        "leadValueEnabled": true,

        "marketingEnabled": true

    }

}


Step 5.5: Leave Basic Authorization Blank

Step 5.6: Adding Authorization Headers

You will need two Headers for your request to be successfully submitted. An Authorization Header which contains your API Key, and a Content-Type Header which tells our API what format the data is being sent in. 

First, add "Authorization" as your Header title, then type the word "Bearer" -> add one space then your Agency API key from the first step in the authorization box. 

Hit the + button underneath and add a new header: "Content-Type", then "application/json"

Step 5.6: Adding Authorization Headers (image 8 of 8) What this shows Hit the + button underneath and add a new header: " Content-Type", then " application/json " What this shows Illustrates the "Step 5.6: Adding Authorization Headers" section of "Creating Sub-Accounts using Zapier". This screenshot appears in the "Step 5.6: Adding Authorization Headers" section of "Creating Sub-Accounts using Zapier". The text alongside this image reads: Hit the + button underneath and add a new header: " Content-Type", then " application/json ". Immediately after, the guide continues: When adding " Authorization" as your Header title, then type the word " Bearer " -> add one space then add your agency API key from the first step. Image 8 of 8 What to fill inHit the + button underneath and add a new header: " Content-Type", then " application/json "
Buttons and menus referenced AuthorizationBearerContent-Type"application/jsonAuthorization"onespace
Next stepWhen adding " Authorization" as your Header title, then type the word " Bearer " -> add one space then add your agency API key from the first step

Please Note:

When adding "Authorization" as your Header title, then type the word "Bearer" -> add one space then add your agency API key from the first step

6. Hit Continue and run your test

That's it! You have just created a new location and added a user to it

Troubleshooting

When creating integrations with GHL Customer Care, it is important to understand that you are working with our API regardless of the interface. Whether you are using Zapier, Pabbly Connect, API Nation, Make (Formerly Integromat)or another plug-and-play integrator, these platforms are simply an easier way of utilizing our API to connect multiple platforms, in some cases without any coding experience whatsoever. 

Is something not working? Before doing anything else, pause here and review the following article: How to use Webhook.site to Troubleshoot my API-related Requests. 

    - Review the payload data with your developers and your issue will likely be resolved.

    - In the event that your issue is still not resolved after reviewing the data and consulting with your development team, feel free to reply back to us with the requested information in the above-listed Webhook.site article and we can review the Webhook data and potentially tell you what is causing your error. 

The above is the first step in having us review your integration. Without the Webhook.site data, our developers will be unable to isolate the issue you are reporting

Q1) When creating a user I do not receive a password, location or agency API in the Post results?

The system will only generate one unique password per email/phone number. Please make sure when testing that you are using unique data (email/Phone) every time

Q2) My webhook is not firing from the workflow

Please make sure the webhook is live/ published, then recreate the contact using NEW contact info (Unique email/phone). You can append +1 to the current email you were using Ex: myemail+1@gmail.com, myemail+2@gmail.com ect. This will also send any automation emails to the original email... more info

Please Note: 

The steps in this article are for Advanced Integration and for informational purposes only.
While our support team does not currently service or support either our API or Custom Zapier Integrations due to their complexities, we have many tools and groups to help you get started and connected! For assistance with APIs only, you can join our Developer Council Slack Community here: https://ghlcustomercare.com/dev-slack
We also hold a Developer Council Zoom Call once a month (second to last Friday) which you can find on the Events calendar here: https://ghlcustomercare.com/events
For more information and links to our API documentation, visit our developer's website:https://developers.https://ghlcustomercare.com/

Was this guide helpful?

Related guides