{"info":{"_postman_id":"bc352a84-296e-42c8-8d95-e621de41904f","name":"Healthcare Solutions API Documentation","description":"<html><head></head><body><p>Collection of API for Healthcare Solutions</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"12208069","collectionId":"bc352a84-296e-42c8-8d95-e621de41904f","publishedId":"2sBXcKBdPT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"293250"},"publishDate":"2026-06-11T20:56:12.000Z"},"item":[{"name":"Lead Intake","id":"80d17a2e-e4bb-4ec3-a738-48d7f8d778e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"phone_number\": \"{{phone_number}}\",\n\t\"first_name\": \"{{first_name}}\",\n\t\"last_name\": \"{{last_name}}\",\n\t\"street\": \"{{street}}\",\n\t\"city\": \"{{city}}\",\n\t\"state\": \"{{state}}\",\n\t\"postal_code\": \"{{postal_code}}\",\n\t\"email\": \"{{email}}\",\n\t\"ipaddress\": \"{{ipaddress}}\",\n\t\"device\": \"{{device}}\",\n\t\"gender\": \"{{gender}}\",\n\t\"age\": \"{{age}}\",\n\t\"dateofbirth\": \"{{dateofbirth}}\",\n\t\"publisher\": \"{{publisher}}\",\n\t\"property\": \"{{property}}\",\n\t\"placement\": \"{{placement}}\",\n\t\"tfcertid\": \"{{tfcertid}}\",\n\t\"marketing_platform\": \"{{marketing_platform}}\",\n\t\"productinterest\": \"{{productinterest}}\",\n\t\"lead_source\": \"{{lead_source}}\",\n\t\"campaignname\": \"{{campaignname}}\",\n\t\"campaignid\": \"{{campaignid}}\",\n\t\"ad_name\": \"{{ad_name}}\",\n\t\"adid\": \"{{adid}}\",\n\t\"adsetname\": \"{{adsetname}}\",\n\t\"marketingleadid\": \"{{marketingleadid}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://lead.healthcaresolutions.net/api/insert","description":"<h2 id=\"lead-intake\">Lead Intake</h2>\n<p>Submits a new lead into the Healthcare Solutions system.</p>\n<hr />\n<h2 id=\"request-body-fields\">Request Body Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>phone_number</code></td>\n<td>String</td>\n<td><em>(Required)</em> Contact phone number for the lead. XXXXXXXXXX format</td>\n</tr>\n<tr>\n<td><code>first_name</code></td>\n<td>String</td>\n<td><em>(Required)</em> Lead's first name</td>\n</tr>\n<tr>\n<td><code>last_name</code></td>\n<td>String</td>\n<td><em>(Required)</em> Lead's last name</td>\n</tr>\n<tr>\n<td><code>street</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Street address of the lead</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>String</td>\n<td><em>(Optional)</em> City of the lead's address</td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td>String</td>\n<td><em>(Optional)</em> 2-letter U.S. state abbreviation (e.g. <code>FL</code>)</td>\n</tr>\n<tr>\n<td><code>postal_code</code></td>\n<td>String</td>\n<td><em>(Required)</em> ZIP/postal code of the lead's address</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Email address of the lead</td>\n</tr>\n<tr>\n<td><code>ipaddress</code></td>\n<td>String</td>\n<td><em>(Optional)</em> IP address captured at the time of lead submission</td>\n</tr>\n<tr>\n<td><code>device</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Device type used by the lead (e.g. <code>MOBILE</code>, <code>DESKTOP</code>)</td>\n</tr>\n<tr>\n<td><code>gender</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Gender of the lead</td>\n</tr>\n<tr>\n<td><code>age</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Age of the lead</td>\n</tr>\n<tr>\n<td><code>dateofbirth</code></td>\n<td>String</td>\n<td><em>(Required)</em> Date of birth in <code>YYYY-MM-DD</code> format</td>\n</tr>\n<tr>\n<td><code>publisher</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Publisher identifier associated with the lead source</td>\n</tr>\n<tr>\n<td><code>property</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Property from which the lead originated</td>\n</tr>\n<tr>\n<td><code>placement</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Placement identifier for the ad or content unit</td>\n</tr>\n<tr>\n<td><code>tfcertid</code></td>\n<td>String</td>\n<td><em>(Optional)</em> TrustedForm certificate URL for consent verification</td>\n</tr>\n<tr>\n<td><code>marketing_platform</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Platform or tool used to generate the lead</td>\n</tr>\n<tr>\n<td><code>productinterest</code></td>\n<td>String</td>\n<td><em>(Required)</em> The health product the lead is interested in. Accepted values: <code>\"Medicare Supplement\"</code>, <code>\"Medicare Advantage\"</code>, <code>\"Final Expense\"</code>, <code>\"ACA\"</code></td>\n</tr>\n<tr>\n<td><code>lead_source</code></td>\n<td>String</td>\n<td><em>(Required)</em> {Provided by Healthcare Solutions}</td>\n</tr>\n<tr>\n<td><code>campaignname</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Name of the marketing campaign associated with the lead</td>\n</tr>\n<tr>\n<td><code>campaignid</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Unique identifier for the campaign</td>\n</tr>\n<tr>\n<td><code>jornayatoken</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Jornaya lead token for TCPA compliance verification</td>\n</tr>\n<tr>\n<td><code>SubID</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Optional sub-identifier for tracking purposes</td>\n</tr>\n<tr>\n<td><code>ad_name</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Name of the ad unit</td>\n</tr>\n<tr>\n<td><code>adid</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Unique identifier for the ad</td>\n</tr>\n<tr>\n<td><code>adsetname</code></td>\n<td>String</td>\n<td><em>(Optional)</em> Name of the ad set</td>\n</tr>\n<tr>\n<td><code>marketingleadid</code></td>\n<td>String</td>\n<td><em>(Optional)</em> External marketing lead ID</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>## Notes</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><p><strong>Phone Format</strong> — The <code>phone</code> field must follow the <code>XXXXXXXXXX</code> format</p>\n</li>\n<li><p><strong>Date Format</strong> — The <code>dateofbirth</code> field must follow the <code>YYYY-MM-DD</code> format.</p>\n</li>\n<li><p><strong>State Format</strong> — The <code>state</code> field expects a standard 2-letter U.S. state abbreviation.</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"responses\">Responses</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status</th>\n<th>Body</th>\n<th>When</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 OK</td>\n<td><code>\"Success\"</code></td>\n<td>The insert completed without throwing an exception</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td><code>\"Failure: {ex.Message}\"</code></td>\n<td>Any exception was thrown during processing</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","insert"],"host":["lead","healthcaresolutions","net"],"query":[],"variable":[]}},"response":[{"id":"fa715dff-a026-448b-aa7c-55ff35917348","name":"Sample Lead Submission","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"phone_number\": \"3059634999\",\n\t\"first_name\": \"Sasha\",\n\t\"last_name\": \"Barkov\",\n\t\"street\": \"123 Road St\",\n\t\"city\": \"Miami\",\n\t\"state\": \"FL\",\n\t\"postal_code\": \"33196\",\n\t\"email\": \"Barky@gopanthers.com\",\n\t\"ipaddress\": \"12.0.0.1\",\n\t\"device\": \"MOBILE\",\n\t\"gender\": \"Male\",\n\t\"age\": \"65\",\n\t\"dateofbirth\": \"1950-01-01\",\n\t\"publisher\": \"TestPub\",\n\t\"property\": \"TestProperty\",\n\t\"placement\": \"TestPlacement\",\n\t\"tfcertid\": \"https://trustedform.com/1231231231231\",\n\t\"marketing_platform\": \"TestPlatform\",\n\t\"productinterest\": \"Medicare Supplement\",\n\t\"lead_source\": \"{Provided by Healthcare Solutions}\",\n\t\"campaignname\": \"TestCampaignName\",\n\t\"campaignid\": \"TestCampaignID\",\n\t\"ad_name\": \"TestAdName\",\n\t\"adid\": \"TestAdID\",\n\t\"adsetname\": \"TestAdSetName\",\n\t\"marketingleadid\": \"TestMarketingLeadID\"\n}","options":{"raw":{"language":"json"}}},"url":"https://lead.healthcaresolutions.net/api/insert"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain","enabled":true}],"cookie":[],"responseTime":null,"body":"Success"}],"_postman_id":"80d17a2e-e4bb-4ec3-a738-48d7f8d778e6"},{"name":"Agent Availability","event":[{"id":"b226fcce-ccc7-4e8f-8267-0ee5229d6a31","listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Agents are available\", function () {","    const json = pm.response.json();","    pm.expect(json.availableAgents).to.be.above(0);","});"]}}],"id":"deeda69c-594a-4398-97d7-81b3deb906e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"## Agent Availability Ping\n\nThis endpoint pings the Agent Availability service to retrieve real-time agent availability status for a given agent/campaign. It is used to monitor agent availability and call activity for a given campaign.\n\n**Base URL:** `https://api.healthcaresolutions.net/api/AgentAvailabilityPing`\n\n**Method:** `GET`\n\n---\n\n## Query Parameters\n\n| Parameter | Value | Description |\n| --- | --- | --- |\n| `code` | `{Provided by Healthcare Solutions}` | The API authorization code provided by Healthcare Solutions. Required for authenticating the request. |\n| `id` | `5905` | The Final Expense Campaign ID used to identify agents for availability. |\n| `queue_id` | `{queue_id}` | The unique identifier for the queue to check agent availability against. Provided by Healthcare Solutions. |\n\n---\n\n## Authentication\n\nAuthentication is handled via the `code` query parameter. This value is provided by Healthcare Solutions and must be included with every request.\n\n---\n\n## Example Request\n\n```\nGET https://api.healthcaresolutions.net/api/AgentAvailabilityPing?code={Provided by Healthcare Solutions}&id=5905&queue_id={queue_id}\n\n ```\n\n---\n\n## Response\n\nA successful request returns a `200 OK` response with the following JSON body:\n\n``` json\n{\n    \"availableAgents\": 2\n}\n\n ```\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `availableAgents` | `number` | The number of agents currently available. A value greater than `0` indicates agents are available. |\n\n### Availability Logic\n\n| `availableAgents` | Status |\n| --- | --- |\n| `> 0` | ✅ Agents available |\n| `0` | ❌ No agents available |\n\nAn invalid or missing `code` parameter will result in a `401 Unauthorized` response."},"url":"https://api.healthcaresolutions.net/api/AgentAvailabilityPing?code={Provided by Healthcare Solutions}&id=5905","description":"<h2 id=\"agent-availability-ping\">Agent Availability Ping</h2>\n<p>This endpoint pings the Agent Availability service to retrieve real-time agent availability status for a given agent/campaign. It is used to monitor agent availability and call activity for a given campaign.</p>\n<p><strong>Base URL:</strong> <code>https://api.healthcaresolutions.net/api/AgentAvailabilityPing</code></p>\n<p><strong>Method:</strong> <code>GET</code></p>\n<hr />\n<h2 id=\"query-parameters\">Query Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>code</code></td>\n<td><code>{Provided by Healthcare Solutions}</code></td>\n<td>The API authorization code provided by Healthcare Solutions. Required for authenticating the request.</td>\n</tr>\n<tr>\n<td><code>id</code></td>\n<td><code>5905</code></td>\n<td>The Final Expense Campaign ID used to identify agents for availability.</td>\n</tr>\n<tr>\n<td><code>queue_id</code></td>\n<td><code>{Provided by Healthcare Solutions}</code></td>\n<td>The unique identifier for the queue to check agent availability against. Provided by Healthcare Solutions.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"authentication\">Authentication</h2>\n<p>Authentication is handled via the <code>code</code> query parameter. This value is provided by Healthcare Solutions and must be included with every request.</p>\n<hr />\n<h2 id=\"example-request\">Example Request</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.healthcaresolutions.net/api/AgentAvailabilityPing?code={Provided by Healthcare Solutions}&amp;id=5905&amp;queue_id={Provided by Healthcare Solutions}\n\n</code></pre><hr />\n<h2 id=\"response\">Response</h2>\n<p>A successful request returns a <code>200 OK</code> response with the following JSON body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"availableAgents\": 2\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>availableAgents</code></td>\n<td><code>number</code></td>\n<td>The number of agents currently available. A value greater than <code>0</code> indicates agents are available.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"availability-logic\">Availability Logic</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>availableAgents</code></th>\n<th>Status</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>&gt; 0</code></td>\n<td>✅ Agents available</td>\n</tr>\n<tr>\n<td><code>0</code></td>\n<td>❌ No agents available</td>\n</tr>\n</tbody>\n</table>\n</div><p>An invalid or missing <code>code</code> parameter will result in a <code>401 Unauthorized</code> response.</p>\n","urlObject":{"protocol":"https","path":["api","AgentAvailabilityPing"],"host":["api","healthcaresolutions","net"],"query":[{"description":{"content":"<p>The API authorization code provided by Healthcare Solutions. Required for authenticating the request.</p>\n","type":"text/plain"},"key":"code","value":"{Provided by Healthcare Solutions}"},{"description":{"content":"<p>The Final Expense Campaign ID used to identify agents for availability.</p>\n","type":"text/plain"},"key":"id","value":"5905"}],"variable":[]}},"response":[],"_postman_id":"deeda69c-594a-4398-97d7-81b3deb906e7"}]}