[{"data":1,"prerenderedAt":256},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fauthentication":22,"\u002Fdocs\u002Fauthentication-surround":251},[4,8,12],{"title":5,"path":6,"stem":7},"Getting started","\u002Fdocs\u002Fgetting-started","1.docs\u002F1.getting-started",{"title":9,"path":10,"stem":11},"Authentication","\u002Fdocs\u002Fauthentication","1.docs\u002F2.authentication",{"title":13,"path":14,"stem":15,"children":16,"page":21},"API Reference","\u002Fdocs\u002Fapi","1.docs\u002F3.api",[17],{"title":18,"path":19,"stem":20},"Consent","\u002Fdocs\u002Fapi\u002Fconsent","1.docs\u002F3.api\u002F1.consent",false,{"id":23,"title":9,"body":24,"description":246,"extension":247,"meta":248,"navigation":169,"path":10,"seo":249,"stem":11,"__hash__":250},"docs\u002F1.docs\u002F2.authentication.md",{"type":25,"value":26,"toc":242},"minimark",[27,31,36,61,64,75,79,82,112,115,238],[28,29,30],"p",{},"The dealerMe API uses API tokens. Send yours as a bearer token on every request.",[32,33,35],"h2",{"id":34},"create-an-api-token","Create an API token",[37,38,39,51,58],"ol",{},[40,41,42,43,50],"li",{},"Sign in to ",[44,45,49],"a",{"href":46,"rel":47},"https:\u002F\u002Fapp.dealerme.com\u002Flogin",[48],"nofollow","app.dealerme.com",".",[40,52,53,54,50],{},"Open your profile menu and select ",[55,56,57],"strong",{},"API Tokens",[40,59,60],{},"Name the token and create it. Copy it right away, because it's only shown once.",[28,62,63],{},"Treat tokens like passwords. Keep them on your server, never in browser code or a public repository. If a token leaks, delete it on the same page and create a new one.",[65,66,71],"pre",{"className":67,"code":69,"language":70},[68],"language-text","Authorization: Bearer YOUR_API_TOKEN\n","text",[72,73,69],"code",{"__ignoreMap":74},"",[32,76,78],{"id":77},"choose-the-organization","Choose the organization",[28,80,81],{},"A token can have access to more than one organization, so every request also says which one it's for.",[83,84,85,98],"table",{},[86,87,88],"thead",{},[89,90,91,95],"tr",{},[92,93,94],"th",{},"Header",[92,96,97],{},"Value",[99,100,101],"tbody",{},[89,102,103,109],{},[104,105,106],"td",{},[72,107,108],{},"X-DealerMe-Organization-Id",[104,110,111],{},"Your dealerMe organization ID.",[28,113,114],{},"A request without this header is rejected, and the token's user must be a member of the organization.",[116,117,118],"code-group",{},[65,119,124],{"className":120,"code":121,"filename":122,"language":123,"meta":74,"style":74},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","DEALERME_TOKEN=\"your API token\"\nDEALERME_ORG_ID=\"your organization id\"\n\ncurl \"https:\u002F\u002Fapi.dealerme.com\u002Fv1\u002Fconsent-management\u002Femail\u002Fconsent?contact_value=jane@example.com\" \\\n  -H \"Authorization: Bearer $DEALERME_TOKEN\" \\\n  -H \"X-DealerMe-Organization-Id: $DEALERME_ORG_ID\" \\\n  -H 'Accept: application\u002Fjson'\n","CURL","bash",[72,125,126,149,164,171,189,207,224],{"__ignoreMap":74},[127,128,131,135,139,142,146],"span",{"class":129,"line":130},"line",1,[127,132,134],{"class":133},"sTEyZ","DEALERME_TOKEN",[127,136,138],{"class":137},"sMK4o","=",[127,140,141],{"class":137},"\"",[127,143,145],{"class":144},"sfazB","your API token",[127,147,148],{"class":137},"\"\n",[127,150,152,155,157,159,162],{"class":129,"line":151},2,[127,153,154],{"class":133},"DEALERME_ORG_ID",[127,156,138],{"class":137},[127,158,141],{"class":137},[127,160,161],{"class":144},"your organization id",[127,163,148],{"class":137},[127,165,167],{"class":129,"line":166},3,[127,168,170],{"emptyLinePlaceholder":169},true,"\n",[127,172,174,178,181,184,186],{"class":129,"line":173},4,[127,175,177],{"class":176},"sBMFI","curl",[127,179,180],{"class":137}," \"",[127,182,183],{"class":144},"https:\u002F\u002Fapi.dealerme.com\u002Fv1\u002Fconsent-management\u002Femail\u002Fconsent?contact_value=jane@example.com",[127,185,141],{"class":137},[127,187,188],{"class":133}," \\\n",[127,190,192,195,197,200,203,205],{"class":129,"line":191},5,[127,193,194],{"class":144},"  -H",[127,196,180],{"class":137},[127,198,199],{"class":144},"Authorization: Bearer ",[127,201,202],{"class":133},"$DEALERME_TOKEN",[127,204,141],{"class":137},[127,206,188],{"class":133},[127,208,210,212,214,217,220,222],{"class":129,"line":209},6,[127,211,194],{"class":144},[127,213,180],{"class":137},[127,215,216],{"class":144},"X-DealerMe-Organization-Id: ",[127,218,219],{"class":133},"$DEALERME_ORG_ID",[127,221,141],{"class":137},[127,223,188],{"class":133},[127,225,227,229,232,235],{"class":129,"line":226},7,[127,228,194],{"class":144},[127,230,231],{"class":137}," '",[127,233,234],{"class":144},"Accept: application\u002Fjson",[127,236,237],{"class":137},"'\n",[239,240,241],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}",{"title":74,"searchDepth":151,"depth":151,"links":243},[244,245],{"id":34,"depth":151,"text":35},{"id":77,"depth":151,"text":78},"Authenticate with an API token and tell dealerMe which organization a request is for.","md",{"category":9,"position":151,"version":130},{"title":9,"description":246},"nqR5vk3o5XWLrz7SWVnF53525cl5dwOaS-Y1ui6cQbQ",[252,254],{"title":5,"path":6,"stem":7,"description":253,"children":-1},"Keep shopper consent in sync between dealerMe and your own systems.",{"title":18,"path":19,"stem":20,"description":255,"children":-1},"Read and record whether your organization may reach a contact by email, text or phone call.",1793390153726]