{"info":{"_postman_id":"5ece779f-25f1-4c1b-8d1f-93350b745e9e","name":"Stella From Demand IQ","description":"<html><head></head><body><p>Stella is a friendly new solar A.I. powered by Google Project Sunroof, armed with the skills to help your website convert more visitors!</p>\n<p>Use our API to get leads into your CRM.</p>\n<p>Get your API key from <a href=\"https://portal.demand-iq.com/products/configurator\">https://portal.demand-iq.com/products/configurator</a> -&gt; Integration -&gt; Active API Key -&gt; Show</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9514204","collectionId":"5ece779f-25f1-4c1b-8d1f-93350b745e9e","publishedId":"TVKA3JpC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"47AADD"},"publishDate":"2020-09-29T14:16:04.000Z"},"item":[{"name":"New or Updated Lead","id":"08bdd309-29ca-4198-a3e7-1daff892f711","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"description":"<p>Content type of body</p>\n","key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"description":"<p>API Key</p>\n","key":"X-API-KEY","type":"text","value":"{{apikey}}"}],"body":{"mode":"raw","raw":"{\n    \"target\": \"{{target_url}}\",\n    \"content_type\": \"{{content_type}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.demand-iq.com/api/hooks/","description":"<p>Subscribes the target URL as a callback any time there is a new or updated lead.</p>\n<p>The target URL will receive a flat JSON object as a POST body by default.</p>\n<p>If you set content_type explicitly when subscribing the target URL, the POST body will be that content type.  Supported values are <code>application/json</code> and <code>application/x-www-form-urlencoded</code>.</p>\n<p>Here is a description of the fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>uuid</td>\n<td>The id of Lead</td>\n</tr>\n<tr>\n<td>Lead Type</td>\n<td>string</td>\n<td>Lead Type</td>\n</tr>\n<tr>\n<td>Lead Status</td>\n<td>string</td>\n<td>Lead Status</td>\n</tr>\n<tr>\n<td>First Name</td>\n<td>string</td>\n<td>First Name of Lead</td>\n</tr>\n<tr>\n<td>Last Name</td>\n<td>string</td>\n<td>Last Name of Lead</td>\n</tr>\n<tr>\n<td>E-mail</td>\n<td>email</td>\n<td>Email of Lead</td>\n</tr>\n<tr>\n<td>Phone</td>\n<td>string</td>\n<td>Phone of Lead</td>\n</tr>\n<tr>\n<td>Address</td>\n<td>string</td>\n<td>Address of Lead</td>\n</tr>\n<tr>\n<td>Unit</td>\n<td>string</td>\n<td>Unit of Lead</td>\n</tr>\n<tr>\n<td>State</td>\n<td>string</td>\n<td>State of Lead</td>\n</tr>\n<tr>\n<td>Zip Code</td>\n<td>string</td>\n<td>Zip Code of Lead</td>\n</tr>\n<tr>\n<td>Average Bill</td>\n<td>decimal</td>\n<td>Average Bill</td>\n</tr>\n<tr>\n<td>Timeframe</td>\n<td>string</td>\n<td>ASAP or Next month or In 6 months</td>\n</tr>\n<tr>\n<td>Meeting Datetime</td>\n<td>string</td>\n<td>Meeting Datetime</td>\n</tr>\n<tr>\n<td>Meeting Timezone</td>\n<td>string</td>\n<td>Meeting Timezone</td>\n</tr>\n<tr>\n<td>Resume URL</td>\n<td>string</td>\n<td>A link that enables an end user to return back to Stella at the step where they last left off to resume progress.</td>\n</tr>\n<tr>\n<td>Utility Bills URL</td>\n<td>string</td>\n<td>Utility Bills URL</td>\n</tr>\n<tr>\n<td>Variation Name</td>\n<td>string</td>\n<td>Variation Name</td>\n</tr>\n<tr>\n<td>Jornaya Lead ID</td>\n<td>string</td>\n<td>Jornaya Lead ID</td>\n</tr>\n<tr>\n<td>UTM Campaign Source</td>\n<td>string</td>\n<td>UTM Campaign Source</td>\n</tr>\n<tr>\n<td>UTM Campaign Medium</td>\n<td>string</td>\n<td>UTM Campaign Medium</td>\n</tr>\n<tr>\n<td>UTM Campaign Name</td>\n<td>string</td>\n<td>UTM Campaign Name</td>\n</tr>\n<tr>\n<td>UTM Campaign Term</td>\n<td>string</td>\n<td>UTM Campaign Term</td>\n</tr>\n<tr>\n<td>UTM Campaign Content</td>\n<td>string</td>\n<td>UTM Campaign Content</td>\n</tr>\n<tr>\n<td>Latest FBCLID</td>\n<td>string</td>\n<td>Latest FBCLID</td>\n</tr>\n<tr>\n<td>Latest GCLID</td>\n<td>string</td>\n<td>Latest GCLID</td>\n</tr>\n<tr>\n<td>Screening Details</td>\n<td>string</td>\n<td>A free-form text field with information like average bill, meeting date/time, utility bills, and a preview of the estimate</td>\n</tr>\n</tbody>\n</table>\n</div><p><br />Here is the sample data:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": \"2cdcec95-d7ca-4059-4728-373c61cf5387\",\n    \"Lead Type\": \"Residential\",\n    \"Lead Status\": \"Lead\",\n    \"First Name\": \"Gabe\",\n    \"Last Name\": \"Johnson\",\n    \"E-mail\": \"gabe@johnson.com\",\n    \"Phone\": \"(212) 555-0544\",\n    \"Address\": \"555 Frederick Street\",\n    \"Unit\": \"\",\n    \"City\": \"Buda\",\n    \"State\": \"Texas\",\n    \"Zip Code\": \"78610\",\n    \"Average Bill\": 125,\n    \"Timeframe\": \"Next 6 months\",\n    \"Meeting Datetime\": \"4/05/2021 2:00 PM\",\n    \"Meeting Timezone\": \"Pacific Time\",\n    \"Resume URL\": \"https://estimate.gocamsolar.com/resume/6ea46461-6f46-434f-92cf-a1f26ba6fc6e/\",\n    \"Utility Bills URL\": \"https://portal.demand-iq.com/api/utility-bills/6ea46461-6f46-434f-92cf-a1f26ba6fc6e/\"\n    \"Variation Name\": \"Variation 1\",\n    \"Jornaya Lead ID\": \"8B3C6416-D027-2315-F067-C5433C2B53354\",\n    \"UTM Campaign Source\": \"facebook\",\n    \"UTM Campaign Medium\": \"medium\",\n    \"UTM Campaign Name\": \"abc\",\n    \"UTM Campaign Term\": \"2020q1\",\n    \"UTM Campaign Content\": \"content\",\n    \"Screening Details\": \"Promo Code: 1001\\nAverage Bill: 125\\nCustomer Type: Residential\\nTimeframe: Next 6 months\\nMeeting Datetime: 4/05/2021 2:00 PM\\nMeeting Timezone: Pacific Time\\nJornaya Lead ID: 8B3C6416-D027-2315-F067-C5433C2B53354\\nVisitor ID: 2cdcec95-d7ca-4059-4728-373c61cf5387\\nUtility Bills URL: \\nEstimate URL: https://estimate.gocamsolar.com/proposals/2cdcec95-d7ca-4059-4728-373c61cf5387\"\n}\n</code></pre>","urlObject":{"path":["hooks",""],"host":["https://portal.demand-iq.com/api"],"query":[],"variable":[]}},"response":[{"id":"464254d6-59a0-4de9-9a53-16aba792aabe","name":"New or Updated Lead","originalRequest":{"method":"POST","header":[{"description":"Content type of body","key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"description":"API Key","key":"X-API-KEY","type":"text","value":"{{apikey}}"}],"body":{"mode":"raw","raw":"{\n    \"target\": \"{{target_url}}\",\n    \"content_type\": \"{{content_type}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.demand-iq.com/api/hooks/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n    \"target\": \"https://example.com/\",\n    \"solar_company\": \"00000000-1111-2222-3333-444444444444\",\n    \"content_type\": \"application/json\",\n    \"created_at\": \"2020-01-01T00:00:00.000000Z\",\n    \"updated_at\": \"2020-01-01T00:00:00.000000Z\"\n}"}],"_postman_id":"08bdd309-29ca-4198-a3e7-1daff892f711"},{"name":"Stop Lead Updates","id":"44eddd0a-e053-404d-9f3a-83125ce0e550","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","description":"<p>Content type of body</p>\n","type":"text"},{"description":"<p>API Key</p>\n","key":"X-API-KEY","type":"text","value":"{{apikey}}"}],"body":{"mode":"raw","raw":"{\n    \"target\": \"{{target_url}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.demand-iq.com/api/hooks/","description":"<p>Unubscribes the target URL as no longer a callback.</p>\n","urlObject":{"path":["hooks",""],"host":["https://portal.demand-iq.com/api"],"query":[],"variable":[]}},"response":[{"id":"c1502c3e-19a0-405d-a6c6-71ae1a7d6460","name":"Stop Lead Updates","originalRequest":{"method":"DELETE","header":[{"description":"Content type of body","key":"Content-Type","type":"text","value":"application/json"},{"description":"API Key","key":"X-API-KEY","type":"text","value":"{{apikey}}"}],"body":{"mode":"raw","raw":"{\n    \"target\": \"{{target_url}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.demand-iq.com/api/hooks/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"success\"\n}"}],"_postman_id":"44eddd0a-e053-404d-9f3a-83125ce0e550"},{"name":"update business hours","id":"a7305bfb-646d-4fe2-8d15-144a7e144076","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"businessHours\": [\"0600\", \"2000\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://dev.api.demand-iq.com/api/v1.0/admin/settings/company/a12cb6b5-2507-4cad-858e-0c7a1823525d","urlObject":{"protocol":"https","path":["api","v1.0","admin","settings","company","a12cb6b5-2507-4cad-858e-0c7a1823525d"],"host":["dev","api","demand-iq","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7305bfb-646d-4fe2-8d15-144a7e144076"}],"event":[{"listen":"prerequest","script":{"id":"a4c0abdc-78d7-4825-b7c1-fb36ca514d13","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c6e1bd24-3683-411b-8d84-57e2e5ce3c43","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"https://portal.demand-iq.com/api"}]}