[{"data":1,"prerenderedAt":2519},["ShallowReactive",2],{"navigation":3,"/rest-api/channels":151,"/rest-api/channels-surround":2514},[4,26,123,144],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Introduction","/getting-started","1.getting-started/1.index",[9,11,16,21],{"title":5,"path":6,"stem":7,"icon":10},"i-lucide-house",{"title":12,"path":13,"stem":14,"icon":15},"Authentication","/getting-started/authentication","1.getting-started/2.authentication","i-lucide-key-round",{"title":17,"path":18,"stem":19,"icon":20},"Rate Limits","/getting-started/rate-limits","1.getting-started/3.rate-limits","i-lucide-gauge",{"title":22,"path":23,"stem":24,"icon":25},"Error Handling","/getting-started/errors","1.getting-started/4.errors","i-lucide-triangle-alert",{"title":27,"path":28,"stem":29,"children":30,"icon":32},"API Reference","/rest-api","2.rest-api/1.index",[31,33,38,43,48,53,58,63,68,73,78,83,88,93,98,103,108,113,118],{"title":27,"path":28,"stem":29,"icon":32},"i-lucide-code-2",{"title":34,"path":35,"stem":36,"icon":37},"Lists & Segments","/rest-api/lists","2.rest-api/10.lists","i-lucide-list",{"title":39,"path":40,"stem":41,"icon":42},"AI Agents","/rest-api/ai-agents","2.rest-api/11.ai-agents","i-lucide-bot",{"title":44,"path":45,"stem":46,"icon":47},"Campaigns","/rest-api/campaigns","2.rest-api/12.campaigns","i-lucide-send",{"title":49,"path":50,"stem":51,"icon":52},"Support Tickets","/rest-api/tickets","2.rest-api/13.tickets","i-lucide-ticket",{"title":54,"path":55,"stem":56,"icon":57},"Web Chat","/rest-api/web-chat","2.rest-api/14.web-chat","i-lucide-message-square",{"title":59,"path":60,"stem":61,"icon":62},"Knowledge Base","/rest-api/knowledge-base","2.rest-api/15.knowledge-base","i-lucide-book-open",{"title":64,"path":65,"stem":66,"icon":67},"Voice","/rest-api/voice","2.rest-api/16.voice","i-lucide-mic",{"title":69,"path":70,"stem":71,"icon":72},"Media","/rest-api/media","2.rest-api/17.media","i-lucide-image",{"title":74,"path":75,"stem":76,"icon":77},"Channels","/rest-api/channels","2.rest-api/18.channels","i-lucide-plug",{"title":79,"path":80,"stem":81,"icon":82},"Partners","/rest-api/partners","2.rest-api/19.partners","i-lucide-handshake",{"title":84,"path":85,"stem":86,"icon":87},"Contacts","/rest-api/contacts","2.rest-api/2.contacts","i-lucide-users",{"title":89,"path":90,"stem":91,"icon":92},"Messages","/rest-api/messages","2.rest-api/3.messages","i-lucide-message-circle",{"title":94,"path":95,"stem":96,"icon":97},"Bookings","/rest-api/bookings","2.rest-api/4.bookings","i-lucide-calendar",{"title":99,"path":100,"stem":101,"icon":102},"Orders","/rest-api/orders","2.rest-api/5.orders","i-lucide-shopping-bag",{"title":104,"path":105,"stem":106,"icon":107},"Webhooks API","/rest-api/webhooks-api","2.rest-api/6.webhooks-api","i-lucide-webhook",{"title":109,"path":110,"stem":111,"icon":112},"Account","/rest-api/account","2.rest-api/7.account","i-lucide-building-2",{"title":114,"path":115,"stem":116,"icon":117},"Team Members","/rest-api/team","2.rest-api/8.team","i-lucide-users-2",{"title":119,"path":120,"stem":121,"icon":122},"Tags","/rest-api/tags","2.rest-api/9.tags","i-lucide-tag",{"title":124,"path":125,"stem":126,"children":127,"icon":129},"Webhooks Overview","/webhooks","3.webhooks/1.index",[128,130,134,139],{"title":124,"path":125,"stem":126,"icon":129},"i-lucide-zap",{"title":131,"path":132,"stem":133,"icon":37},"Events & Payloads","/webhooks/events","3.webhooks/2.events",{"title":135,"path":136,"stem":137,"icon":138},"Signature Verification","/webhooks/security","3.webhooks/3.security","i-lucide-shield-check",{"title":140,"path":141,"stem":142,"icon":143},"Delivery & Retries","/webhooks/delivery","3.webhooks/4.delivery","i-lucide-refresh-cw",{"title":145,"path":146,"stem":147,"children":148,"icon":150},"Changelog","/changelog","4.changelog/1.index",[149],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-history",{"id":152,"title":74,"body":153,"description":2507,"extension":2508,"links":2509,"meta":2510,"navigation":2511,"path":75,"seo":2512,"stem":76,"__hash__":2513},"docs/2.rest-api/18.channels.md",{"type":154,"value":155,"toc":2480},"minimark",[156,161,170,317,419,426,509,512,515,522,526,537,548,586,591,692,715,717,721,730,736,740,770,798,801,973,1019,1021,1025,1034,1037,1065,1071,1073,1077,1086,1093,1100,1128,1130,1133,1142,1154,1158,1167,1195,1198,1292,1294,1298,1307,1314,1342,1399,1401,1405,1414,1418,1420,1424,1433,1437,1439,1442,1449,1453,1462,1466,1536,1597,1654,1658,1797,1801,1909,1916,1918,1922,1931,1934,1937,1985,2027,2031,2167,2171,2275,2277,2281,2290,2293,2296,2323,2326,2363,2365,2369,2378,2385,2409,2414,2416,2420,2429,2438,2442,2444,2448,2457,2462,2464,2468,2476],[157,158,160],"h2",{"id":159},"the-channel-object","The Channel object",[162,163,164,165,169],"p",{},"Every connect, status, and refresh endpoint returns a ",[166,167,168],"strong",{},"channel object",":",[171,172,177],"pre",{"className":173,"code":174,"language":175,"meta":176,"style":176},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"id\": 5,\n  \"type\": \"whatsapp\",\n  \"username\": \"+966501234567\",\n  \"is_connected\": true,\n  \"sync_status\": \"OK\",\n  \"last_synced_at\": \"2026-03-11T10:00:00+03:00\"\n}\n","json","",[178,179,180,189,211,234,255,270,291,311],"code",{"__ignoreMap":176},[181,182,185],"span",{"class":183,"line":184},"line",1,[181,186,188],{"class":187},"sMK4o","{\n",[181,190,192,195,199,202,204,208],{"class":183,"line":191},2,[181,193,194],{"class":187},"  \"",[181,196,198],{"class":197},"spNyl","id",[181,200,201],{"class":187},"\"",[181,203,169],{"class":187},[181,205,207],{"class":206},"sbssI"," 5",[181,209,210],{"class":187},",\n",[181,212,214,216,219,221,223,226,230,232],{"class":183,"line":213},3,[181,215,194],{"class":187},[181,217,218],{"class":197},"type",[181,220,201],{"class":187},[181,222,169],{"class":187},[181,224,225],{"class":187}," \"",[181,227,229],{"class":228},"sfazB","whatsapp",[181,231,201],{"class":187},[181,233,210],{"class":187},[181,235,237,239,242,244,246,248,251,253],{"class":183,"line":236},4,[181,238,194],{"class":187},[181,240,241],{"class":197},"username",[181,243,201],{"class":187},[181,245,169],{"class":187},[181,247,225],{"class":187},[181,249,250],{"class":228},"+966501234567",[181,252,201],{"class":187},[181,254,210],{"class":187},[181,256,258,260,263,265,267],{"class":183,"line":257},5,[181,259,194],{"class":187},[181,261,262],{"class":197},"is_connected",[181,264,201],{"class":187},[181,266,169],{"class":187},[181,268,269],{"class":187}," true,\n",[181,271,273,275,278,280,282,284,287,289],{"class":183,"line":272},6,[181,274,194],{"class":187},[181,276,277],{"class":197},"sync_status",[181,279,201],{"class":187},[181,281,169],{"class":187},[181,283,225],{"class":187},[181,285,286],{"class":228},"OK",[181,288,201],{"class":187},[181,290,210],{"class":187},[181,292,294,296,299,301,303,305,308],{"class":183,"line":293},7,[181,295,194],{"class":187},[181,297,298],{"class":197},"last_synced_at",[181,300,201],{"class":187},[181,302,169],{"class":187},[181,304,225],{"class":187},[181,306,307],{"class":228},"2026-03-11T10:00:00+03:00",[181,309,310],{"class":187},"\"\n",[181,312,314],{"class":183,"line":313},8,[181,315,316],{"class":187},"}\n",[318,319,320,336],"table",{},[321,322,323],"thead",{},[324,325,326,330,333],"tr",{},[327,328,329],"th",{},"Field",[327,331,332],{},"Type",[327,334,335],{},"Description",[337,338,339,352,373,385,397,408],"tbody",{},[324,340,341,346,349],{},[342,343,344],"td",{},[178,345,198],{},[342,347,348],{},"integer",[342,350,351],{},"Channel setting ID",[324,353,354,358,361],{},[342,355,356],{},[178,357,218],{},[342,359,360],{},"string",[342,362,363,365,366,369,370],{},[178,364,229],{},", ",[178,367,368],{},"telegram",", or ",[178,371,372],{},"instagram",[324,374,375,379,382],{},[342,376,377],{},[178,378,241],{},[342,380,381],{},"string|null",[342,383,384],{},"Phone number or Instagram username",[324,386,387,391,394],{},[342,388,389],{},[178,390,262],{},[342,392,393],{},"boolean",[342,395,396],{},"Whether the channel is currently active",[324,398,399,403,405],{},[342,400,401],{},[178,402,277],{},[342,404,360],{},[342,406,407],{},"Live status from Unipile — see table below",[324,409,410,414,416],{},[342,411,412],{},[178,413,298],{},[342,415,381],{},[342,417,418],{},"ISO 8601 timestamp of last sync",[420,421,423,425],"h3",{"id":422},"sync_status-values",[178,424,277],{}," values",[318,427,428,438],{},[321,429,430],{},[324,431,432,435],{},[327,433,434],{},"Value",[327,436,437],{},"Meaning",[337,439,440,449,459,469,479,489,499],{},[324,441,442,446],{},[342,443,444],{},[178,445,286],{},[342,447,448],{},"Connected and healthy",[324,450,451,456],{},[342,452,453],{},[178,454,455],{},"CONNECTING",[342,457,458],{},"Account is initializing",[324,460,461,466],{},[342,462,463],{},[178,464,465],{},"SYNC_SUCCESS",[342,467,468],{},"Sync completed successfully",[324,470,471,476],{},[342,472,473],{},[178,474,475],{},"CREDENTIALS",[342,477,478],{},"Password changed — re-connect required",[324,480,481,486],{},[342,482,483],{},[178,484,485],{},"ERROR",[342,487,488],{},"Generic error — try refresh or re-connect",[324,490,491,496],{},[342,492,493],{},[178,494,495],{},"STOPPED",[342,497,498],{},"Account paused",[324,500,501,506],{},[342,502,503],{},[178,504,505],{},"CREATION_FAIL",[342,507,508],{},"QR connection attempt failed",[510,511],"hr",{},[157,513,514],{"id":229},"WhatsApp",[162,516,517,518,521],{},"WhatsApp uses a ",[166,519,520],{},"QR code"," flow. Your app generates a QR code and the end user scans it with their WhatsApp mobile app.",[420,523,525],{"id":524},"connect-whatsapp","Connect WhatsApp",[171,527,531],{"className":528,"code":529,"language":530,"meta":176,"style":176},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","POST /api/v1/channels/whatsapp/connect\n","http",[178,532,533],{"__ignoreMap":176},[181,534,535],{"class":183,"line":184},[181,536,529],{},[162,538,539,540,543,544,547],{},"Generates a QR code for WhatsApp login. Returns the raw QR string and an ",[178,541,542],{},"account_id"," to poll with. Returns ",[166,545,546],{},"409"," if WhatsApp is already connected — disconnect first.",[171,549,553],{"className":550,"code":551,"language":552,"meta":176,"style":176},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST https://dashboard.skylightchat.com/api/v1/channels/whatsapp/connect \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n","bash",[178,554,555,574],{"__ignoreMap":176},[181,556,557,561,564,567,570],{"class":183,"line":184},[181,558,560],{"class":559},"sBMFI","curl",[181,562,563],{"class":228}," -X",[181,565,566],{"class":228}," POST",[181,568,569],{"class":228}," https://dashboard.skylightchat.com/api/v1/channels/whatsapp/connect",[181,571,573],{"class":572},"sTEyZ"," \\\n",[181,575,576,579,581,584],{"class":183,"line":191},[181,577,578],{"class":228},"  -H",[181,580,225],{"class":187},[181,582,583],{"class":228},"X-Api-Key: YOUR_API_KEY",[181,585,310],{"class":187},[587,588,590],"h4",{"id":589},"response","Response",[171,592,594],{"className":173,"code":593,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"account_id\": \"wa_abc123\",\n    \"qr_code\": \"2@AbCdEfGh...,1234...\"\n  },\n  \"message\": \"QR code generated. Scan with WhatsApp on your phone...\"\n}\n",[178,595,596,600,613,627,647,665,670,688],{"__ignoreMap":176},[181,597,598],{"class":183,"line":184},[181,599,188],{"class":187},[181,601,602,604,607,609,611],{"class":183,"line":191},[181,603,194],{"class":187},[181,605,606],{"class":197},"success",[181,608,201],{"class":187},[181,610,169],{"class":187},[181,612,269],{"class":187},[181,614,615,617,620,622,624],{"class":183,"line":213},[181,616,194],{"class":187},[181,618,619],{"class":197},"data",[181,621,201],{"class":187},[181,623,169],{"class":187},[181,625,626],{"class":187}," {\n",[181,628,629,632,634,636,638,640,643,645],{"class":183,"line":236},[181,630,631],{"class":187},"    \"",[181,633,542],{"class":559},[181,635,201],{"class":187},[181,637,169],{"class":187},[181,639,225],{"class":187},[181,641,642],{"class":228},"wa_abc123",[181,644,201],{"class":187},[181,646,210],{"class":187},[181,648,649,651,654,656,658,660,663],{"class":183,"line":257},[181,650,631],{"class":187},[181,652,653],{"class":559},"qr_code",[181,655,201],{"class":187},[181,657,169],{"class":187},[181,659,225],{"class":187},[181,661,662],{"class":228},"2@AbCdEfGh...,1234...",[181,664,310],{"class":187},[181,666,667],{"class":183,"line":272},[181,668,669],{"class":187},"  },\n",[181,671,672,674,677,679,681,683,686],{"class":183,"line":293},[181,673,194],{"class":187},[181,675,676],{"class":197},"message",[181,678,201],{"class":187},[181,680,169],{"class":187},[181,682,225],{"class":187},[181,684,685],{"class":228},"QR code generated. Scan with WhatsApp on your phone...",[181,687,310],{"class":187},[181,689,690],{"class":183,"line":313},[181,691,316],{"class":187},[693,694,695],"blockquote",{},[162,696,697,700,701,703,704,365,707,710,711,714],{},[166,698,699],{},"Rendering the QR code:"," Pass the ",[178,702,653],{}," string to any standard QR library (e.g. ",[178,705,706],{},"qrcode.js",[178,708,709],{},"python-qrcode","). The string is in WhatsApp's multi-device format — do ",[166,712,713],{},"not"," treat it as a URL.",[510,716],{},[420,718,720],{"id":719},"get-whatsapp-status","Get WhatsApp status",[171,722,724],{"className":528,"code":723,"language":530,"meta":176,"style":176},"GET /api/v1/channels/whatsapp/status\n",[178,725,726],{"__ignoreMap":176},[181,727,728],{"class":183,"line":184},[181,729,723],{},[162,731,732,733,735],{},"Poll this endpoint after the user scans the QR code. Pass the ",[178,734,542],{}," returned by the connect call.",[587,737,739],{"id":738},"query-parameters","Query parameters",[318,741,742,753],{},[321,743,744],{},[324,745,746,749,751],{},[327,747,748],{},"Parameter",[327,750,332],{},[327,752,335],{},[337,754,755],{},[324,756,757,761,763],{},[342,758,759],{},[178,760,542],{},[342,762,360],{},[342,764,765,766,769],{},"Optional. Returned by ",[178,767,768],{},"/connect",". Omit to get the current connected account.",[171,771,773],{"className":550,"code":772,"language":552,"meta":176,"style":176},"curl \"https://dashboard.skylightchat.com/api/v1/channels/whatsapp/status?account_id=wa_abc123\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n",[178,774,775,788],{"__ignoreMap":176},[181,776,777,779,781,784,786],{"class":183,"line":184},[181,778,560],{"class":559},[181,780,225],{"class":187},[181,782,783],{"class":228},"https://dashboard.skylightchat.com/api/v1/channels/whatsapp/status?account_id=wa_abc123",[181,785,201],{"class":187},[181,787,573],{"class":572},[181,789,790,792,794,796],{"class":183,"line":191},[181,791,578],{"class":228},[181,793,225],{"class":187},[181,795,583],{"class":228},[181,797,310],{"class":187},[587,799,590],{"id":800},"response-1",[171,802,804],{"className":173,"code":803,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 5,\n    \"type\": \"whatsapp\",\n    \"username\": \"+966501234567\",\n    \"is_connected\": true,\n    \"sync_status\": \"OK\",\n    \"last_synced_at\": \"2026-03-11T10:00:00+03:00\",\n    \"completed\": true,\n    \"in_progress\": false\n  }\n}\n",[178,805,806,810,822,834,848,866,884,896,914,933,947,962,968],{"__ignoreMap":176},[181,807,808],{"class":183,"line":184},[181,809,188],{"class":187},[181,811,812,814,816,818,820],{"class":183,"line":191},[181,813,194],{"class":187},[181,815,606],{"class":197},[181,817,201],{"class":187},[181,819,169],{"class":187},[181,821,269],{"class":187},[181,823,824,826,828,830,832],{"class":183,"line":213},[181,825,194],{"class":187},[181,827,619],{"class":197},[181,829,201],{"class":187},[181,831,169],{"class":187},[181,833,626],{"class":187},[181,835,836,838,840,842,844,846],{"class":183,"line":236},[181,837,631],{"class":187},[181,839,198],{"class":559},[181,841,201],{"class":187},[181,843,169],{"class":187},[181,845,207],{"class":206},[181,847,210],{"class":187},[181,849,850,852,854,856,858,860,862,864],{"class":183,"line":257},[181,851,631],{"class":187},[181,853,218],{"class":559},[181,855,201],{"class":187},[181,857,169],{"class":187},[181,859,225],{"class":187},[181,861,229],{"class":228},[181,863,201],{"class":187},[181,865,210],{"class":187},[181,867,868,870,872,874,876,878,880,882],{"class":183,"line":272},[181,869,631],{"class":187},[181,871,241],{"class":559},[181,873,201],{"class":187},[181,875,169],{"class":187},[181,877,225],{"class":187},[181,879,250],{"class":228},[181,881,201],{"class":187},[181,883,210],{"class":187},[181,885,886,888,890,892,894],{"class":183,"line":293},[181,887,631],{"class":187},[181,889,262],{"class":559},[181,891,201],{"class":187},[181,893,169],{"class":187},[181,895,269],{"class":187},[181,897,898,900,902,904,906,908,910,912],{"class":183,"line":313},[181,899,631],{"class":187},[181,901,277],{"class":559},[181,903,201],{"class":187},[181,905,169],{"class":187},[181,907,225],{"class":187},[181,909,286],{"class":228},[181,911,201],{"class":187},[181,913,210],{"class":187},[181,915,917,919,921,923,925,927,929,931],{"class":183,"line":916},9,[181,918,631],{"class":187},[181,920,298],{"class":559},[181,922,201],{"class":187},[181,924,169],{"class":187},[181,926,225],{"class":187},[181,928,307],{"class":228},[181,930,201],{"class":187},[181,932,210],{"class":187},[181,934,936,938,941,943,945],{"class":183,"line":935},10,[181,937,631],{"class":187},[181,939,940],{"class":559},"completed",[181,942,201],{"class":187},[181,944,169],{"class":187},[181,946,269],{"class":187},[181,948,950,952,955,957,959],{"class":183,"line":949},11,[181,951,631],{"class":187},[181,953,954],{"class":559},"in_progress",[181,956,201],{"class":187},[181,958,169],{"class":187},[181,960,961],{"class":187}," false\n",[181,963,965],{"class":183,"line":964},12,[181,966,967],{"class":187},"  }\n",[181,969,971],{"class":183,"line":970},13,[181,972,316],{"class":187},[318,974,975,989],{},[321,976,977],{},[324,978,979,983,987],{},[327,980,981],{},[178,982,940],{},[327,984,985],{},[178,986,954],{},[327,988,437],{},[337,990,991,1006],{},[324,992,993,998,1003],{},[342,994,995],{},[178,996,997],{},"false",[342,999,1000],{},[178,1001,1002],{},"true",[342,1004,1005],{},"Waiting for QR scan — keep polling every 2–3 seconds",[324,1007,1008,1012,1016],{},[342,1009,1010],{},[178,1011,1002],{},[342,1013,1014],{},[178,1015,997],{},[342,1017,1018],{},"Connected successfully",[510,1020],{},[420,1022,1024],{"id":1023},"refresh-whatsapp-status","Refresh WhatsApp status",[171,1026,1028],{"className":528,"code":1027,"language":530,"meta":176,"style":176},"POST /api/v1/channels/whatsapp/refresh\n",[178,1029,1030],{"__ignoreMap":176},[181,1031,1032],{"class":183,"line":184},[181,1033,1027],{},[162,1035,1036],{},"Pulls the latest account status from Unipile and updates local records. Useful after a disruption or to verify the account is healthy.",[171,1038,1040],{"className":550,"code":1039,"language":552,"meta":176,"style":176},"curl -X POST https://dashboard.skylightchat.com/api/v1/channels/whatsapp/refresh \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n",[178,1041,1042,1055],{"__ignoreMap":176},[181,1043,1044,1046,1048,1050,1053],{"class":183,"line":184},[181,1045,560],{"class":559},[181,1047,563],{"class":228},[181,1049,566],{"class":228},[181,1051,1052],{"class":228}," https://dashboard.skylightchat.com/api/v1/channels/whatsapp/refresh",[181,1054,573],{"class":572},[181,1056,1057,1059,1061,1063],{"class":183,"line":191},[181,1058,578],{"class":228},[181,1060,225],{"class":187},[181,1062,583],{"class":228},[181,1064,310],{"class":187},[162,1066,1067,1068,1070],{},"Returns the updated ",[166,1069,168],{},".",[510,1072],{},[420,1074,1076],{"id":1075},"disconnect-whatsapp","Disconnect WhatsApp",[171,1078,1080],{"className":528,"code":1079,"language":530,"meta":176,"style":176},"POST /api/v1/channels/whatsapp/disconnect\n",[178,1081,1082],{"__ignoreMap":176},[181,1083,1084],{"class":183,"line":184},[181,1085,1079],{},[162,1087,1088,1089,1092],{},"Permanently removes the WhatsApp account from Unipile and deletes local settings. Returns ",[166,1090,1091],{},"204 No Content"," on success.",[162,1094,1095,1096,1099],{},"Returns ",[166,1097,1098],{},"422"," if an outreach campaign is currently running or paused on this channel — cancel it first.",[171,1101,1103],{"className":550,"code":1102,"language":552,"meta":176,"style":176},"curl -X POST https://dashboard.skylightchat.com/api/v1/channels/whatsapp/disconnect \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n",[178,1104,1105,1118],{"__ignoreMap":176},[181,1106,1107,1109,1111,1113,1116],{"class":183,"line":184},[181,1108,560],{"class":559},[181,1110,563],{"class":228},[181,1112,566],{"class":228},[181,1114,1115],{"class":228}," https://dashboard.skylightchat.com/api/v1/channels/whatsapp/disconnect",[181,1117,573],{"class":572},[181,1119,1120,1122,1124,1126],{"class":183,"line":191},[181,1121,578],{"class":228},[181,1123,225],{"class":187},[181,1125,583],{"class":228},[181,1127,310],{"class":187},[510,1129],{},[157,1131,1132],{"id":368},"Telegram",[162,1134,1135,1136,1138,1139,1070],{},"Telegram also uses a ",[166,1137,520],{}," flow. The user scans via ",[166,1140,1141],{},"Telegram app → Settings → Devices → Link Desktop Device",[1143,1144,1147],"callout",{"color":1145,"icon":1146},"blue","i-lucide-info",[162,1148,1149,1150,1153],{},"Telegram connection is confirmed asynchronously via Unipile webhook. Keep polling the status endpoint until ",[178,1151,1152],{},"completed: true"," — this usually takes 5–15 seconds after the QR is scanned.",[420,1155,1157],{"id":1156},"connect-telegram","Connect Telegram",[171,1159,1161],{"className":528,"code":1160,"language":530,"meta":176,"style":176},"POST /api/v1/channels/telegram/connect\n",[178,1162,1163],{"__ignoreMap":176},[181,1164,1165],{"class":183,"line":184},[181,1166,1160],{},[171,1168,1170],{"className":550,"code":1169,"language":552,"meta":176,"style":176},"curl -X POST https://dashboard.skylightchat.com/api/v1/channels/telegram/connect \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n",[178,1171,1172,1185],{"__ignoreMap":176},[181,1173,1174,1176,1178,1180,1183],{"class":183,"line":184},[181,1175,560],{"class":559},[181,1177,563],{"class":228},[181,1179,566],{"class":228},[181,1181,1182],{"class":228}," https://dashboard.skylightchat.com/api/v1/channels/telegram/connect",[181,1184,573],{"class":572},[181,1186,1187,1189,1191,1193],{"class":183,"line":191},[181,1188,578],{"class":228},[181,1190,225],{"class":187},[181,1192,583],{"class":228},[181,1194,310],{"class":187},[587,1196,590],{"id":1197},"response-2",[171,1199,1201],{"className":173,"code":1200,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"account_id\": \"tg_xyz789\",\n    \"qr_code\": \"tg://login?token=ABCDEFGHIJ...\"\n  },\n  \"message\": \"QR code generated. Open Telegram → Settings → Devices → Link Desktop Device, then scan.\"\n}\n",[178,1202,1203,1207,1219,1231,1250,1267,1271,1288],{"__ignoreMap":176},[181,1204,1205],{"class":183,"line":184},[181,1206,188],{"class":187},[181,1208,1209,1211,1213,1215,1217],{"class":183,"line":191},[181,1210,194],{"class":187},[181,1212,606],{"class":197},[181,1214,201],{"class":187},[181,1216,169],{"class":187},[181,1218,269],{"class":187},[181,1220,1221,1223,1225,1227,1229],{"class":183,"line":213},[181,1222,194],{"class":187},[181,1224,619],{"class":197},[181,1226,201],{"class":187},[181,1228,169],{"class":187},[181,1230,626],{"class":187},[181,1232,1233,1235,1237,1239,1241,1243,1246,1248],{"class":183,"line":236},[181,1234,631],{"class":187},[181,1236,542],{"class":559},[181,1238,201],{"class":187},[181,1240,169],{"class":187},[181,1242,225],{"class":187},[181,1244,1245],{"class":228},"tg_xyz789",[181,1247,201],{"class":187},[181,1249,210],{"class":187},[181,1251,1252,1254,1256,1258,1260,1262,1265],{"class":183,"line":257},[181,1253,631],{"class":187},[181,1255,653],{"class":559},[181,1257,201],{"class":187},[181,1259,169],{"class":187},[181,1261,225],{"class":187},[181,1263,1264],{"class":228},"tg://login?token=ABCDEFGHIJ...",[181,1266,310],{"class":187},[181,1268,1269],{"class":183,"line":272},[181,1270,669],{"class":187},[181,1272,1273,1275,1277,1279,1281,1283,1286],{"class":183,"line":293},[181,1274,194],{"class":187},[181,1276,676],{"class":197},[181,1278,201],{"class":187},[181,1280,169],{"class":187},[181,1282,225],{"class":187},[181,1284,1285],{"class":228},"QR code generated. Open Telegram → Settings → Devices → Link Desktop Device, then scan.",[181,1287,310],{"class":187},[181,1289,1290],{"class":183,"line":313},[181,1291,316],{"class":187},[510,1293],{},[420,1295,1297],{"id":1296},"get-telegram-status","Get Telegram status",[171,1299,1301],{"className":528,"code":1300,"language":530,"meta":176,"style":176},"GET /api/v1/channels/telegram/status\n",[178,1302,1303],{"__ignoreMap":176},[181,1304,1305],{"class":183,"line":184},[181,1306,1300],{},[162,1308,1309,1310,1313],{},"Same polling interface as WhatsApp. Pass ",[178,1311,1312],{},"?account_id=\u003Cid>"," from the connect response.",[171,1315,1317],{"className":550,"code":1316,"language":552,"meta":176,"style":176},"curl \"https://dashboard.skylightchat.com/api/v1/channels/telegram/status?account_id=tg_xyz789\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n",[178,1318,1319,1332],{"__ignoreMap":176},[181,1320,1321,1323,1325,1328,1330],{"class":183,"line":184},[181,1322,560],{"class":559},[181,1324,225],{"class":187},[181,1326,1327],{"class":228},"https://dashboard.skylightchat.com/api/v1/channels/telegram/status?account_id=tg_xyz789",[181,1329,201],{"class":187},[181,1331,573],{"class":572},[181,1333,1334,1336,1338,1340],{"class":183,"line":191},[181,1335,578],{"class":228},[181,1337,225],{"class":187},[181,1339,583],{"class":228},[181,1341,310],{"class":187},[318,1343,1344,1358],{},[321,1345,1346],{},[324,1347,1348,1352,1356],{},[327,1349,1350],{},[178,1351,940],{},[327,1353,1354],{},[178,1355,954],{},[327,1357,437],{},[337,1359,1360,1373,1386],{},[324,1361,1362,1366,1370],{},[342,1363,1364],{},[178,1365,997],{},[342,1367,1368],{},[178,1369,1002],{},[342,1371,1372],{},"Waiting — keep polling",[324,1374,1375,1379,1383],{},[342,1376,1377],{},[178,1378,1002],{},[342,1380,1381],{},[178,1382,997],{},[342,1384,1385],{},"Connected",[324,1387,1388,1392,1396],{},[342,1389,1390],{},[178,1391,997],{},[342,1393,1394],{},[178,1395,997],{},[342,1397,1398],{},"Failed — generate a new QR code",[510,1400],{},[420,1402,1404],{"id":1403},"refresh-telegram-status","Refresh Telegram status",[171,1406,1408],{"className":528,"code":1407,"language":530,"meta":176,"style":176},"POST /api/v1/channels/telegram/refresh\n",[178,1409,1410],{"__ignoreMap":176},[181,1411,1412],{"class":183,"line":184},[181,1413,1407],{},[162,1415,1067,1416,1070],{},[166,1417,168],{},[510,1419],{},[420,1421,1423],{"id":1422},"disconnect-telegram","Disconnect Telegram",[171,1425,1427],{"className":528,"code":1426,"language":530,"meta":176,"style":176},"POST /api/v1/channels/telegram/disconnect\n",[178,1428,1429],{"__ignoreMap":176},[181,1430,1431],{"class":183,"line":184},[181,1432,1426],{},[162,1434,1095,1435,1092],{},[166,1436,1091],{},[510,1438],{},[157,1440,1441],{"id":372},"Instagram",[162,1443,1444,1445,1448],{},"Instagram uses ",[166,1446,1447],{},"credential-based authentication"," — no QR code. You pass the username and password directly to the API, and we authenticate through Unipile's native auth. Instagram 2FA is handled inline.",[420,1450,1452],{"id":1451},"connect-instagram","Connect Instagram",[171,1454,1456],{"className":528,"code":1455,"language":530,"meta":176,"style":176},"POST /api/v1/channels/instagram/connect\n",[178,1457,1458],{"__ignoreMap":176},[181,1459,1460],{"class":183,"line":184},[181,1461,1455],{},[587,1463,1465],{"id":1464},"request-body","Request body",[171,1467,1469],{"className":173,"code":1468,"language":175,"meta":176,"style":176},"{\n  \"username\": \"my_brand_account\",\n  \"password\": \"secretpassword\",\n  \"country\": \"SA\"\n}\n",[178,1470,1471,1475,1494,1514,1532],{"__ignoreMap":176},[181,1472,1473],{"class":183,"line":184},[181,1474,188],{"class":187},[181,1476,1477,1479,1481,1483,1485,1487,1490,1492],{"class":183,"line":191},[181,1478,194],{"class":187},[181,1480,241],{"class":197},[181,1482,201],{"class":187},[181,1484,169],{"class":187},[181,1486,225],{"class":187},[181,1488,1489],{"class":228},"my_brand_account",[181,1491,201],{"class":187},[181,1493,210],{"class":187},[181,1495,1496,1498,1501,1503,1505,1507,1510,1512],{"class":183,"line":213},[181,1497,194],{"class":187},[181,1499,1500],{"class":197},"password",[181,1502,201],{"class":187},[181,1504,169],{"class":187},[181,1506,225],{"class":187},[181,1508,1509],{"class":228},"secretpassword",[181,1511,201],{"class":187},[181,1513,210],{"class":187},[181,1515,1516,1518,1521,1523,1525,1527,1530],{"class":183,"line":236},[181,1517,194],{"class":187},[181,1519,1520],{"class":197},"country",[181,1522,201],{"class":187},[181,1524,169],{"class":187},[181,1526,225],{"class":187},[181,1528,1529],{"class":228},"SA",[181,1531,310],{"class":187},[181,1533,1534],{"class":183,"line":257},[181,1535,316],{"class":187},[318,1537,1538,1551],{},[321,1539,1540],{},[324,1541,1542,1544,1546,1549],{},[327,1543,329],{},[327,1545,332],{},[327,1547,1548],{},"Required",[327,1550,335],{},[337,1552,1553,1567,1580],{},[324,1554,1555,1559,1561,1564],{},[342,1556,1557],{},[178,1558,241],{},[342,1560,360],{},[342,1562,1563],{},"✓",[342,1565,1566],{},"Instagram username or email",[324,1568,1569,1573,1575,1577],{},[342,1570,1571],{},[178,1572,1500],{},[342,1574,360],{},[342,1576,1563],{},[342,1578,1579],{},"Instagram password",[324,1581,1582,1586,1588,1591],{},[342,1583,1584],{},[178,1585,1520],{},[342,1587,360],{},[342,1589,1590],{},"No",[342,1592,1593,1594,1596],{},"ISO 3166-1 alpha-2 country code. Default: ",[178,1595,1529],{},". Used to route the connection geographically.",[171,1598,1600],{"className":550,"code":1599,"language":552,"meta":176,"style":176},"curl -X POST https://dashboard.skylightchat.com/api/v1/channels/instagram/connect \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"username\": \"my_brand\", \"password\": \"secret\", \"country\": \"SA\"}'\n",[178,1601,1602,1615,1627,1640],{"__ignoreMap":176},[181,1603,1604,1606,1608,1610,1613],{"class":183,"line":184},[181,1605,560],{"class":559},[181,1607,563],{"class":228},[181,1609,566],{"class":228},[181,1611,1612],{"class":228}," https://dashboard.skylightchat.com/api/v1/channels/instagram/connect",[181,1614,573],{"class":572},[181,1616,1617,1619,1621,1623,1625],{"class":183,"line":191},[181,1618,578],{"class":228},[181,1620,225],{"class":187},[181,1622,583],{"class":228},[181,1624,201],{"class":187},[181,1626,573],{"class":572},[181,1628,1629,1631,1633,1636,1638],{"class":183,"line":213},[181,1630,578],{"class":228},[181,1632,225],{"class":187},[181,1634,1635],{"class":228},"Content-Type: application/json",[181,1637,201],{"class":187},[181,1639,573],{"class":572},[181,1641,1642,1645,1648,1651],{"class":183,"line":236},[181,1643,1644],{"class":228},"  -d",[181,1646,1647],{"class":187}," '",[181,1649,1650],{"class":228},"{\"username\": \"my_brand\", \"password\": \"secret\", \"country\": \"SA\"}",[181,1652,1653],{"class":187},"'\n",[587,1655,1657],{"id":1656},"response-connected-immediately","Response — connected immediately",[171,1659,1661],{"className":173,"code":1660,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 7,\n    \"type\": \"instagram\",\n    \"username\": \"my_brand\",\n    \"is_connected\": true,\n    \"sync_status\": \"OK\",\n    \"last_synced_at\": \"2026-03-11T10:00:00+03:00\"\n  }\n}\n",[178,1662,1663,1667,1679,1691,1706,1724,1743,1755,1773,1789,1793],{"__ignoreMap":176},[181,1664,1665],{"class":183,"line":184},[181,1666,188],{"class":187},[181,1668,1669,1671,1673,1675,1677],{"class":183,"line":191},[181,1670,194],{"class":187},[181,1672,606],{"class":197},[181,1674,201],{"class":187},[181,1676,169],{"class":187},[181,1678,269],{"class":187},[181,1680,1681,1683,1685,1687,1689],{"class":183,"line":213},[181,1682,194],{"class":187},[181,1684,619],{"class":197},[181,1686,201],{"class":187},[181,1688,169],{"class":187},[181,1690,626],{"class":187},[181,1692,1693,1695,1697,1699,1701,1704],{"class":183,"line":236},[181,1694,631],{"class":187},[181,1696,198],{"class":559},[181,1698,201],{"class":187},[181,1700,169],{"class":187},[181,1702,1703],{"class":206}," 7",[181,1705,210],{"class":187},[181,1707,1708,1710,1712,1714,1716,1718,1720,1722],{"class":183,"line":257},[181,1709,631],{"class":187},[181,1711,218],{"class":559},[181,1713,201],{"class":187},[181,1715,169],{"class":187},[181,1717,225],{"class":187},[181,1719,372],{"class":228},[181,1721,201],{"class":187},[181,1723,210],{"class":187},[181,1725,1726,1728,1730,1732,1734,1736,1739,1741],{"class":183,"line":272},[181,1727,631],{"class":187},[181,1729,241],{"class":559},[181,1731,201],{"class":187},[181,1733,169],{"class":187},[181,1735,225],{"class":187},[181,1737,1738],{"class":228},"my_brand",[181,1740,201],{"class":187},[181,1742,210],{"class":187},[181,1744,1745,1747,1749,1751,1753],{"class":183,"line":293},[181,1746,631],{"class":187},[181,1748,262],{"class":559},[181,1750,201],{"class":187},[181,1752,169],{"class":187},[181,1754,269],{"class":187},[181,1756,1757,1759,1761,1763,1765,1767,1769,1771],{"class":183,"line":313},[181,1758,631],{"class":187},[181,1760,277],{"class":559},[181,1762,201],{"class":187},[181,1764,169],{"class":187},[181,1766,225],{"class":187},[181,1768,286],{"class":228},[181,1770,201],{"class":187},[181,1772,210],{"class":187},[181,1774,1775,1777,1779,1781,1783,1785,1787],{"class":183,"line":916},[181,1776,631],{"class":187},[181,1778,298],{"class":559},[181,1780,201],{"class":187},[181,1782,169],{"class":187},[181,1784,225],{"class":187},[181,1786,307],{"class":228},[181,1788,310],{"class":187},[181,1790,1791],{"class":183,"line":935},[181,1792,967],{"class":187},[181,1794,1795],{"class":183,"line":949},[181,1796,316],{"class":187},[587,1798,1800],{"id":1799},"response-2fa-required","Response — 2FA required",[171,1802,1804],{"className":173,"code":1803,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"requires_2fa\": true,\n    \"account_id\": \"ig_abc123\",\n    \"checkpoint_type\": \"OTP\"\n  },\n  \"message\": \"A verification code has been sent. Submit it to POST /channels/instagram/2fa.\"\n}\n",[178,1805,1806,1810,1822,1834,1847,1866,1884,1888,1905],{"__ignoreMap":176},[181,1807,1808],{"class":183,"line":184},[181,1809,188],{"class":187},[181,1811,1812,1814,1816,1818,1820],{"class":183,"line":191},[181,1813,194],{"class":187},[181,1815,606],{"class":197},[181,1817,201],{"class":187},[181,1819,169],{"class":187},[181,1821,269],{"class":187},[181,1823,1824,1826,1828,1830,1832],{"class":183,"line":213},[181,1825,194],{"class":187},[181,1827,619],{"class":197},[181,1829,201],{"class":187},[181,1831,169],{"class":187},[181,1833,626],{"class":187},[181,1835,1836,1838,1841,1843,1845],{"class":183,"line":236},[181,1837,631],{"class":187},[181,1839,1840],{"class":559},"requires_2fa",[181,1842,201],{"class":187},[181,1844,169],{"class":187},[181,1846,269],{"class":187},[181,1848,1849,1851,1853,1855,1857,1859,1862,1864],{"class":183,"line":257},[181,1850,631],{"class":187},[181,1852,542],{"class":559},[181,1854,201],{"class":187},[181,1856,169],{"class":187},[181,1858,225],{"class":187},[181,1860,1861],{"class":228},"ig_abc123",[181,1863,201],{"class":187},[181,1865,210],{"class":187},[181,1867,1868,1870,1873,1875,1877,1879,1882],{"class":183,"line":272},[181,1869,631],{"class":187},[181,1871,1872],{"class":559},"checkpoint_type",[181,1874,201],{"class":187},[181,1876,169],{"class":187},[181,1878,225],{"class":187},[181,1880,1881],{"class":228},"OTP",[181,1883,310],{"class":187},[181,1885,1886],{"class":183,"line":293},[181,1887,669],{"class":187},[181,1889,1890,1892,1894,1896,1898,1900,1903],{"class":183,"line":313},[181,1891,194],{"class":187},[181,1893,676],{"class":197},[181,1895,201],{"class":187},[181,1897,169],{"class":187},[181,1899,225],{"class":187},[181,1901,1902],{"class":228},"A verification code has been sent. Submit it to POST /channels/instagram/2fa.",[181,1904,310],{"class":187},[181,1906,1907],{"class":183,"line":916},[181,1908,316],{"class":187},[162,1910,1911,1912,1915],{},"When ",[178,1913,1914],{},"requires_2fa: true"," is returned, prompt your user for the verification code Instagram sent to their phone or email, then call the 2FA endpoint below.",[510,1917],{},[420,1919,1921],{"id":1920},"solve-instagram-2fa","Solve Instagram 2FA",[171,1923,1925],{"className":528,"code":1924,"language":530,"meta":176,"style":176},"POST /api/v1/channels/instagram/2fa\n",[178,1926,1927],{"__ignoreMap":176},[181,1928,1929],{"class":183,"line":184},[181,1930,1924],{},[162,1932,1933],{},"Submit the verification code during the Instagram connect flow.",[587,1935,1465],{"id":1936},"request-body-1",[171,1938,1940],{"className":173,"code":1939,"language":175,"meta":176,"style":176},"{\n  \"account_id\": \"ig_abc123\",\n  \"code\": \"123456\"\n}\n",[178,1941,1942,1946,1964,1981],{"__ignoreMap":176},[181,1943,1944],{"class":183,"line":184},[181,1945,188],{"class":187},[181,1947,1948,1950,1952,1954,1956,1958,1960,1962],{"class":183,"line":191},[181,1949,194],{"class":187},[181,1951,542],{"class":197},[181,1953,201],{"class":187},[181,1955,169],{"class":187},[181,1957,225],{"class":187},[181,1959,1861],{"class":228},[181,1961,201],{"class":187},[181,1963,210],{"class":187},[181,1965,1966,1968,1970,1972,1974,1976,1979],{"class":183,"line":213},[181,1967,194],{"class":187},[181,1969,178],{"class":197},[181,1971,201],{"class":187},[181,1973,169],{"class":187},[181,1975,225],{"class":187},[181,1977,1978],{"class":228},"123456",[181,1980,310],{"class":187},[181,1982,1983],{"class":183,"line":236},[181,1984,316],{"class":187},[318,1986,1987,1999],{},[321,1988,1989],{},[324,1990,1991,1993,1995,1997],{},[327,1992,329],{},[327,1994,332],{},[327,1996,1548],{},[327,1998,335],{},[337,2000,2001,2014],{},[324,2002,2003,2007,2009,2011],{},[342,2004,2005],{},[178,2006,542],{},[342,2008,360],{},[342,2010,1563],{},[342,2012,2013],{},"From the connect response",[324,2015,2016,2020,2022,2024],{},[342,2017,2018],{},[178,2019,178],{},[342,2021,360],{},[342,2023,1563],{},[342,2025,2026],{},"The verification code the user received",[587,2028,2030],{"id":2029},"response-connected","Response — connected",[171,2032,2034],{"className":173,"code":2033,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"id\": 7,\n    \"type\": \"instagram\",\n    \"username\": \"my_brand\",\n    \"is_connected\": true,\n    \"sync_status\": \"CONNECTING\"\n  },\n  \"message\": \"Instagram connected successfully. Account is syncing.\"\n}\n",[178,2035,2036,2040,2052,2064,2078,2096,2114,2126,2142,2146,2163],{"__ignoreMap":176},[181,2037,2038],{"class":183,"line":184},[181,2039,188],{"class":187},[181,2041,2042,2044,2046,2048,2050],{"class":183,"line":191},[181,2043,194],{"class":187},[181,2045,606],{"class":197},[181,2047,201],{"class":187},[181,2049,169],{"class":187},[181,2051,269],{"class":187},[181,2053,2054,2056,2058,2060,2062],{"class":183,"line":213},[181,2055,194],{"class":187},[181,2057,619],{"class":197},[181,2059,201],{"class":187},[181,2061,169],{"class":187},[181,2063,626],{"class":187},[181,2065,2066,2068,2070,2072,2074,2076],{"class":183,"line":236},[181,2067,631],{"class":187},[181,2069,198],{"class":559},[181,2071,201],{"class":187},[181,2073,169],{"class":187},[181,2075,1703],{"class":206},[181,2077,210],{"class":187},[181,2079,2080,2082,2084,2086,2088,2090,2092,2094],{"class":183,"line":257},[181,2081,631],{"class":187},[181,2083,218],{"class":559},[181,2085,201],{"class":187},[181,2087,169],{"class":187},[181,2089,225],{"class":187},[181,2091,372],{"class":228},[181,2093,201],{"class":187},[181,2095,210],{"class":187},[181,2097,2098,2100,2102,2104,2106,2108,2110,2112],{"class":183,"line":272},[181,2099,631],{"class":187},[181,2101,241],{"class":559},[181,2103,201],{"class":187},[181,2105,169],{"class":187},[181,2107,225],{"class":187},[181,2109,1738],{"class":228},[181,2111,201],{"class":187},[181,2113,210],{"class":187},[181,2115,2116,2118,2120,2122,2124],{"class":183,"line":293},[181,2117,631],{"class":187},[181,2119,262],{"class":559},[181,2121,201],{"class":187},[181,2123,169],{"class":187},[181,2125,269],{"class":187},[181,2127,2128,2130,2132,2134,2136,2138,2140],{"class":183,"line":313},[181,2129,631],{"class":187},[181,2131,277],{"class":559},[181,2133,201],{"class":187},[181,2135,169],{"class":187},[181,2137,225],{"class":187},[181,2139,455],{"class":228},[181,2141,310],{"class":187},[181,2143,2144],{"class":183,"line":916},[181,2145,669],{"class":187},[181,2147,2148,2150,2152,2154,2156,2158,2161],{"class":183,"line":935},[181,2149,194],{"class":187},[181,2151,676],{"class":197},[181,2153,201],{"class":187},[181,2155,169],{"class":187},[181,2157,225],{"class":187},[181,2159,2160],{"class":228},"Instagram connected successfully. Account is syncing.",[181,2162,310],{"class":187},[181,2164,2165],{"class":183,"line":949},[181,2166,316],{"class":187},[587,2168,2170],{"id":2169},"response-another-verification-round","Response — another verification round",[171,2172,2174],{"className":173,"code":2173,"language":175,"meta":176,"style":176},"{\n  \"success\": true,\n  \"data\": {\n    \"requires_2fa\": true,\n    \"account_id\": \"ig_abc123\",\n    \"checkpoint_type\": \"OTP\"\n  },\n  \"message\": \"Additional verification required. Submit your code again.\"\n}\n",[178,2175,2176,2180,2192,2204,2216,2234,2250,2254,2271],{"__ignoreMap":176},[181,2177,2178],{"class":183,"line":184},[181,2179,188],{"class":187},[181,2181,2182,2184,2186,2188,2190],{"class":183,"line":191},[181,2183,194],{"class":187},[181,2185,606],{"class":197},[181,2187,201],{"class":187},[181,2189,169],{"class":187},[181,2191,269],{"class":187},[181,2193,2194,2196,2198,2200,2202],{"class":183,"line":213},[181,2195,194],{"class":187},[181,2197,619],{"class":197},[181,2199,201],{"class":187},[181,2201,169],{"class":187},[181,2203,626],{"class":187},[181,2205,2206,2208,2210,2212,2214],{"class":183,"line":236},[181,2207,631],{"class":187},[181,2209,1840],{"class":559},[181,2211,201],{"class":187},[181,2213,169],{"class":187},[181,2215,269],{"class":187},[181,2217,2218,2220,2222,2224,2226,2228,2230,2232],{"class":183,"line":257},[181,2219,631],{"class":187},[181,2221,542],{"class":559},[181,2223,201],{"class":187},[181,2225,169],{"class":187},[181,2227,225],{"class":187},[181,2229,1861],{"class":228},[181,2231,201],{"class":187},[181,2233,210],{"class":187},[181,2235,2236,2238,2240,2242,2244,2246,2248],{"class":183,"line":272},[181,2237,631],{"class":187},[181,2239,1872],{"class":559},[181,2241,201],{"class":187},[181,2243,169],{"class":187},[181,2245,225],{"class":187},[181,2247,1881],{"class":228},[181,2249,310],{"class":187},[181,2251,2252],{"class":183,"line":293},[181,2253,669],{"class":187},[181,2255,2256,2258,2260,2262,2264,2266,2269],{"class":183,"line":313},[181,2257,194],{"class":187},[181,2259,676],{"class":197},[181,2261,201],{"class":187},[181,2263,169],{"class":187},[181,2265,225],{"class":187},[181,2267,2268],{"class":228},"Additional verification required. Submit your code again.",[181,2270,310],{"class":187},[181,2272,2273],{"class":183,"line":916},[181,2274,316],{"class":187},[510,2276],{},[420,2278,2280],{"id":2279},"resend-instagram-2fa-code","Resend Instagram 2FA code",[171,2282,2284],{"className":528,"code":2283,"language":530,"meta":176,"style":176},"POST /api/v1/channels/instagram/2fa/resend\n",[178,2285,2286],{"__ignoreMap":176},[181,2287,2288],{"class":183,"line":184},[181,2289,2283],{},[162,2291,2292],{},"Resends the verification code to the user's Instagram-registered phone or email.",[587,2294,1465],{"id":2295},"request-body-2",[171,2297,2299],{"className":173,"code":2298,"language":175,"meta":176,"style":176},"{ \"account_id\": \"ig_abc123\" }\n",[178,2300,2301],{"__ignoreMap":176},[181,2302,2303,2306,2308,2310,2312,2314,2316,2318,2320],{"class":183,"line":184},[181,2304,2305],{"class":187},"{",[181,2307,225],{"class":187},[181,2309,542],{"class":197},[181,2311,201],{"class":187},[181,2313,169],{"class":187},[181,2315,225],{"class":187},[181,2317,1861],{"class":228},[181,2319,201],{"class":187},[181,2321,2322],{"class":187}," }\n",[587,2324,590],{"id":2325},"response-3",[171,2327,2329],{"className":173,"code":2328,"language":175,"meta":176,"style":176},"{ \"success\": true, \"message\": \"Verification code resent successfully.\" }\n",[178,2330,2331],{"__ignoreMap":176},[181,2332,2333,2335,2337,2339,2341,2343,2346,2348,2350,2352,2354,2356,2359,2361],{"class":183,"line":184},[181,2334,2305],{"class":187},[181,2336,225],{"class":187},[181,2338,606],{"class":197},[181,2340,201],{"class":187},[181,2342,169],{"class":187},[181,2344,2345],{"class":187}," true,",[181,2347,225],{"class":187},[181,2349,676],{"class":197},[181,2351,201],{"class":187},[181,2353,169],{"class":187},[181,2355,225],{"class":187},[181,2357,2358],{"class":228},"Verification code resent successfully.",[181,2360,201],{"class":187},[181,2362,2322],{"class":187},[510,2364],{},[420,2366,2368],{"id":2367},"get-instagram-status","Get Instagram status",[171,2370,2372],{"className":528,"code":2371,"language":530,"meta":176,"style":176},"GET /api/v1/channels/instagram/status\n",[178,2373,2374],{"__ignoreMap":176},[181,2375,2376],{"class":183,"line":184},[181,2377,2371],{},[162,2379,2380,2381,2384],{},"Returns the current Instagram connection status from local records. Use ",[178,2382,2383],{},"/refresh"," to pull the latest status from Unipile.",[171,2386,2388],{"className":550,"code":2387,"language":552,"meta":176,"style":176},"curl https://dashboard.skylightchat.com/api/v1/channels/instagram/status \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n",[178,2389,2390,2399],{"__ignoreMap":176},[181,2391,2392,2394,2397],{"class":183,"line":184},[181,2393,560],{"class":559},[181,2395,2396],{"class":228}," https://dashboard.skylightchat.com/api/v1/channels/instagram/status",[181,2398,573],{"class":572},[181,2400,2401,2403,2405,2407],{"class":183,"line":191},[181,2402,578],{"class":228},[181,2404,225],{"class":187},[181,2406,583],{"class":228},[181,2408,310],{"class":187},[162,2410,2411,2412,1070],{},"Returns the ",[166,2413,168],{},[510,2415],{},[420,2417,2419],{"id":2418},"refresh-instagram-status","Refresh Instagram status",[171,2421,2423],{"className":528,"code":2422,"language":530,"meta":176,"style":176},"POST /api/v1/channels/instagram/refresh\n",[178,2424,2425],{"__ignoreMap":176},[181,2426,2427],{"class":183,"line":184},[181,2428,2422],{},[162,2430,2431,2432,2434,2435,2437],{},"Syncs the account status from Unipile. Useful after a ",[178,2433,475],{}," or ",[178,2436,485],{}," state to see if the issue has been resolved.",[162,2439,1067,2440,1070],{},[166,2441,168],{},[510,2443],{},[420,2445,2447],{"id":2446},"disconnect-instagram","Disconnect Instagram",[171,2449,2451],{"className":528,"code":2450,"language":530,"meta":176,"style":176},"POST /api/v1/channels/instagram/disconnect\n",[178,2452,2453],{"__ignoreMap":176},[181,2454,2455],{"class":183,"line":184},[181,2456,2450],{},[162,2458,2459,2460,1092],{},"Removes the Instagram account from Unipile and deletes local settings. Returns ",[166,2461,1091],{},[510,2463],{},[157,2465,2467],{"id":2466},"connect-flow-summary","Connect flow summary",[171,2469,2474],{"className":2470,"code":2472,"language":2473},[2471],"language-text","WhatsApp & Telegram (QR code)\n────────────────────────────────────────────────────\n1. POST /channels/{channel}/connect\n   → { account_id, qr_code }\n\n2. Render qr_code as a QR image for the user to scan\n\n3. GET /channels/{channel}/status?account_id={id}\n   Poll every 2–3 seconds until:\n   → { completed: true }  ✓ Done\n\nInstagram (credentials)\n────────────────────────────────────────────────────\n1. POST /channels/instagram/connect  { username, password }\n   → Connected:    { is_connected: true }  ✓ Done\n   → 2FA required: { requires_2fa: true, account_id, checkpoint_type }\n\n2. (If 2FA) POST /channels/instagram/2fa  { account_id, code }\n   → Connected:       { is_connected: true }  ✓ Done\n   → Another round:   { requires_2fa: true }  → repeat step 2\n","text",[178,2475,2472],{"__ignoreMap":176},[2477,2478,2479],"style",{},"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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}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 pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":176,"searchDepth":184,"depth":191,"links":2481},[2482,2486,2492,2498,2506],{"id":159,"depth":191,"text":160,"children":2483},[2484],{"id":422,"depth":213,"text":2485},"sync_status values",{"id":229,"depth":191,"text":514,"children":2487},[2488,2489,2490,2491],{"id":524,"depth":213,"text":525},{"id":719,"depth":213,"text":720},{"id":1023,"depth":213,"text":1024},{"id":1075,"depth":213,"text":1076},{"id":368,"depth":191,"text":1132,"children":2493},[2494,2495,2496,2497],{"id":1156,"depth":213,"text":1157},{"id":1296,"depth":213,"text":1297},{"id":1403,"depth":213,"text":1404},{"id":1422,"depth":213,"text":1423},{"id":372,"depth":191,"text":1441,"children":2499},[2500,2501,2502,2503,2504,2505],{"id":1451,"depth":213,"text":1452},{"id":1920,"depth":213,"text":1921},{"id":2279,"depth":213,"text":2280},{"id":2367,"depth":213,"text":2368},{"id":2418,"depth":213,"text":2419},{"id":2446,"depth":213,"text":2447},{"id":2466,"depth":191,"text":2467},"Connect, monitor, refresh, and disconnect WhatsApp, Telegram, and Instagram channels via the API.","md",null,{},{"icon":77},{"title":74,"description":2507},"3mJI8fDBbPy9CRDF2TAGbOPDBGNC_carguiUo0bnUfk",[2515,2517],{"title":69,"path":70,"stem":71,"description":2516,"icon":72,"children":-1},"Upload and manage your image and video library via the API.",{"title":79,"path":80,"stem":81,"description":2518,"icon":82,"children":-1},"Manage client workspaces, usage reports, and billing as a SkyLight Chat reseller or agency partner.",1775834841327]