[{"data":1,"prerenderedAt":816},["ShallowReactive",2],{"navigation_docs":3,"-api-sessions":99,"-api-sessions-surround":813},[4,9,28,41,79],{"title":5,"path":6,"stem":7,"icon":8},"Getting Started","\u002Fgetting-started","0.getting-started","i-lucide-house",{"title":10,"icon":11,"path":12,"stem":13,"children":14,"page":27},"Producers","i-lucide-users","\u002Fproducers","1.producers",[15,19,23],{"title":16,"path":17,"stem":18},"Add & Remove","\u002Fproducers\u002Fadd-and-remove","1.producers\u002F1.add-and-remove",{"title":20,"path":21,"stem":22},"Profiles","\u002Fproducers\u002Fmanaging-profiles","1.producers\u002F2.managing-profiles",{"title":24,"path":25,"stem":26},"Licenses","\u002Fproducers\u002Fmanaging-licenses","1.producers\u002F3.managing-licenses",false,{"title":29,"icon":30,"path":31,"stem":32,"children":33,"page":27},"Agency","i-lucide-building-2","\u002Fagency","2.agency",[34,37],{"title":24,"path":35,"stem":36},"\u002Fagency\u002Fmanaging-licenses","2.agency\u002F1.managing-licenses",{"title":38,"path":39,"stem":40},"Territories & Filtering","\u002Fagency\u002Fterritories-and-filtering","2.agency\u002F2.territories-and-filtering",{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":27},"State Guides","i-lucide-map","\u002Fstate-guides","3.state-guides",[47,51,55,59,63,67,71,75],{"title":48,"path":49,"stem":50},"Alabama","\u002Fstate-guides\u002Falabama","3.state-guides\u002F1.alabama",{"title":52,"path":53,"stem":54},"Georgia","\u002Fstate-guides\u002Fgeorgia","3.state-guides\u002F2.georgia",{"title":56,"path":57,"stem":58},"Massachusetts","\u002Fstate-guides\u002Fmassachusetts","3.state-guides\u002F3.massachusetts",{"title":60,"path":61,"stem":62},"Mississippi","\u002Fstate-guides\u002Fmississippi","3.state-guides\u002F4.mississippi",{"title":64,"path":65,"stem":66},"Montana","\u002Fstate-guides\u002Fmontana","3.state-guides\u002F5.montana",{"title":68,"path":69,"stem":70},"New Mexico","\u002Fstate-guides\u002Fnew-mexico","3.state-guides\u002F6.new-mexico",{"title":72,"path":73,"stem":74},"New York","\u002Fstate-guides\u002Fnew-york","3.state-guides\u002F7.new-york",{"title":76,"path":77,"stem":78},"Oregon","\u002Fstate-guides\u002Foregon","3.state-guides\u002F8.oregon",{"title":80,"icon":81,"path":82,"stem":83,"children":84,"page":27},"InsureTrek API","i-lucide-code","\u002Fapi","4.api",[85,89,94],{"title":5,"path":86,"stem":87,"icon":88},"\u002Fapi\u002Fgetting-started","4.api\u002F1.getting-started","i-lucide-rocket",{"title":90,"path":91,"stem":92,"icon":93},"API Reference","\u002Fapi\u002Freference","4.api\u002F2.reference","i-lucide-book-open",{"title":95,"path":96,"stem":97,"icon":98},"Sessions","\u002Fapi\u002Fsessions","4.api\u002F3.sessions","i-lucide-arrow-right-left",{"id":100,"title":95,"body":101,"description":806,"extension":807,"links":808,"meta":809,"navigation":810,"path":96,"seo":811,"stem":97,"__hash__":812},"docs\u002F4.api\u002F3.sessions.md",{"type":102,"value":103,"toc":797},"minimark",[104,120,125,133,137,165,169,172,330,337,341,433,438,600,614,618,643,661,665,672,746,750,783,793],[105,106,109,113,114,119],"note",{"icon":107,"color":108},"i-lucide-flask-conical","amber",[110,111,112],"strong",{},"Early Access"," — The Sessions API is in development. If you're interested in integrating, reach out to ",[115,116,118],"a",{"href":117},"mailto:hello@insuretrek.com","hello@insuretrek.com"," and we'll get you set up as an early partner.",[121,122,124],"h2",{"id":123},"overview","Overview",[126,127,128,129,132],"p",{},"The Sessions API lets you embed InsureTrek license applications directly into your platform. Instead of building complex application forms yourself, you create a ",[110,130,131],{},"session"," via API and redirect your user to InsureTrek. We handle the hard parts — SSN collection, ~150 dynamic background questions, state-specific disclosures, and payment — then redirect the user back to your app when they're done.",[121,134,136],{"id":135},"how-it-works","How It Works",[138,139,140,147,153,159],"ol",{},[141,142,143,146],"li",{},[110,144,145],{},"Sync profile data"," — Pre-fill what you already know (name, NPN, address, etc.) so your user doesn't have to re-enter it.",[141,148,149,152],{},[110,150,151],{},"Create a session"," — Call the API with the license type, states, and payment preference. You get back a URL.",[141,154,155,158],{},[110,156,157],{},"Redirect your user"," — Send them to the InsureTrek application URL. They complete SSN entry, background questions, disclosures, and payment in our secure environment.",[141,160,161,164],{},[110,162,163],{},"Receive webhooks"," — Get notified when the application is submitted, approved, denied, or needs action.",[121,166,168],{"id":167},"pre-filling-profile-data","Pre-filling Profile Data",[126,170,171],{},"Sync your user's profile ahead of time so the application is pre-filled when they arrive.",[173,174,179],"pre",{"className":175,"code":176,"language":177,"meta":178,"style":178},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X PATCH https:\u002F\u002Fapi.insuretrek.com\u002Fv1\u002Fusers\u002Fusr_abc123\u002Flicensing-profile \\\n  -H \"Authorization: Bearer your-access-token\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"npn\": \"12345678\",\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Smith\",\n    \"email\": \"jane@example.com\",\n    \"phone\": \"555-123-4567\",\n    \"dateOfBirth\": \"1990-01-15\",\n    \"residentialAddress\": {\n      \"street\": \"123 Main St\",\n      \"city\": \"Austin\",\n      \"state\": \"TX\",\n      \"zip\": \"78701\"\n    }\n  }'\n","bash","",[180,181,182,205,223,237,249,255,261,267,273,279,285,291,297,303,309,315,321],"code",{"__ignoreMap":178},[183,184,187,191,195,198,201],"span",{"class":185,"line":186},"line",1,[183,188,190],{"class":189},"sBMFI","curl",[183,192,194],{"class":193},"sfazB"," -X",[183,196,197],{"class":193}," PATCH",[183,199,200],{"class":193}," https:\u002F\u002Fapi.insuretrek.com\u002Fv1\u002Fusers\u002Fusr_abc123\u002Flicensing-profile",[183,202,204],{"class":203},"sTEyZ"," \\\n",[183,206,208,211,215,218,221],{"class":185,"line":207},2,[183,209,210],{"class":193},"  -H",[183,212,214],{"class":213},"sMK4o"," \"",[183,216,217],{"class":193},"Authorization: Bearer your-access-token",[183,219,220],{"class":213},"\"",[183,222,204],{"class":203},[183,224,226,228,230,233,235],{"class":185,"line":225},3,[183,227,210],{"class":193},[183,229,214],{"class":213},[183,231,232],{"class":193},"Content-Type: application\u002Fjson",[183,234,220],{"class":213},[183,236,204],{"class":203},[183,238,240,243,246],{"class":185,"line":239},4,[183,241,242],{"class":193},"  -d",[183,244,245],{"class":213}," '",[183,247,248],{"class":193},"{\n",[183,250,252],{"class":185,"line":251},5,[183,253,254],{"class":193},"    \"npn\": \"12345678\",\n",[183,256,258],{"class":185,"line":257},6,[183,259,260],{"class":193},"    \"firstName\": \"Jane\",\n",[183,262,264],{"class":185,"line":263},7,[183,265,266],{"class":193},"    \"lastName\": \"Smith\",\n",[183,268,270],{"class":185,"line":269},8,[183,271,272],{"class":193},"    \"email\": \"jane@example.com\",\n",[183,274,276],{"class":185,"line":275},9,[183,277,278],{"class":193},"    \"phone\": \"555-123-4567\",\n",[183,280,282],{"class":185,"line":281},10,[183,283,284],{"class":193},"    \"dateOfBirth\": \"1990-01-15\",\n",[183,286,288],{"class":185,"line":287},11,[183,289,290],{"class":193},"    \"residentialAddress\": {\n",[183,292,294],{"class":185,"line":293},12,[183,295,296],{"class":193},"      \"street\": \"123 Main St\",\n",[183,298,300],{"class":185,"line":299},13,[183,301,302],{"class":193},"      \"city\": \"Austin\",\n",[183,304,306],{"class":185,"line":305},14,[183,307,308],{"class":193},"      \"state\": \"TX\",\n",[183,310,312],{"class":185,"line":311},15,[183,313,314],{"class":193},"      \"zip\": \"78701\"\n",[183,316,318],{"class":185,"line":317},16,[183,319,320],{"class":193},"    }\n",[183,322,324,327],{"class":185,"line":323},17,[183,325,326],{"class":193},"  }",[183,328,329],{"class":213},"'\n",[126,331,332,333,336],{},"Sensitive data like SSN and background question answers are ",[110,334,335],{},"never"," transmitted through your systems — they're always collected directly by InsureTrek.",[121,338,340],{"id":339},"creating-a-session","Creating a Session",[173,342,344],{"className":175,"code":343,"language":177,"meta":178,"style":178},"curl -X POST https:\u002F\u002Fapi.insuretrek.com\u002Fv1\u002Fapplications\u002Fsessions \\\n  -H \"Authorization: Bearer your-access-token\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"userId\": \"usr_abc123\",\n    \"applicationType\": \"new\",\n    \"licenseType\": \"life_health\",\n    \"states\": [\"TX\", \"CA\"],\n    \"paymentMethod\": \"user_pays\",\n    \"returnUrl\": \"https:\u002F\u002Fyourapp.com\u002Fcallback\",\n    \"webhookUrl\": \"https:\u002F\u002Fyourapp.com\u002Fwebhooks\"\n  }'\n",[180,345,346,360,372,384,392,397,402,407,412,417,422,427],{"__ignoreMap":178},[183,347,348,350,352,355,358],{"class":185,"line":186},[183,349,190],{"class":189},[183,351,194],{"class":193},[183,353,354],{"class":193}," POST",[183,356,357],{"class":193}," https:\u002F\u002Fapi.insuretrek.com\u002Fv1\u002Fapplications\u002Fsessions",[183,359,204],{"class":203},[183,361,362,364,366,368,370],{"class":185,"line":207},[183,363,210],{"class":193},[183,365,214],{"class":213},[183,367,217],{"class":193},[183,369,220],{"class":213},[183,371,204],{"class":203},[183,373,374,376,378,380,382],{"class":185,"line":225},[183,375,210],{"class":193},[183,377,214],{"class":213},[183,379,232],{"class":193},[183,381,220],{"class":213},[183,383,204],{"class":203},[183,385,386,388,390],{"class":185,"line":239},[183,387,242],{"class":193},[183,389,245],{"class":213},[183,391,248],{"class":193},[183,393,394],{"class":185,"line":251},[183,395,396],{"class":193},"    \"userId\": \"usr_abc123\",\n",[183,398,399],{"class":185,"line":257},[183,400,401],{"class":193},"    \"applicationType\": \"new\",\n",[183,403,404],{"class":185,"line":263},[183,405,406],{"class":193},"    \"licenseType\": \"life_health\",\n",[183,408,409],{"class":185,"line":269},[183,410,411],{"class":193},"    \"states\": [\"TX\", \"CA\"],\n",[183,413,414],{"class":185,"line":275},[183,415,416],{"class":193},"    \"paymentMethod\": \"user_pays\",\n",[183,418,419],{"class":185,"line":281},[183,420,421],{"class":193},"    \"returnUrl\": \"https:\u002F\u002Fyourapp.com\u002Fcallback\",\n",[183,423,424],{"class":185,"line":287},[183,425,426],{"class":193},"    \"webhookUrl\": \"https:\u002F\u002Fyourapp.com\u002Fwebhooks\"\n",[183,428,429,431],{"class":185,"line":293},[183,430,326],{"class":193},[183,432,329],{"class":213},[126,434,435],{},[110,436,437],{},"Response:",[173,439,443],{"className":440,"code":441,"language":442,"meta":178,"style":178},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"sessionId\": \"sess_xyz\",\n  \"applicationId\": \"app_abc\",\n  \"applicationUrl\": \"https:\u002F\u002Fapply.insuretrek.com\u002Fs\u002Fxyz\",\n  \"estimatedFees\": { \"total\": 155.00 },\n  \"prefilled\": { \"npn\": true, \"ssn\": false, \"backgroundQuestions\": false }\n}\n","json",[180,444,445,449,473,493,513,543,595],{"__ignoreMap":178},[183,446,447],{"class":185,"line":186},[183,448,248],{"class":213},[183,450,451,454,458,460,463,465,468,470],{"class":185,"line":207},[183,452,453],{"class":213},"  \"",[183,455,457],{"class":456},"spNyl","sessionId",[183,459,220],{"class":213},[183,461,462],{"class":213},":",[183,464,214],{"class":213},[183,466,467],{"class":193},"sess_xyz",[183,469,220],{"class":213},[183,471,472],{"class":213},",\n",[183,474,475,477,480,482,484,486,489,491],{"class":185,"line":225},[183,476,453],{"class":213},[183,478,479],{"class":456},"applicationId",[183,481,220],{"class":213},[183,483,462],{"class":213},[183,485,214],{"class":213},[183,487,488],{"class":193},"app_abc",[183,490,220],{"class":213},[183,492,472],{"class":213},[183,494,495,497,500,502,504,506,509,511],{"class":185,"line":239},[183,496,453],{"class":213},[183,498,499],{"class":456},"applicationUrl",[183,501,220],{"class":213},[183,503,462],{"class":213},[183,505,214],{"class":213},[183,507,508],{"class":193},"https:\u002F\u002Fapply.insuretrek.com\u002Fs\u002Fxyz",[183,510,220],{"class":213},[183,512,472],{"class":213},[183,514,515,517,520,522,524,527,529,532,534,536,540],{"class":185,"line":251},[183,516,453],{"class":213},[183,518,519],{"class":456},"estimatedFees",[183,521,220],{"class":213},[183,523,462],{"class":213},[183,525,526],{"class":213}," {",[183,528,214],{"class":213},[183,530,531],{"class":189},"total",[183,533,220],{"class":213},[183,535,462],{"class":213},[183,537,539],{"class":538},"sbssI"," 155.00",[183,541,542],{"class":213}," },\n",[183,544,545,547,550,552,554,556,558,561,563,565,568,570,573,575,577,580,582,585,587,589,592],{"class":185,"line":257},[183,546,453],{"class":213},[183,548,549],{"class":456},"prefilled",[183,551,220],{"class":213},[183,553,462],{"class":213},[183,555,526],{"class":213},[183,557,214],{"class":213},[183,559,560],{"class":189},"npn",[183,562,220],{"class":213},[183,564,462],{"class":213},[183,566,567],{"class":213}," true,",[183,569,214],{"class":213},[183,571,572],{"class":189},"ssn",[183,574,220],{"class":213},[183,576,462],{"class":213},[183,578,579],{"class":213}," false,",[183,581,214],{"class":213},[183,583,584],{"class":189},"backgroundQuestions",[183,586,220],{"class":213},[183,588,462],{"class":213},[183,590,591],{"class":213}," false",[183,593,594],{"class":213}," }\n",[183,596,597],{"class":185,"line":263},[183,598,599],{"class":213},"}\n",[126,601,602,603,605,606,609,610,613],{},"Redirect your user to ",[180,604,499],{},". When they finish, they're sent back to your ",[180,607,608],{},"returnUrl"," with a status parameter (e.g., ",[180,611,612],{},"?status=submitted",").",[121,615,617],{"id":616},"checking-application-status","Checking Application Status",[173,619,621],{"className":175,"code":620,"language":177,"meta":178,"style":178},"curl https:\u002F\u002Fapi.insuretrek.com\u002Fv1\u002Fapplications\u002Fapp_abc \\\n  -H \"Authorization: Bearer your-access-token\"\n",[180,622,623,632],{"__ignoreMap":178},[183,624,625,627,630],{"class":185,"line":186},[183,626,190],{"class":189},[183,628,629],{"class":193}," https:\u002F\u002Fapi.insuretrek.com\u002Fv1\u002Fapplications\u002Fapp_abc",[183,631,204],{"class":203},[183,633,634,636,638,640],{"class":185,"line":207},[183,635,210],{"class":193},[183,637,214],{"class":213},[183,639,217],{"class":193},[183,641,642],{"class":213},"\"\n",[126,644,645,646,649,650,649,653,656,657,660],{},"Returns status per state: ",[180,647,648],{},"pending_review",", ",[180,651,652],{},"approved",[180,654,655],{},"denied",", or ",[180,658,659],{},"requires_action",".",[121,662,664],{"id":663},"webhooks","Webhooks",[126,666,667,668,671],{},"Subscribe to events instead of polling. InsureTrek sends POST requests to your ",[180,669,670],{},"webhookUrl"," as the application progresses.",[673,674,675,688],"table",{},[676,677,678],"thead",{},[679,680,681,685],"tr",{},[682,683,684],"th",{},"Event",[682,686,687],{},"Description",[689,690,691,702,712,722,732],"tbody",{},[679,692,693,699],{},[694,695,696],"td",{},[180,697,698],{},"application.session_started",[694,700,701],{},"User opened the application URL",[679,703,704,709],{},[694,705,706],{},[180,707,708],{},"application.progress_updated",[694,710,711],{},"User completed a step",[679,713,714,719],{},[694,715,716],{},[180,717,718],{},"application.submitted",[694,720,721],{},"Application submitted to the state",[679,723,724,729],{},[694,725,726],{},[180,727,728],{},"application.status_changed",[694,730,731],{},"State approved, denied, or updated the application",[679,733,734,739],{},[694,735,736],{},[180,737,738],{},"application.requires_action",[694,740,741,742,745],{},"User action needed — includes an ",[180,743,744],{},"actionUrl"," to send them back",[121,747,749],{"id":748},"payment-options","Payment Options",[673,751,752,761],{},[676,753,754],{},[679,755,756,759],{},[682,757,758],{},"Method",[682,760,687],{},[689,762,763,773],{},[679,764,765,770],{},[694,766,767],{},[180,768,769],{},"user_pays",[694,771,772],{},"User pays state + processing fees during the application (default)",[679,774,775,780],{},[694,776,777],{},[180,778,779],{},"partner_billing",[694,781,782],{},"Partner invoiced monthly. User skips the payment step.",[105,784,786,789,790,792],{"icon":785},"i-lucide-mail",[110,787,788],{},"Interested?"," The Sessions API is in early access. Email ",[115,791,118],{"href":117}," to get started.",[794,795,796],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":178,"searchDepth":207,"depth":207,"links":798},[799,800,801,802,803,804,805],{"id":123,"depth":207,"text":124},{"id":135,"depth":207,"text":136},{"id":167,"depth":207,"text":168},{"id":339,"depth":207,"text":340},{"id":616,"depth":207,"text":617},{"id":663,"depth":207,"text":664},{"id":748,"depth":207,"text":749},"Embed license applications into your platform with the Sessions API.","md",null,{},{"title":95,"icon":98},{"title":95,"description":806},"JbYG0mCJ0yGj5nBzwkF5xbTCNsCDejjXaYi2OdtFJdg",[814,808],{"title":90,"path":91,"stem":92,"description":815,"icon":93,"children":-1},"InsureTrek Bridge API reference documentation.",1776382371718]