[{"data":1,"prerenderedAt":235},["ShallowReactive",2],{"\u002Fblog\u002Fhigh-level-simple-contact-creation":3},{"title":4,"path":5,"description":6,"excerpt":7,"body":8,"date":234},"HighLevel: Simple contact creation with a POST operation","\u002Fblog\u002Fhigh-level-simple-contact-creation","Creating contacts in HighLevel using the Zapier API",null,{"type":9,"value":10,"toc":230},"minimark",[11,23,32,38,43,51,55,59,62,68,71,78,115,118,226],[12,13,14,15,22],"p",{},"HighLevel has an ",[16,17,21],"a",{"href":18,"rel":19},"https:\u002F\u002Fhighlevel.stoplight.io\u002Fdocs\u002Fintegrations\u002F0443d7d1a4bd0-overview",[20],"nofollow","API"," with lots of features for integration with your applications and processes. But sometimes you just need to add a Contact from an application, like a Web Form.",[12,24,25,26,31],{},"HighLevel provides a ",[16,27,30],{"href":28,"rel":29},"https:\u002F\u002Fhelp.gohighlevel.com\u002Fsupport\u002Fsolutions\u002Ffolders\u002F48000666021",[20],"Zapier integration"," that can fit a lot of needs. If your requirements push you towards a custom integration, thankfully you can use the same endpoint for your needs as well.",[33,34,37],"div",{"className":35},[36],"note-block","\nNote: this only works with Sub Accounts. Agencies need to use the full API.\n",[39,40,42],"h2",{"id":41},"create-key","Create Key",[12,44,45,46,50],{},"Your API key can be found and\u002For regenerated in the Location view at Settings > Business Profile > General Information section. At the bottom there's a section labeled ",[47,48,49],"em",{},"API Key",".",[33,52,54],{"className":53},[36],"\nNote: Regenerating the API key (clicking the refresh icon) will invalidate any existing integration using the key.\n",[39,56,58],{"id":57},"perform-post-request","Perform POST request",[12,60,61],{},"To create a new contact, perform a POST request to this URL:",[12,63,64],{},[65,66,67],"code",{},"https:\u002F\u002Fapi.gohighlevel.com\u002Fzapier\u002Fcontact\u002Fadd_update\u002F",[12,69,70],{},"You need headers determining the content type, and the authorization Bearer Token.",[12,72,73,74,77],{},"This should be the key you generated in the UI, prefixed with ",[65,75,76],{},"Bearer ",", space included.",[79,80,85],"pre",{"className":81,"code":82,"language":83,"meta":84,"style":84},"language-yaml shiki shiki-themes github-light github-dark","Authorization: \"Bearer apiKey123\"\nContent-Type: \"application\u002Fjson\"\n","yaml","",[65,86,87,104],{"__ignoreMap":84},[88,89,92,96,100],"span",{"class":90,"line":91},"line",1,[88,93,95],{"class":94},"s9eBZ","Authorization",[88,97,99],{"class":98},"sVt8B",": ",[88,101,103],{"class":102},"sZZnC","\"Bearer apiKey123\"\n",[88,105,107,110,112],{"class":90,"line":106},2,[88,108,109],{"class":94},"Content-Type",[88,111,99],{"class":98},[88,113,114],{"class":102},"\"application\u002Fjson\"\n",[12,116,117],{},"With a JSON body with these parameters:",[79,119,123],{"className":120,"code":121,"language":122,"meta":84,"style":84},"language-json shiki shiki-themes github-light github-dark","{\n  \"first_name\": \"Some First Name\",\n  \"last_name\": \"Some Last Name\",\n  \"email\": \"name@example.com\",\n  \"phone\": \"+112355500000\",\n  \"source\": \"Your App Name\",\n  \"tags\": \"tag1,tag2,tag3\",\n  \"lead\": true\n}\n","json",[65,124,125,130,144,157,170,183,196,209,220],{"__ignoreMap":84},[88,126,127],{"class":90,"line":91},[88,128,129],{"class":98},"{\n",[88,131,132,136,138,141],{"class":90,"line":106},[88,133,135],{"class":134},"sj4cs","  \"first_name\"",[88,137,99],{"class":98},[88,139,140],{"class":102},"\"Some First Name\"",[88,142,143],{"class":98},",\n",[88,145,147,150,152,155],{"class":90,"line":146},3,[88,148,149],{"class":134},"  \"last_name\"",[88,151,99],{"class":98},[88,153,154],{"class":102},"\"Some Last Name\"",[88,156,143],{"class":98},[88,158,160,163,165,168],{"class":90,"line":159},4,[88,161,162],{"class":134},"  \"email\"",[88,164,99],{"class":98},[88,166,167],{"class":102},"\"name@example.com\"",[88,169,143],{"class":98},[88,171,173,176,178,181],{"class":90,"line":172},5,[88,174,175],{"class":134},"  \"phone\"",[88,177,99],{"class":98},[88,179,180],{"class":102},"\"+112355500000\"",[88,182,143],{"class":98},[88,184,186,189,191,194],{"class":90,"line":185},6,[88,187,188],{"class":134},"  \"source\"",[88,190,99],{"class":98},[88,192,193],{"class":102},"\"Your App Name\"",[88,195,143],{"class":98},[88,197,199,202,204,207],{"class":90,"line":198},7,[88,200,201],{"class":134},"  \"tags\"",[88,203,99],{"class":98},[88,205,206],{"class":102},"\"tag1,tag2,tag3\"",[88,208,143],{"class":98},[88,210,212,215,217],{"class":90,"line":211},8,[88,213,214],{"class":134},"  \"lead\"",[88,216,99],{"class":98},[88,218,219],{"class":134},"true\n",[88,221,223],{"class":90,"line":222},9,[88,224,225],{"class":98},"}\n",[227,228,229],"style",{},"html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":84,"searchDepth":106,"depth":106,"links":231},[232,233],{"id":41,"depth":106,"text":42},{"id":57,"depth":106,"text":58},"2023-11-22T12:00:00",1786108218183]