[{"data":1,"prerenderedAt":3145},["ShallowReactive",2],{"navigation":3,"/agent-api/endpoints":261,"/agent-api/endpoints-surround":3140},[4,22,50,83,125,161,194,205,231],{"title":5,"path":6,"stem":7,"children":8,"icon":16},"Getting Started","/getting-started","1.getting-started/1.index",[9,12,17],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-ph-house",{"title":13,"path":14,"stem":15,"icon":16},"Quickstart","/getting-started/quickstart","1.getting-started/2.quickstart","i-ph-rocket",{"title":18,"path":19,"stem":20,"icon":21},"Plans","/getting-started/plans","1.getting-started/3.plans","i-ph-credit-card",{"title":23,"path":24,"stem":25,"children":26,"icon":29},"Agents","/agents","2.agents/1.index",[27,30,35,40,45],{"title":28,"path":24,"stem":25,"icon":29},"Overview","i-ph-robot",{"title":31,"path":32,"stem":33,"icon":34},"Creating an agent","/agents/creating-an-agent","2.agents/2.creating-an-agent","i-ph-plus",{"title":36,"path":37,"stem":38,"icon":39},"Agent settings","/agents/settings","2.agents/3.settings","i-ph-gear",{"title":41,"path":42,"stem":43,"icon":44},"Memory","/agents/memory","2.agents/4.memory","i-ph-database",{"title":46,"path":47,"stem":48,"icon":49},"Residential proxy","/agents/proxy","2.agents/5.proxy","i-ph-globe-hemisphere-west",{"title":51,"path":52,"stem":53,"children":54,"icon":57},"Chats & Tasks","/chats-and-tasks","3.chats-and-tasks/1.index",[55,58,63,68,73,78],{"title":56,"path":52,"stem":53,"icon":57},"Chats","i-ph-chats-circle",{"title":59,"path":60,"stem":61,"icon":62},"Sharing chats","/chats-and-tasks/sharing-chats","3.chats-and-tasks/2.sharing-chats","i-ph-share-network",{"title":64,"path":65,"stem":66,"icon":67},"Tasks","/chats-and-tasks/tasks","3.chats-and-tasks/3.tasks","i-ph-list-checks",{"title":69,"path":70,"stem":71,"icon":72},"Recurring tasks","/chats-and-tasks/recurring-tasks","3.chats-and-tasks/4.recurring-tasks","i-ph-repeat",{"title":74,"path":75,"stem":76,"icon":77},"Results & deliverables","/chats-and-tasks/results-and-deliverables","3.chats-and-tasks/5.results-and-deliverables","i-ph-package",{"title":79,"path":80,"stem":81,"icon":82},"Save a chat as a skill","/chats-and-tasks/save-chat-as-skill","3.chats-and-tasks/6.save-chat-as-skill","i-ph-sparkle",{"title":84,"path":85,"stem":86,"children":87,"icon":90},"Models & Skills","/models-and-skills","4.models-and-skills/1.index",[88,91,96,101,105,110,115,120],{"title":89,"path":85,"stem":86,"icon":90},"LLM configuration","i-ph-cpu",{"title":92,"path":93,"stem":94,"icon":95},"Providers & models","/models-and-skills/providers","4.models-and-skills/2.providers","i-ph-stack",{"title":97,"path":98,"stem":99,"icon":100},"Bring your own key","/models-and-skills/byok","4.models-and-skills/3.byok","i-ph-key",{"title":102,"path":103,"stem":104,"icon":29},"ChatGPT subscription","/models-and-skills/chatgpt-subscription","4.models-and-skills/4.chatgpt-subscription",{"title":106,"path":107,"stem":108,"icon":109},"Skills","/models-and-skills/skills","4.models-and-skills/5.skills","i-ph-puzzle-piece",{"title":111,"path":112,"stem":113,"icon":114},"Installing skills","/models-and-skills/installing-skills","4.models-and-skills/6.installing-skills","i-ph-download-simple",{"title":116,"path":117,"stem":118,"icon":119},"Custom skills","/models-and-skills/custom-skills","4.models-and-skills/7.custom-skills","i-ph-code",{"title":121,"path":122,"stem":123,"icon":124},"Local models","/models-and-skills/local-models","4.models-and-skills/8.local-models","i-ph-desktop-tower",{"title":126,"path":127,"stem":128,"children":129,"icon":131},"Connect Your Tools","/connect-your-tools","5.connect-your-tools/1.index",[130,132,137,142,147,152,156],{"title":28,"path":127,"stem":128,"icon":131},"i-ph-plug",{"title":133,"path":134,"stem":135,"icon":136},"Telegram","/connect-your-tools/telegram","5.connect-your-tools/2.telegram","i-ph-telegram-logo",{"title":138,"path":139,"stem":140,"icon":141},"Discord","/connect-your-tools/discord","5.connect-your-tools/3.discord","i-ph-discord-logo",{"title":143,"path":144,"stem":145,"icon":146},"Slack","/connect-your-tools/slack","5.connect-your-tools/4.slack","i-ph-slack-logo",{"title":148,"path":149,"stem":150,"icon":151},"Connectors","/connect-your-tools/connectors","5.connect-your-tools/5.connectors","i-ph-link",{"title":153,"path":154,"stem":155,"icon":100},"Secrets","/connect-your-tools/secrets","5.connect-your-tools/6.secrets",{"title":157,"path":158,"stem":159,"icon":160},"Audit log","/connect-your-tools/secret-audit-log","5.connect-your-tools/7.secret-audit-log","i-ph-scroll",{"title":162,"path":163,"stem":164,"children":165,"icon":193},"Account & Team","/account-and-team","6.account-and-team/1.index",[166,169,174,179,184,188],{"title":167,"path":163,"stem":164,"icon":168},"Signing in","i-ph-sign-in",{"title":170,"path":171,"stem":172,"icon":173},"Team members","/account-and-team/teams","6.account-and-team/3.teams","i-ph-users",{"title":175,"path":176,"stem":177,"icon":178},"Roles & permissions","/account-and-team/roles-and-permissions","6.account-and-team/4.roles-and-permissions","i-ph-shield",{"title":180,"path":181,"stem":182,"icon":183},"Invitations","/account-and-team/invitations","6.account-and-team/5.invitations","i-ph-envelope-simple",{"title":185,"path":186,"stem":187,"icon":21},"Billing & upgrades","/account-and-team/billing","6.account-and-team/6.billing",{"title":189,"path":190,"stem":191,"icon":192},"Support","/account-and-team/support","6.account-and-team/7.support","i-ph-lifebuoy","i-ph-user",{"title":195,"path":196,"stem":197,"children":198,"icon":200},"Apps","/apps","7.apps/1.index",[199,201],{"title":195,"path":196,"stem":197,"icon":200},"i-ph-squares-four",{"title":202,"path":203,"stem":204,"icon":119},"Building an app","/apps/building-an-app","7.apps/2.building-an-app",{"title":206,"path":207,"stem":208,"children":209,"icon":211},"Workflows","/workflows","8.workflows/1.index",[210,212,216,221,226],{"title":28,"path":207,"stem":208,"icon":211},"i-ph-flow-arrow",{"title":213,"path":214,"stem":215,"icon":82},"Create a workflow","/workflows/creating-a-workflow","8.workflows/2.creating-a-workflow",{"title":217,"path":218,"stem":219,"icon":220},"Edit sections","/workflows/editing-sections","8.workflows/3.editing-sections","i-ph-pencil-simple",{"title":222,"path":223,"stem":224,"icon":225},"Run and schedule","/workflows/running-and-scheduling","8.workflows/4.running-and-scheduling","i-ph-clock",{"title":227,"path":228,"stem":229,"icon":230},"Workflow directory","/workflows/directory","8.workflows/5.directory","i-ph-compass",{"title":232,"path":233,"stem":234,"children":235,"icon":119},"Agent API","/agent-api","9.agent-api/1.index",[236,237,241,246,251,256],{"title":28,"path":233,"stem":234,"icon":119},{"title":13,"path":238,"stem":239,"icon":240},"/agent-api/quickstart","9.agent-api/2.quickstart","i-ph-rocket-launch",{"title":242,"path":243,"stem":244,"icon":245},"Authentication","/agent-api/authentication","9.agent-api/3.authentication","i-ph-lock-key",{"title":247,"path":248,"stem":249,"icon":250},"Endpoints","/agent-api/endpoints","9.agent-api/4.endpoints","i-ph-list-bullets",{"title":252,"path":253,"stem":254,"icon":255},"Streaming","/agent-api/streaming","9.agent-api/5.streaming","i-ph-broadcast",{"title":257,"path":258,"stem":259,"icon":260},"Errors","/agent-api/errors","9.agent-api/6.errors","i-ph-warning-circle",{"id":262,"title":263,"body":264,"description":3133,"extension":3134,"links":3135,"meta":3136,"navigation":3137,"path":248,"seo":3138,"stem":249,"__hash__":3139},"docs/9.agent-api/4.endpoints.md","Endpoint reference",{"type":265,"value":266,"toc":3108},"minimark",[267,271,289,303,308,313,322,325,493,583,587,594,607,610,614,622,630,926,1043,1049,1053,1060,1066,1070,1077,1105,1108,1115,1119,1325,1404,1407,1411,1419,1485,1581,1587,1606,1610,1618,1624,1628,1635,1642,2312,2429,2433,2440,2443,2498,2501,2505,2512,2519,2522,2526,2533,2536,2599,2610,2672,2721,2724,2730,2926,2944,2948,2955,2972,2976,2983,3001,3054,3087,3090,3104],[268,269,263],"h1",{"id":270},"endpoint-reference",[272,273,274,275,279,280,283,284,288],"p",{},"All paths are relative to ",[276,277,278],"code",{},"https://api.betterclaw.io"," and need an ",[276,281,282],{},"Authorization: Bearer"," header\nwith an ",[285,286,287],"a",{"href":243},"API key or session token",". IDs are UUIDs and timestamps are\nISO 8601 strings in UTC. List endpoints return everything in one response; there is no pagination.",[272,290,291,292,295,296,299,300,302],{},"A request that names a different workspace than the key's, through a path, query, or body\n",[276,293,294],{},"workspaceId",", fails with ",[276,297,298],{},"403",". See ",[285,301,257],{"href":258}," for every status code.",[304,305,307],"h2",{"id":306},"workspaces","Workspaces",[309,310,312],"h3",{"id":311},"list-workspaces","List workspaces",[272,314,315,318,319],{},[276,316,317],{},"GET /workspaces"," · ",[276,320,321],{},"workspaces:read",[272,323,324],{},"Returns the key's own workspace, so the array has one entry. It's empty while the workspace is\nbeing set up or is in an error state.",[326,327,332],"pre",{"className":328,"code":329,"language":330,"meta":331,"style":331},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\n  {\n    \"id\": \"6f1c2d4e-8a90-4b1c-9d2e-3f4a5b6c7d8e\",\n    \"name\": \"Acme\",\n    \"status\": \"running\",\n    \"role\": \"owner\",\n    \"plan\": \"pro\",\n    \"createdAt\": \"2026-08-01T09:00:00.000Z\"\n  }\n]\n","json","",[276,333,334,343,349,377,398,419,440,461,481,487],{"__ignoreMap":331},[335,336,339],"span",{"class":337,"line":338},"line",1,[335,340,342],{"class":341},"sMK4o","[\n",[335,344,346],{"class":337,"line":345},2,[335,347,348],{"class":341},"  {\n",[335,350,352,355,359,362,365,368,372,374],{"class":337,"line":351},3,[335,353,354],{"class":341},"    \"",[335,356,358],{"class":357},"spNyl","id",[335,360,361],{"class":341},"\"",[335,363,364],{"class":341},":",[335,366,367],{"class":341}," \"",[335,369,371],{"class":370},"sfazB","6f1c2d4e-8a90-4b1c-9d2e-3f4a5b6c7d8e",[335,373,361],{"class":341},[335,375,376],{"class":341},",\n",[335,378,380,382,385,387,389,391,394,396],{"class":337,"line":379},4,[335,381,354],{"class":341},[335,383,384],{"class":357},"name",[335,386,361],{"class":341},[335,388,364],{"class":341},[335,390,367],{"class":341},[335,392,393],{"class":370},"Acme",[335,395,361],{"class":341},[335,397,376],{"class":341},[335,399,401,403,406,408,410,412,415,417],{"class":337,"line":400},5,[335,402,354],{"class":341},[335,404,405],{"class":357},"status",[335,407,361],{"class":341},[335,409,364],{"class":341},[335,411,367],{"class":341},[335,413,414],{"class":370},"running",[335,416,361],{"class":341},[335,418,376],{"class":341},[335,420,422,424,427,429,431,433,436,438],{"class":337,"line":421},6,[335,423,354],{"class":341},[335,425,426],{"class":357},"role",[335,428,361],{"class":341},[335,430,364],{"class":341},[335,432,367],{"class":341},[335,434,435],{"class":370},"owner",[335,437,361],{"class":341},[335,439,376],{"class":341},[335,441,443,445,448,450,452,454,457,459],{"class":337,"line":442},7,[335,444,354],{"class":341},[335,446,447],{"class":357},"plan",[335,449,361],{"class":341},[335,451,364],{"class":341},[335,453,367],{"class":341},[335,455,456],{"class":370},"pro",[335,458,361],{"class":341},[335,460,376],{"class":341},[335,462,464,466,469,471,473,475,478],{"class":337,"line":463},8,[335,465,354],{"class":341},[335,467,468],{"class":357},"createdAt",[335,470,361],{"class":341},[335,472,364],{"class":341},[335,474,367],{"class":341},[335,476,477],{"class":370},"2026-08-01T09:00:00.000Z",[335,479,480],{"class":341},"\"\n",[335,482,484],{"class":337,"line":483},9,[335,485,486],{"class":341},"  }\n",[335,488,490],{"class":337,"line":489},10,[335,491,492],{"class":341},"]\n",[494,495,496,509],"table",{},[497,498,499],"thead",{},[500,501,502,506],"tr",{},[503,504,505],"th",{},"Field",[503,507,508],{},"Description",[510,511,512,544,561],"tbody",{},[500,513,514,519],{},[515,516,517],"td",{},[276,518,405],{},[515,520,521,524,525,524,528,524,530,524,533,536,537,540,541,543],{},[276,522,523],{},"provisioning",", ",[276,526,527],{},"initializing",[276,529,414],{},[276,531,532],{},"stopping",[276,534,535],{},"stopped",", or ",[276,538,539],{},"deleting",". Agents answer when ",[276,542,414],{},".",[500,545,546,550],{},[515,547,548],{},[276,549,426],{},[515,551,552,553,524,555,536,558,543],{},"The key creator's role in the workspace: ",[276,554,435],{},[276,556,557],{},"admin",[276,559,560],{},"member",[500,562,563,567],{},[515,564,565],{},[276,566,447],{},[515,568,569,524,572,524,575,524,577,536,580,543],{},[276,570,571],{},"free",[276,573,574],{},"starter",[276,576,456],{},[276,578,579],{},"business",[276,581,582],{},"enterprise",[309,584,586],{"id":585},"get-a-workspace","Get a workspace",[272,588,589,318,592],{},[276,590,591],{},"GET /workspaces/{workspaceId}",[276,593,321],{},[272,595,596,597,524,599,524,601,603,604,606],{},"Returns ",[276,598,358],{},[276,600,384],{},[276,602,405],{},", and ",[276,605,468],{}," for the key's workspace.",[304,608,23],{"id":609},"agents",[309,611,613],{"id":612},"list-agents","List agents",[272,615,616,318,619],{},[276,617,618],{},"GET /workspaces/{workspaceId}/agents",[276,620,621],{},"agents:read",[272,623,624,625,629],{},"Returns the workspace's agents in no particular order. A key ",[285,626,628],{"href":627},"/agent-api/authentication#pinning-a-key-to-an-agent","pinned","\nto an agent sees only that agent.",[326,631,633],{"className":328,"code":632,"language":330,"meta":331,"style":331},"[\n  {\n    \"id\": \"0b7e9f3a-1c2d-4e5f-8a9b-0c1d2e3f4a5b\",\n    \"workspaceId\": \"6f1c2d4e-8a90-4b1c-9d2e-3f4a5b6c7d8e\",\n    \"displayName\": \"Scout\",\n    \"name\": \"researcher\",\n    \"templateId\": \"researcher\",\n    \"soulMd\": \"# Soul\\n\\nYou are Scout, our eyes on the outside world…\",\n    \"provider\": \"anthropic\",\n    \"model\": \"anthropic/claude-sonnet-5\",\n    \"timezone\": \"Europe/London\",\n    \"avatarUrl\": \"data:image/webp;base64,UklGR…\",\n    \"memoryEnabled\": true,\n    \"locked\": false,\n    \"createdAt\": \"2026-08-01T09:02:11.000Z\",\n    \"updatedAt\": \"2026-09-30T14:20:05.000Z\"\n  }\n]\n",[276,634,635,639,643,662,680,700,719,738,765,785,805,826,847,862,877,897,916,921],{"__ignoreMap":331},[335,636,637],{"class":337,"line":338},[335,638,342],{"class":341},[335,640,641],{"class":337,"line":345},[335,642,348],{"class":341},[335,644,645,647,649,651,653,655,658,660],{"class":337,"line":351},[335,646,354],{"class":341},[335,648,358],{"class":357},[335,650,361],{"class":341},[335,652,364],{"class":341},[335,654,367],{"class":341},[335,656,657],{"class":370},"0b7e9f3a-1c2d-4e5f-8a9b-0c1d2e3f4a5b",[335,659,361],{"class":341},[335,661,376],{"class":341},[335,663,664,666,668,670,672,674,676,678],{"class":337,"line":379},[335,665,354],{"class":341},[335,667,294],{"class":357},[335,669,361],{"class":341},[335,671,364],{"class":341},[335,673,367],{"class":341},[335,675,371],{"class":370},[335,677,361],{"class":341},[335,679,376],{"class":341},[335,681,682,684,687,689,691,693,696,698],{"class":337,"line":400},[335,683,354],{"class":341},[335,685,686],{"class":357},"displayName",[335,688,361],{"class":341},[335,690,364],{"class":341},[335,692,367],{"class":341},[335,694,695],{"class":370},"Scout",[335,697,361],{"class":341},[335,699,376],{"class":341},[335,701,702,704,706,708,710,712,715,717],{"class":337,"line":421},[335,703,354],{"class":341},[335,705,384],{"class":357},[335,707,361],{"class":341},[335,709,364],{"class":341},[335,711,367],{"class":341},[335,713,714],{"class":370},"researcher",[335,716,361],{"class":341},[335,718,376],{"class":341},[335,720,721,723,726,728,730,732,734,736],{"class":337,"line":442},[335,722,354],{"class":341},[335,724,725],{"class":357},"templateId",[335,727,361],{"class":341},[335,729,364],{"class":341},[335,731,367],{"class":341},[335,733,714],{"class":370},[335,735,361],{"class":341},[335,737,376],{"class":341},[335,739,740,742,745,747,749,751,754,758,761,763],{"class":337,"line":463},[335,741,354],{"class":341},[335,743,744],{"class":357},"soulMd",[335,746,361],{"class":341},[335,748,364],{"class":341},[335,750,367],{"class":341},[335,752,753],{"class":370},"# Soul",[335,755,757],{"class":756},"sTEyZ","\\n\\n",[335,759,760],{"class":370},"You are Scout, our eyes on the outside world…",[335,762,361],{"class":341},[335,764,376],{"class":341},[335,766,767,769,772,774,776,778,781,783],{"class":337,"line":483},[335,768,354],{"class":341},[335,770,771],{"class":357},"provider",[335,773,361],{"class":341},[335,775,364],{"class":341},[335,777,367],{"class":341},[335,779,780],{"class":370},"anthropic",[335,782,361],{"class":341},[335,784,376],{"class":341},[335,786,787,789,792,794,796,798,801,803],{"class":337,"line":489},[335,788,354],{"class":341},[335,790,791],{"class":357},"model",[335,793,361],{"class":341},[335,795,364],{"class":341},[335,797,367],{"class":341},[335,799,800],{"class":370},"anthropic/claude-sonnet-5",[335,802,361],{"class":341},[335,804,376],{"class":341},[335,806,808,810,813,815,817,819,822,824],{"class":337,"line":807},11,[335,809,354],{"class":341},[335,811,812],{"class":357},"timezone",[335,814,361],{"class":341},[335,816,364],{"class":341},[335,818,367],{"class":341},[335,820,821],{"class":370},"Europe/London",[335,823,361],{"class":341},[335,825,376],{"class":341},[335,827,829,831,834,836,838,840,843,845],{"class":337,"line":828},12,[335,830,354],{"class":341},[335,832,833],{"class":357},"avatarUrl",[335,835,361],{"class":341},[335,837,364],{"class":341},[335,839,367],{"class":341},[335,841,842],{"class":370},"data:image/webp;base64,UklGR…",[335,844,361],{"class":341},[335,846,376],{"class":341},[335,848,850,852,855,857,859],{"class":337,"line":849},13,[335,851,354],{"class":341},[335,853,854],{"class":357},"memoryEnabled",[335,856,361],{"class":341},[335,858,364],{"class":341},[335,860,861],{"class":341}," true,\n",[335,863,865,867,870,872,874],{"class":337,"line":864},14,[335,866,354],{"class":341},[335,868,869],{"class":357},"locked",[335,871,361],{"class":341},[335,873,364],{"class":341},[335,875,876],{"class":341}," false,\n",[335,878,880,882,884,886,888,890,893,895],{"class":337,"line":879},15,[335,881,354],{"class":341},[335,883,468],{"class":357},[335,885,361],{"class":341},[335,887,364],{"class":341},[335,889,367],{"class":341},[335,891,892],{"class":370},"2026-08-01T09:02:11.000Z",[335,894,361],{"class":341},[335,896,376],{"class":341},[335,898,900,902,905,907,909,911,914],{"class":337,"line":899},16,[335,901,354],{"class":341},[335,903,904],{"class":357},"updatedAt",[335,906,361],{"class":341},[335,908,364],{"class":341},[335,910,367],{"class":341},[335,912,913],{"class":370},"2026-09-30T14:20:05.000Z",[335,915,480],{"class":341},[335,917,919],{"class":337,"line":918},17,[335,920,486],{"class":341},[335,922,924],{"class":337,"line":923},18,[335,925,492],{"class":341},[494,927,928,936],{},[497,929,930],{},[500,931,932,934],{},[503,933,505],{},[503,935,508],{},[510,937,938,950,976,989,1000,1013,1028],{},[500,939,940,944],{},[515,941,942],{},[276,943,686],{},[515,945,946,947,949],{},"The agent's name as shown in the app. Use this, not ",[276,948,384],{},", when you show an agent to people.",[500,951,952,956],{},[515,953,954],{},[276,955,725],{},[515,957,958,959,524,961,524,964,524,967,524,970,536,973,543],{},"The template it was created from: ",[276,960,714],{},[276,962,963],{},"coder",[276,965,966],{},"marketer",[276,968,969],{},"finance",[276,971,972],{},"writer",[276,974,975],{},"assistant",[500,977,978,982],{},[515,979,980],{},[276,981,744],{},[515,983,984,985,988],{},"Its personality instructions (",[276,986,987],{},"soul.md",").",[500,990,991,997],{},[515,992,993,524,995],{},[276,994,771],{},[276,996,791],{},[515,998,999],{},"The LLM it runs on.",[500,1001,1002,1006],{},[515,1003,1004],{},[276,1005,812],{},[515,1007,1008,1009,1012],{},"IANA timezone, or ",[276,1010,1011],{},"null"," for UTC.",[500,1014,1015,1019],{},[515,1016,1017],{},[276,1018,833],{},[515,1020,1021,1022,1025,1026,543],{},"The avatar as a ",[276,1023,1024],{},"data:"," URL, or ",[276,1027,1011],{},[500,1029,1030,1034],{},[515,1031,1032],{},[276,1033,869],{},[515,1035,1036,1039,1040,543],{},[276,1037,1038],{},"true"," when the workspace's plan doesn't include this agent (Free keeps only the first). Messages to it fail with ",[276,1041,1042],{},"402",[1044,1045,1046],"note",{},[272,1047,1048],{},"Agent objects also carry internal fields that aren't listed here. They can change or disappear\nwithout notice, so don't build on them.",[309,1050,1052],{"id":1051},"get-an-agent","Get an agent",[272,1054,1055,318,1058],{},[276,1056,1057],{},"GET /workspaces/{workspaceId}/agents/{agentId}",[276,1059,621],{},[272,1061,1062,1063,1065],{},"Returns one agent, in the same shape as the list but without ",[276,1064,869],{},". An agent that doesn't\nexist returns an empty response body.",[309,1067,1069],{"id":1068},"list-agent-templates","List agent templates",[272,1071,1072,318,1075],{},[276,1073,1074],{},"GET /workspaces/{workspaceId}/agents/templates",[276,1076,621],{},[272,1078,1079,1080,524,1082,524,1084,376,1086,524,1089,524,1092,524,1095,603,1098,1101,1102,1104],{},"Returns the templates new agents are created from, each with ",[276,1081,358],{},[276,1083,384],{},[276,1085,686],{},[276,1087,1088],{},"personality",[276,1090,1091],{},"description",[276,1093,1094],{},"icon",[276,1096,1097],{},"illustration",[276,1099,1100],{},"color",". Creating agents isn't part of\nthe Agent API; this is for showing what a ",[276,1103,725],{}," means.",[304,1106,56],{"id":1107},"chats",[272,1109,1110,1111,1114],{},"A chat is a conversation with one agent. Chats created through the API appear in ",[1112,1113,56],"strong",{}," in the\napp, as chats of the person who generated the key.",[309,1116,1118],{"id":1117},"the-chat-object","The chat object",[326,1120,1122],{"className":328,"code":1121,"language":330,"meta":331,"style":331},"{\n  \"id\": \"9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d\",\n  \"userId\": \"2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a\",\n  \"workspaceId\": \"6f1c2d4e-8a90-4b1c-9d2e-3f4a5b6c7d8e\",\n  \"agentId\": \"0b7e9f3a-1c2d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"agentName\": \"Scout\",\n  \"title\": \"Hello from the API\",\n  \"summary\": null,\n  \"archivedAt\": null,\n  \"pinned\": false,\n  \"createdAt\": \"2026-10-08T10:15:00.000Z\",\n  \"updatedAt\": \"2026-10-08T10:15:42.000Z\"\n}\n",[276,1123,1124,1129,1149,1169,1187,1206,1225,1245,1259,1272,1284,1303,1320],{"__ignoreMap":331},[335,1125,1126],{"class":337,"line":338},[335,1127,1128],{"class":341},"{\n",[335,1130,1131,1134,1136,1138,1140,1142,1145,1147],{"class":337,"line":345},[335,1132,1133],{"class":341},"  \"",[335,1135,358],{"class":357},[335,1137,361],{"class":341},[335,1139,364],{"class":341},[335,1141,367],{"class":341},[335,1143,1144],{"class":370},"9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",[335,1146,361],{"class":341},[335,1148,376],{"class":341},[335,1150,1151,1153,1156,1158,1160,1162,1165,1167],{"class":337,"line":351},[335,1152,1133],{"class":341},[335,1154,1155],{"class":357},"userId",[335,1157,361],{"class":341},[335,1159,364],{"class":341},[335,1161,367],{"class":341},[335,1163,1164],{"class":370},"2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a",[335,1166,361],{"class":341},[335,1168,376],{"class":341},[335,1170,1171,1173,1175,1177,1179,1181,1183,1185],{"class":337,"line":379},[335,1172,1133],{"class":341},[335,1174,294],{"class":357},[335,1176,361],{"class":341},[335,1178,364],{"class":341},[335,1180,367],{"class":341},[335,1182,371],{"class":370},[335,1184,361],{"class":341},[335,1186,376],{"class":341},[335,1188,1189,1191,1194,1196,1198,1200,1202,1204],{"class":337,"line":400},[335,1190,1133],{"class":341},[335,1192,1193],{"class":357},"agentId",[335,1195,361],{"class":341},[335,1197,364],{"class":341},[335,1199,367],{"class":341},[335,1201,657],{"class":370},[335,1203,361],{"class":341},[335,1205,376],{"class":341},[335,1207,1208,1210,1213,1215,1217,1219,1221,1223],{"class":337,"line":421},[335,1209,1133],{"class":341},[335,1211,1212],{"class":357},"agentName",[335,1214,361],{"class":341},[335,1216,364],{"class":341},[335,1218,367],{"class":341},[335,1220,695],{"class":370},[335,1222,361],{"class":341},[335,1224,376],{"class":341},[335,1226,1227,1229,1232,1234,1236,1238,1241,1243],{"class":337,"line":442},[335,1228,1133],{"class":341},[335,1230,1231],{"class":357},"title",[335,1233,361],{"class":341},[335,1235,364],{"class":341},[335,1237,367],{"class":341},[335,1239,1240],{"class":370},"Hello from the API",[335,1242,361],{"class":341},[335,1244,376],{"class":341},[335,1246,1247,1249,1252,1254,1256],{"class":337,"line":463},[335,1248,1133],{"class":341},[335,1250,1251],{"class":357},"summary",[335,1253,361],{"class":341},[335,1255,364],{"class":341},[335,1257,1258],{"class":341}," null,\n",[335,1260,1261,1263,1266,1268,1270],{"class":337,"line":483},[335,1262,1133],{"class":341},[335,1264,1265],{"class":357},"archivedAt",[335,1267,361],{"class":341},[335,1269,364],{"class":341},[335,1271,1258],{"class":341},[335,1273,1274,1276,1278,1280,1282],{"class":337,"line":489},[335,1275,1133],{"class":341},[335,1277,628],{"class":357},[335,1279,361],{"class":341},[335,1281,364],{"class":341},[335,1283,876],{"class":341},[335,1285,1286,1288,1290,1292,1294,1296,1299,1301],{"class":337,"line":807},[335,1287,1133],{"class":341},[335,1289,468],{"class":357},[335,1291,361],{"class":341},[335,1293,364],{"class":341},[335,1295,367],{"class":341},[335,1297,1298],{"class":370},"2026-10-08T10:15:00.000Z",[335,1300,361],{"class":341},[335,1302,376],{"class":341},[335,1304,1305,1307,1309,1311,1313,1315,1318],{"class":337,"line":828},[335,1306,1133],{"class":341},[335,1308,904],{"class":357},[335,1310,361],{"class":341},[335,1312,364],{"class":341},[335,1314,367],{"class":341},[335,1316,1317],{"class":370},"2026-10-08T10:15:42.000Z",[335,1319,480],{"class":341},[335,1321,1322],{"class":337,"line":849},[335,1323,1324],{"class":341},"}\n",[494,1326,1327,1335],{},[497,1328,1329],{},[500,1330,1331,1333],{},[503,1332,505],{},[503,1334,508],{},[510,1336,1337,1346,1361,1370,1384,1393],{},[500,1338,1339,1343],{},[515,1340,1341],{},[276,1342,1155],{},[515,1344,1345],{},"Who the chat belongs to: the person who generated the key, for chats the key starts.",[500,1347,1348,1352],{},[515,1349,1350],{},[276,1351,1193],{},[515,1353,1354,1355,1357,1358,1360],{},"The agent. ",[276,1356,1011],{}," if the agent has since been removed; ",[276,1359,1212],{}," keeps its name.",[500,1362,1363,1367],{},[515,1364,1365],{},[276,1366,1231],{},[515,1368,1369],{},"If you don't set one, it's generated from the first message.",[500,1371,1372,1376],{},[515,1373,1374],{},[276,1375,1251],{},[515,1377,1378,1381,1382,543],{},[276,1379,1380],{},"{ \"headline\": string, \"keyResults\": string[] }"," once the chat has been summarized, else ",[276,1383,1011],{},[500,1385,1386,1390],{},[515,1387,1388],{},[276,1389,628],{},[515,1391,1392],{},"Whether the key's user has pinned the chat. Not returned when creating a chat.",[500,1394,1395,1399],{},[515,1396,1397],{},[276,1398,1265],{},[515,1400,1401,1402,543],{},"When the chat was archived, or ",[276,1403,1011],{},[272,1405,1406],{},"Chats also carry a few fields the app uses for sharing and summaries; don't build on fields that\naren't listed here.",[309,1408,1410],{"id":1409},"create-a-chat","Create a chat",[272,1412,1413,318,1416],{},[276,1414,1415],{},"POST /chats",[276,1417,1418],{},"chats:write",[326,1420,1424],{"className":1421,"code":1422,"language":1423,"meta":331,"style":331},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -s https://api.betterclaw.io/chats \\\n  -H \"Authorization: Bearer $BETTERCLAW_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"workspaceId\": \"6f1c2d4e-…\", \"agentId\": \"0b7e9f3a-…\", \"title\": \"Weekly report\"}'\n","bash",[276,1425,1426,1441,1458,1471],{"__ignoreMap":331},[335,1427,1428,1432,1435,1438],{"class":337,"line":338},[335,1429,1431],{"class":1430},"sBMFI","curl",[335,1433,1434],{"class":370}," -s",[335,1436,1437],{"class":370}," https://api.betterclaw.io/chats",[335,1439,1440],{"class":756}," \\\n",[335,1442,1443,1446,1448,1451,1454,1456],{"class":337,"line":345},[335,1444,1445],{"class":370},"  -H",[335,1447,367],{"class":341},[335,1449,1450],{"class":370},"Authorization: Bearer ",[335,1452,1453],{"class":756},"$BETTERCLAW_API_KEY",[335,1455,361],{"class":341},[335,1457,1440],{"class":756},[335,1459,1460,1462,1464,1467,1469],{"class":337,"line":351},[335,1461,1445],{"class":370},[335,1463,367],{"class":341},[335,1465,1466],{"class":370},"Content-Type: application/json",[335,1468,361],{"class":341},[335,1470,1440],{"class":756},[335,1472,1473,1476,1479,1482],{"class":337,"line":379},[335,1474,1475],{"class":370},"  -d",[335,1477,1478],{"class":341}," '",[335,1480,1481],{"class":370},"{\"workspaceId\": \"6f1c2d4e-…\", \"agentId\": \"0b7e9f3a-…\", \"title\": \"Weekly report\"}",[335,1483,1484],{"class":341},"'\n",[494,1486,1487,1501],{},[497,1488,1489],{},[500,1490,1491,1493,1496,1499],{},[503,1492,505],{},[503,1494,1495],{},"Type",[503,1497,1498],{},"Required",[503,1500,508],{},[510,1502,1503,1518,1532,1546,1563],{},[500,1504,1505,1509,1512,1515],{},[515,1506,1507],{},[276,1508,294],{},[515,1510,1511],{},"uuid",[515,1513,1514],{},"Yes",[515,1516,1517],{},"The key's workspace.",[500,1519,1520,1524,1526,1529],{},[515,1521,1522],{},[276,1523,1193],{},[515,1525,1511],{},[515,1527,1528],{},"No",[515,1530,1531],{},"The agent to talk to. If you leave it out, BetterClaw picks one (see below).",[500,1533,1534,1538,1541,1543],{},[515,1535,1536],{},[276,1537,1231],{},[515,1539,1540],{},"string",[515,1542,1528],{},[515,1544,1545],{},"Up to 500 characters.",[500,1547,1548,1553,1555,1557],{},[515,1549,1550],{},[276,1551,1552],{},"routingMessage",[515,1554,1540],{},[515,1556,1528],{},[515,1558,1559,1560,1562],{},"The first message you're about to send, used only to pick an agent when ",[276,1561,1193],{}," is left out. Not saved.",[500,1564,1565,1570,1572,1574],{},[515,1566,1567],{},[276,1568,1569],{},"clientRequestId",[515,1571,1511],{},[515,1573,1528],{},[515,1575,1576,1577,543],{},"Makes the request safe to retry; see ",[285,1578,1580],{"href":1579},"#retrying-safely","Retrying safely",[272,1582,1583,1584,988],{},"Returns the new chat (",[276,1585,1586],{},"201",[272,1588,1589,1590,1592,1593,1595,1596,536,1599,1602,1603,1605],{},"If you leave out ",[276,1591,1193],{},", the chat goes to the key's pinned agent if it has one. Otherwise, a\n",[276,1594,1552],{}," that starts with an agent's name (",[276,1597,1598],{},"@Scout …",[276,1600,1601],{},"@\"Research Analyst\" …"," for\nnames with spaces) picks that agent, and anything else is routed to the best-suited agent. When a\nmention was used, the response includes ",[276,1604,1552],{}," with the mention removed, so you can send\nthat text as the first message.",[309,1607,1609],{"id":1608},"list-chats","List chats",[272,1611,1612,318,1615],{},[276,1613,1614],{},"GET /chats?workspaceId={workspaceId}",[276,1616,1617],{},"chats:read",[272,1619,1620,1621,1623],{},"Returns every chat in the workspace that hasn't been deleted, newest activity first, including\narchived chats and chats started by other members. A key ",[285,1622,628],{"href":627},"\nto an agent gets only that agent's chats. Each item is a chat object.",[309,1625,1627],{"id":1626},"get-a-chat-with-its-messages","Get a chat with its messages",[272,1629,1630,318,1633],{},[276,1631,1632],{},"GET /chats/{chatId}",[276,1634,1617],{},[272,1636,1637,1638,1641],{},"Returns the chat object plus ",[276,1639,1640],{},"messages",", oldest first.",[326,1643,1645],{"className":328,"code":1644,"language":330,"meta":331,"style":331},"{\n  \"id\": \"9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d\",\n  \"title\": \"Weekly report\",\n  \"messages\": [\n    {\n      \"id\": \"b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e\",\n      \"chatId\": \"9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d\",\n      \"role\": \"user\",\n      \"status\": \"complete\",\n      \"content\": \"Draft this week's report from the attached numbers.\",\n      \"attachments\": [{ \"name\": \"numbers.csv\", \"mimeType\": \"text/csv\", \"bytes\": 1832 }],\n      \"deliverable\": null,\n      \"updates\": [],\n      \"question\": null,\n      \"errorMessage\": null,\n      \"turnIndex\": 0,\n      \"createdAt\": \"2026-10-08T10:15:01.000Z\",\n      \"updatedAt\": \"2026-10-08T10:15:01.000Z\"\n    },\n    {\n      \"id\": \"c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f\",\n      \"chatId\": \"9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d\",\n      \"role\": \"assistant\",\n      \"status\": \"complete\",\n      \"content\": \"Here's the draft. Revenue is up 8% week over week…\",\n      \"attachments\": [],\n      \"deliverable\": [{ \"filename\": \"weekly-report.pdf\", \"mimeType\": \"application/pdf\", \"bytes\": 48211, \"version\": 1 }],\n      \"updates\": [{ \"timestamp\": \"2026-10-08T10:15:20.000Z\", \"message\": \"Reading numbers.csv\" }],\n      \"question\": null,\n      \"errorMessage\": null,\n      \"turnIndex\": 1,\n      \"createdAt\": \"2026-10-08T10:15:01.000Z\",\n      \"updatedAt\": \"2026-10-08T10:15:42.000Z\"\n    }\n  ]\n}\n",[276,1646,1647,1651,1669,1688,1701,1706,1726,1745,1764,1783,1803,1869,1882,1896,1909,1922,1938,1957,1973,1979,1984,2004,2023,2042,2061,2081,2094,2169,2218,2231,2244,2259,2278,2295,2301,2307],{"__ignoreMap":331},[335,1648,1649],{"class":337,"line":338},[335,1650,1128],{"class":341},[335,1652,1653,1655,1657,1659,1661,1663,1665,1667],{"class":337,"line":345},[335,1654,1133],{"class":341},[335,1656,358],{"class":357},[335,1658,361],{"class":341},[335,1660,364],{"class":341},[335,1662,367],{"class":341},[335,1664,1144],{"class":370},[335,1666,361],{"class":341},[335,1668,376],{"class":341},[335,1670,1671,1673,1675,1677,1679,1681,1684,1686],{"class":337,"line":351},[335,1672,1133],{"class":341},[335,1674,1231],{"class":357},[335,1676,361],{"class":341},[335,1678,364],{"class":341},[335,1680,367],{"class":341},[335,1682,1683],{"class":370},"Weekly report",[335,1685,361],{"class":341},[335,1687,376],{"class":341},[335,1689,1690,1692,1694,1696,1698],{"class":337,"line":379},[335,1691,1133],{"class":341},[335,1693,1640],{"class":357},[335,1695,361],{"class":341},[335,1697,364],{"class":341},[335,1699,1700],{"class":341}," [\n",[335,1702,1703],{"class":337,"line":400},[335,1704,1705],{"class":341},"    {\n",[335,1707,1708,1711,1713,1715,1717,1719,1722,1724],{"class":337,"line":421},[335,1709,1710],{"class":341},"      \"",[335,1712,358],{"class":1430},[335,1714,361],{"class":341},[335,1716,364],{"class":341},[335,1718,367],{"class":341},[335,1720,1721],{"class":370},"b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",[335,1723,361],{"class":341},[335,1725,376],{"class":341},[335,1727,1728,1730,1733,1735,1737,1739,1741,1743],{"class":337,"line":442},[335,1729,1710],{"class":341},[335,1731,1732],{"class":1430},"chatId",[335,1734,361],{"class":341},[335,1736,364],{"class":341},[335,1738,367],{"class":341},[335,1740,1144],{"class":370},[335,1742,361],{"class":341},[335,1744,376],{"class":341},[335,1746,1747,1749,1751,1753,1755,1757,1760,1762],{"class":337,"line":463},[335,1748,1710],{"class":341},[335,1750,426],{"class":1430},[335,1752,361],{"class":341},[335,1754,364],{"class":341},[335,1756,367],{"class":341},[335,1758,1759],{"class":370},"user",[335,1761,361],{"class":341},[335,1763,376],{"class":341},[335,1765,1766,1768,1770,1772,1774,1776,1779,1781],{"class":337,"line":483},[335,1767,1710],{"class":341},[335,1769,405],{"class":1430},[335,1771,361],{"class":341},[335,1773,364],{"class":341},[335,1775,367],{"class":341},[335,1777,1778],{"class":370},"complete",[335,1780,361],{"class":341},[335,1782,376],{"class":341},[335,1784,1785,1787,1790,1792,1794,1796,1799,1801],{"class":337,"line":489},[335,1786,1710],{"class":341},[335,1788,1789],{"class":1430},"content",[335,1791,361],{"class":341},[335,1793,364],{"class":341},[335,1795,367],{"class":341},[335,1797,1798],{"class":370},"Draft this week's report from the attached numbers.",[335,1800,361],{"class":341},[335,1802,376],{"class":341},[335,1804,1805,1807,1810,1812,1814,1817,1819,1822,1824,1826,1828,1831,1833,1836,1838,1841,1843,1845,1847,1850,1852,1854,1856,1859,1861,1863,1866],{"class":337,"line":807},[335,1806,1710],{"class":341},[335,1808,1809],{"class":1430},"attachments",[335,1811,361],{"class":341},[335,1813,364],{"class":341},[335,1815,1816],{"class":341}," [{",[335,1818,367],{"class":341},[335,1820,384],{"class":1821},"sbssI",[335,1823,361],{"class":341},[335,1825,364],{"class":341},[335,1827,367],{"class":341},[335,1829,1830],{"class":370},"numbers.csv",[335,1832,361],{"class":341},[335,1834,1835],{"class":341},",",[335,1837,367],{"class":341},[335,1839,1840],{"class":1821},"mimeType",[335,1842,361],{"class":341},[335,1844,364],{"class":341},[335,1846,367],{"class":341},[335,1848,1849],{"class":370},"text/csv",[335,1851,361],{"class":341},[335,1853,1835],{"class":341},[335,1855,367],{"class":341},[335,1857,1858],{"class":1821},"bytes",[335,1860,361],{"class":341},[335,1862,364],{"class":341},[335,1864,1865],{"class":1821}," 1832",[335,1867,1868],{"class":341}," }],\n",[335,1870,1871,1873,1876,1878,1880],{"class":337,"line":828},[335,1872,1710],{"class":341},[335,1874,1875],{"class":1430},"deliverable",[335,1877,361],{"class":341},[335,1879,364],{"class":341},[335,1881,1258],{"class":341},[335,1883,1884,1886,1889,1891,1893],{"class":337,"line":849},[335,1885,1710],{"class":341},[335,1887,1888],{"class":1430},"updates",[335,1890,361],{"class":341},[335,1892,364],{"class":341},[335,1894,1895],{"class":341}," [],\n",[335,1897,1898,1900,1903,1905,1907],{"class":337,"line":864},[335,1899,1710],{"class":341},[335,1901,1902],{"class":1430},"question",[335,1904,361],{"class":341},[335,1906,364],{"class":341},[335,1908,1258],{"class":341},[335,1910,1911,1913,1916,1918,1920],{"class":337,"line":879},[335,1912,1710],{"class":341},[335,1914,1915],{"class":1430},"errorMessage",[335,1917,361],{"class":341},[335,1919,364],{"class":341},[335,1921,1258],{"class":341},[335,1923,1924,1926,1929,1931,1933,1936],{"class":337,"line":899},[335,1925,1710],{"class":341},[335,1927,1928],{"class":1430},"turnIndex",[335,1930,361],{"class":341},[335,1932,364],{"class":341},[335,1934,1935],{"class":1821}," 0",[335,1937,376],{"class":341},[335,1939,1940,1942,1944,1946,1948,1950,1953,1955],{"class":337,"line":918},[335,1941,1710],{"class":341},[335,1943,468],{"class":1430},[335,1945,361],{"class":341},[335,1947,364],{"class":341},[335,1949,367],{"class":341},[335,1951,1952],{"class":370},"2026-10-08T10:15:01.000Z",[335,1954,361],{"class":341},[335,1956,376],{"class":341},[335,1958,1959,1961,1963,1965,1967,1969,1971],{"class":337,"line":923},[335,1960,1710],{"class":341},[335,1962,904],{"class":1430},[335,1964,361],{"class":341},[335,1966,364],{"class":341},[335,1968,367],{"class":341},[335,1970,1952],{"class":370},[335,1972,480],{"class":341},[335,1974,1976],{"class":337,"line":1975},19,[335,1977,1978],{"class":341},"    },\n",[335,1980,1982],{"class":337,"line":1981},20,[335,1983,1705],{"class":341},[335,1985,1987,1989,1991,1993,1995,1997,2000,2002],{"class":337,"line":1986},21,[335,1988,1710],{"class":341},[335,1990,358],{"class":1430},[335,1992,361],{"class":341},[335,1994,364],{"class":341},[335,1996,367],{"class":341},[335,1998,1999],{"class":370},"c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",[335,2001,361],{"class":341},[335,2003,376],{"class":341},[335,2005,2007,2009,2011,2013,2015,2017,2019,2021],{"class":337,"line":2006},22,[335,2008,1710],{"class":341},[335,2010,1732],{"class":1430},[335,2012,361],{"class":341},[335,2014,364],{"class":341},[335,2016,367],{"class":341},[335,2018,1144],{"class":370},[335,2020,361],{"class":341},[335,2022,376],{"class":341},[335,2024,2026,2028,2030,2032,2034,2036,2038,2040],{"class":337,"line":2025},23,[335,2027,1710],{"class":341},[335,2029,426],{"class":1430},[335,2031,361],{"class":341},[335,2033,364],{"class":341},[335,2035,367],{"class":341},[335,2037,975],{"class":370},[335,2039,361],{"class":341},[335,2041,376],{"class":341},[335,2043,2045,2047,2049,2051,2053,2055,2057,2059],{"class":337,"line":2044},24,[335,2046,1710],{"class":341},[335,2048,405],{"class":1430},[335,2050,361],{"class":341},[335,2052,364],{"class":341},[335,2054,367],{"class":341},[335,2056,1778],{"class":370},[335,2058,361],{"class":341},[335,2060,376],{"class":341},[335,2062,2064,2066,2068,2070,2072,2074,2077,2079],{"class":337,"line":2063},25,[335,2065,1710],{"class":341},[335,2067,1789],{"class":1430},[335,2069,361],{"class":341},[335,2071,364],{"class":341},[335,2073,367],{"class":341},[335,2075,2076],{"class":370},"Here's the draft. Revenue is up 8% week over week…",[335,2078,361],{"class":341},[335,2080,376],{"class":341},[335,2082,2084,2086,2088,2090,2092],{"class":337,"line":2083},26,[335,2085,1710],{"class":341},[335,2087,1809],{"class":1430},[335,2089,361],{"class":341},[335,2091,364],{"class":341},[335,2093,1895],{"class":341},[335,2095,2097,2099,2101,2103,2105,2107,2109,2112,2114,2116,2118,2121,2123,2125,2127,2129,2131,2133,2135,2138,2140,2142,2144,2146,2148,2150,2153,2155,2157,2160,2162,2164,2167],{"class":337,"line":2096},27,[335,2098,1710],{"class":341},[335,2100,1875],{"class":1430},[335,2102,361],{"class":341},[335,2104,364],{"class":341},[335,2106,1816],{"class":341},[335,2108,367],{"class":341},[335,2110,2111],{"class":1821},"filename",[335,2113,361],{"class":341},[335,2115,364],{"class":341},[335,2117,367],{"class":341},[335,2119,2120],{"class":370},"weekly-report.pdf",[335,2122,361],{"class":341},[335,2124,1835],{"class":341},[335,2126,367],{"class":341},[335,2128,1840],{"class":1821},[335,2130,361],{"class":341},[335,2132,364],{"class":341},[335,2134,367],{"class":341},[335,2136,2137],{"class":370},"application/pdf",[335,2139,361],{"class":341},[335,2141,1835],{"class":341},[335,2143,367],{"class":341},[335,2145,1858],{"class":1821},[335,2147,361],{"class":341},[335,2149,364],{"class":341},[335,2151,2152],{"class":1821}," 48211",[335,2154,1835],{"class":341},[335,2156,367],{"class":341},[335,2158,2159],{"class":1821},"version",[335,2161,361],{"class":341},[335,2163,364],{"class":341},[335,2165,2166],{"class":1821}," 1",[335,2168,1868],{"class":341},[335,2170,2172,2174,2176,2178,2180,2182,2184,2187,2189,2191,2193,2196,2198,2200,2202,2205,2207,2209,2211,2214,2216],{"class":337,"line":2171},28,[335,2173,1710],{"class":341},[335,2175,1888],{"class":1430},[335,2177,361],{"class":341},[335,2179,364],{"class":341},[335,2181,1816],{"class":341},[335,2183,367],{"class":341},[335,2185,2186],{"class":1821},"timestamp",[335,2188,361],{"class":341},[335,2190,364],{"class":341},[335,2192,367],{"class":341},[335,2194,2195],{"class":370},"2026-10-08T10:15:20.000Z",[335,2197,361],{"class":341},[335,2199,1835],{"class":341},[335,2201,367],{"class":341},[335,2203,2204],{"class":1821},"message",[335,2206,361],{"class":341},[335,2208,364],{"class":341},[335,2210,367],{"class":341},[335,2212,2213],{"class":370},"Reading numbers.csv",[335,2215,361],{"class":341},[335,2217,1868],{"class":341},[335,2219,2221,2223,2225,2227,2229],{"class":337,"line":2220},29,[335,2222,1710],{"class":341},[335,2224,1902],{"class":1430},[335,2226,361],{"class":341},[335,2228,364],{"class":341},[335,2230,1258],{"class":341},[335,2232,2234,2236,2238,2240,2242],{"class":337,"line":2233},30,[335,2235,1710],{"class":341},[335,2237,1915],{"class":1430},[335,2239,361],{"class":341},[335,2241,364],{"class":341},[335,2243,1258],{"class":341},[335,2245,2247,2249,2251,2253,2255,2257],{"class":337,"line":2246},31,[335,2248,1710],{"class":341},[335,2250,1928],{"class":1430},[335,2252,361],{"class":341},[335,2254,364],{"class":341},[335,2256,2166],{"class":1821},[335,2258,376],{"class":341},[335,2260,2262,2264,2266,2268,2270,2272,2274,2276],{"class":337,"line":2261},32,[335,2263,1710],{"class":341},[335,2265,468],{"class":1430},[335,2267,361],{"class":341},[335,2269,364],{"class":341},[335,2271,367],{"class":341},[335,2273,1952],{"class":370},[335,2275,361],{"class":341},[335,2277,376],{"class":341},[335,2279,2281,2283,2285,2287,2289,2291,2293],{"class":337,"line":2280},33,[335,2282,1710],{"class":341},[335,2284,904],{"class":1430},[335,2286,361],{"class":341},[335,2288,364],{"class":341},[335,2290,367],{"class":341},[335,2292,1317],{"class":370},[335,2294,480],{"class":341},[335,2296,2298],{"class":337,"line":2297},34,[335,2299,2300],{"class":341},"    }\n",[335,2302,2304],{"class":337,"line":2303},35,[335,2305,2306],{"class":341},"  ]\n",[335,2308,2310],{"class":337,"line":2309},36,[335,2311,1324],{"class":341},[494,2313,2314,2322],{},[497,2315,2316],{},[500,2317,2318,2320],{},[503,2319,505],{},[503,2321,508],{},[510,2323,2324,2337,2354,2366,2381,2393,2402,2415],{},[500,2325,2326,2330],{},[515,2327,2328],{},[276,2329,426],{},[515,2331,2332,2334,2335,543],{},[276,2333,1759],{}," or ",[276,2336,975],{},[500,2338,2339,2343],{},[515,2340,2341],{},[276,2342,405],{},[515,2344,2345,2348,2349,2334,2351,543],{},[276,2346,2347],{},"streaming"," while the agent is still writing, then ",[276,2350,1778],{},[276,2352,2353],{},"error",[500,2355,2356,2360],{},[515,2357,2358],{},[276,2359,1789],{},[515,2361,2362,2363,2365],{},"The text. While ",[276,2364,2347],{},", the reply so far.",[500,2367,2368,2372],{},[515,2369,2370],{},[276,2371,1809],{},[515,2373,2374,2375,524,2377,524,2379,543],{},"Files sent with a user message: ",[276,2376,384],{},[276,2378,1840],{},[276,2380,1858],{},[500,2382,2383,2387],{},[515,2384,2385],{},[276,2386,1875],{},[515,2388,2389,2390,2392],{},"Files the agent produced, or ",[276,2391,1011],{},". Download one by its position in this array.",[500,2394,2395,2399],{},[515,2396,2397],{},[276,2398,1888],{},[515,2400,2401],{},"Progress notes the agent posted while working.",[500,2403,2404,2408],{},[515,2405,2406],{},[276,2407,1902],{},[515,2409,2410,2411,2414],{},"Set when the agent stopped to ask you something: ",[276,2412,2413],{},"{ id, text, suggestedAnswer?, expiresAt, status }",". Answer by sending a message.",[500,2416,2417,2421],{},[515,2418,2419],{},[276,2420,1915],{},[515,2422,2423,2424,2426,2427,543],{},"Why the reply failed, when ",[276,2425,405],{}," is ",[276,2428,2353],{},[309,2430,2432],{"id":2431},"update-a-chat","Update a chat",[272,2434,2435,318,2438],{},[276,2436,2437],{},"PATCH /chats/{chatId}",[276,2439,1418],{},[272,2441,2442],{},"Send at least one of:",[494,2444,2445,2455],{},[497,2446,2447],{},[500,2448,2449,2451,2453],{},[503,2450,505],{},[503,2452,1495],{},[503,2454,508],{},[510,2456,2457,2468,2480],{},[500,2458,2459,2463,2465],{},[515,2460,2461],{},[276,2462,1231],{},[515,2464,1540],{},[515,2466,2467],{},"1–500 characters.",[500,2469,2470,2474,2477],{},[515,2471,2472],{},[276,2473,628],{},[515,2475,2476],{},"boolean",[515,2478,2479],{},"Pins the chat for the key's user.",[500,2481,2482,2487,2489],{},[515,2483,2484],{},[276,2485,2486],{},"archived",[515,2488,2476],{},[515,2490,2491,2493,2494,2497],{},[276,2492,1038],{}," moves it to Archive, ",[276,2495,2496],{},"false"," restores it.",[272,2499,2500],{},"Returns the updated chat.",[309,2502,2504],{"id":2503},"delete-a-chat","Delete a chat",[272,2506,2507,318,2510],{},[276,2508,2509],{},"DELETE /chats/{chatId}",[276,2511,1418],{},[272,2513,2514,2515,2518],{},"Deletes the chat for everyone in the workspace and returns ",[276,2516,2517],{},"{ \"success\": true }",". It's removed\npermanently after 30 days.",[304,2520,2521],{"id":1640},"Messages",[309,2523,2525],{"id":2524},"send-a-message","Send a message",[272,2527,2528,318,2531],{},[276,2529,2530],{},"POST /chats/{chatId}/messages",[276,2532,1418],{},[272,2534,2535],{},"Send JSON for text only:",[326,2537,2539],{"className":1421,"code":2538,"language":1423,"meta":331,"style":331},"curl -s \"https://api.betterclaw.io/chats/$CHAT_ID/messages\" \\\n  -H \"Authorization: Bearer $BETTERCLAW_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"content\": \"Summarize the top three stories today.\"}'\n",[276,2540,2541,2562,2576,2588],{"__ignoreMap":331},[335,2542,2543,2545,2547,2549,2552,2555,2558,2560],{"class":337,"line":338},[335,2544,1431],{"class":1430},[335,2546,1434],{"class":370},[335,2548,367],{"class":341},[335,2550,2551],{"class":370},"https://api.betterclaw.io/chats/",[335,2553,2554],{"class":756},"$CHAT_ID",[335,2556,2557],{"class":370},"/messages",[335,2559,361],{"class":341},[335,2561,1440],{"class":756},[335,2563,2564,2566,2568,2570,2572,2574],{"class":337,"line":345},[335,2565,1445],{"class":370},[335,2567,367],{"class":341},[335,2569,1450],{"class":370},[335,2571,1453],{"class":756},[335,2573,361],{"class":341},[335,2575,1440],{"class":756},[335,2577,2578,2580,2582,2584,2586],{"class":337,"line":351},[335,2579,1445],{"class":370},[335,2581,367],{"class":341},[335,2583,1466],{"class":370},[335,2585,361],{"class":341},[335,2587,1440],{"class":756},[335,2589,2590,2592,2594,2597],{"class":337,"line":379},[335,2591,1475],{"class":370},[335,2593,1478],{"class":341},[335,2595,2596],{"class":370},"{\"content\": \"Summarize the top three stories today.\"}",[335,2598,1484],{"class":341},[272,2600,2601,2602,2605,2606,2609],{},"or ",[276,2603,2604],{},"multipart/form-data"," to attach files, with each file in a ",[276,2607,2608],{},"files"," field:",[326,2611,2613],{"className":1421,"code":2612,"language":1423,"meta":331,"style":331},"curl -s \"https://api.betterclaw.io/chats/$CHAT_ID/messages\" \\\n  -H \"Authorization: Bearer $BETTERCLAW_API_KEY\" \\\n  -F \"content=Draft this week's report from these numbers.\" \\\n  -F \"files=@numbers.csv\"\n",[276,2614,2615,2633,2647,2661],{"__ignoreMap":331},[335,2616,2617,2619,2621,2623,2625,2627,2629,2631],{"class":337,"line":338},[335,2618,1431],{"class":1430},[335,2620,1434],{"class":370},[335,2622,367],{"class":341},[335,2624,2551],{"class":370},[335,2626,2554],{"class":756},[335,2628,2557],{"class":370},[335,2630,361],{"class":341},[335,2632,1440],{"class":756},[335,2634,2635,2637,2639,2641,2643,2645],{"class":337,"line":345},[335,2636,1445],{"class":370},[335,2638,367],{"class":341},[335,2640,1450],{"class":370},[335,2642,1453],{"class":756},[335,2644,361],{"class":341},[335,2646,1440],{"class":756},[335,2648,2649,2652,2654,2657,2659],{"class":337,"line":351},[335,2650,2651],{"class":370},"  -F",[335,2653,367],{"class":341},[335,2655,2656],{"class":370},"content=Draft this week's report from these numbers.",[335,2658,361],{"class":341},[335,2660,1440],{"class":756},[335,2662,2663,2665,2667,2670],{"class":337,"line":379},[335,2664,2651],{"class":370},[335,2666,367],{"class":341},[335,2668,2669],{"class":370},"files=@numbers.csv",[335,2671,480],{"class":341},[494,2673,2674,2684],{},[497,2675,2676],{},[500,2677,2678,2680,2682],{},[503,2679,505],{},[503,2681,1495],{},[503,2683,508],{},[510,2685,2686,2697,2709],{},[500,2687,2688,2692,2694],{},[515,2689,2690],{},[276,2691,1789],{},[515,2693,1540],{},[515,2695,2696],{},"The message, up to 100,000 characters.",[500,2698,2699,2703,2706],{},[515,2700,2701],{},[276,2702,2608],{},[515,2704,2705],{},"file",[515,2707,2708],{},"Attachments: up to 30 MB each, and 50 per chat in total. See accepted types below.",[500,2710,2711,2715,2717],{},[515,2712,2713],{},[276,2714,1569],{},[515,2716,1511],{},[515,2718,1576,2719,543],{},[285,2720,1580],{"href":1579},[272,2722,2723],{},"Accepted file types: PNG, JPEG, GIF, and WebP images; PDF, Word, Excel, and PowerPoint documents;\nplain text, Markdown, CSV, HTML, XML, and JSON; MP3 and WAV audio; MP4, WebM, Ogg, MOV, AVI, MKV,\nMPEG, and 3GP video; Jupyter notebooks; ZIP archives; and RSS or Atom feeds. Files are checked by\ntheir contents, not just their extension.",[272,2725,2726,2727,2729],{},"A message needs text, a file, or both. The response (",[276,2728,1586],{},") comes back as soon as the message is\naccepted, before the agent replies:",[326,2731,2733],{"className":328,"code":2732,"language":330,"meta":331,"style":331},"{\n  \"userMessage\": { \"id\": \"b2c3d4e5-…\", \"role\": \"user\", \"status\": \"complete\", \"content\": \"Summarize the top three stories today.\", \"turnIndex\": 2 },\n  \"assistantMessage\": { \"id\": \"c3d4e5f6-…\", \"role\": \"assistant\", \"status\": \"streaming\", \"content\": \"\", \"turnIndex\": 3 }\n}\n",[276,2734,2735,2739,2833,2922],{"__ignoreMap":331},[335,2736,2737],{"class":337,"line":338},[335,2738,1128],{"class":341},[335,2740,2741,2743,2746,2748,2750,2753,2755,2757,2759,2761,2763,2766,2768,2770,2772,2774,2776,2778,2780,2782,2784,2786,2788,2790,2792,2794,2796,2798,2800,2802,2804,2806,2808,2810,2812,2815,2817,2819,2821,2823,2825,2827,2830],{"class":337,"line":345},[335,2742,1133],{"class":341},[335,2744,2745],{"class":357},"userMessage",[335,2747,361],{"class":341},[335,2749,364],{"class":341},[335,2751,2752],{"class":341}," {",[335,2754,367],{"class":341},[335,2756,358],{"class":1430},[335,2758,361],{"class":341},[335,2760,364],{"class":341},[335,2762,367],{"class":341},[335,2764,2765],{"class":370},"b2c3d4e5-…",[335,2767,361],{"class":341},[335,2769,1835],{"class":341},[335,2771,367],{"class":341},[335,2773,426],{"class":1430},[335,2775,361],{"class":341},[335,2777,364],{"class":341},[335,2779,367],{"class":341},[335,2781,1759],{"class":370},[335,2783,361],{"class":341},[335,2785,1835],{"class":341},[335,2787,367],{"class":341},[335,2789,405],{"class":1430},[335,2791,361],{"class":341},[335,2793,364],{"class":341},[335,2795,367],{"class":341},[335,2797,1778],{"class":370},[335,2799,361],{"class":341},[335,2801,1835],{"class":341},[335,2803,367],{"class":341},[335,2805,1789],{"class":1430},[335,2807,361],{"class":341},[335,2809,364],{"class":341},[335,2811,367],{"class":341},[335,2813,2814],{"class":370},"Summarize the top three stories today.",[335,2816,361],{"class":341},[335,2818,1835],{"class":341},[335,2820,367],{"class":341},[335,2822,1928],{"class":1430},[335,2824,361],{"class":341},[335,2826,364],{"class":341},[335,2828,2829],{"class":1821}," 2",[335,2831,2832],{"class":341}," },\n",[335,2834,2835,2837,2840,2842,2844,2846,2848,2850,2852,2854,2856,2859,2861,2863,2865,2867,2869,2871,2873,2875,2877,2879,2881,2883,2885,2887,2889,2891,2893,2895,2897,2899,2901,2903,2906,2908,2910,2912,2914,2916,2919],{"class":337,"line":351},[335,2836,1133],{"class":341},[335,2838,2839],{"class":357},"assistantMessage",[335,2841,361],{"class":341},[335,2843,364],{"class":341},[335,2845,2752],{"class":341},[335,2847,367],{"class":341},[335,2849,358],{"class":1430},[335,2851,361],{"class":341},[335,2853,364],{"class":341},[335,2855,367],{"class":341},[335,2857,2858],{"class":370},"c3d4e5f6-…",[335,2860,361],{"class":341},[335,2862,1835],{"class":341},[335,2864,367],{"class":341},[335,2866,426],{"class":1430},[335,2868,361],{"class":341},[335,2870,364],{"class":341},[335,2872,367],{"class":341},[335,2874,975],{"class":370},[335,2876,361],{"class":341},[335,2878,1835],{"class":341},[335,2880,367],{"class":341},[335,2882,405],{"class":1430},[335,2884,361],{"class":341},[335,2886,364],{"class":341},[335,2888,367],{"class":341},[335,2890,2347],{"class":370},[335,2892,361],{"class":341},[335,2894,1835],{"class":341},[335,2896,367],{"class":341},[335,2898,1789],{"class":1430},[335,2900,361],{"class":341},[335,2902,364],{"class":341},[335,2904,2905],{"class":341}," \"\"",[335,2907,1835],{"class":341},[335,2909,367],{"class":341},[335,2911,1928],{"class":1430},[335,2913,361],{"class":341},[335,2915,364],{"class":341},[335,2917,2918],{"class":1821}," 3",[335,2920,2921],{"class":341}," }\n",[335,2923,2924],{"class":337,"line":379},[335,2925,1324],{"class":341},[272,2927,2928,2929,2931,2932,2935,2936,2938,2939,2941,2942,543],{},"The agent then writes into ",[276,2930,2839],{},". To get the reply, either\n",[285,2933,2934],{"href":253},"stream it"," or fetch the chat until that message's ",[276,2937,405],{}," is no longer\n",[276,2940,2347],{},". A reply that stalls for an hour is marked ",[276,2943,2353],{},[309,2945,2947],{"id":2946},"stop-a-reply","Stop a reply",[272,2949,2950,318,2953],{},[276,2951,2952],{},"POST /chats/{chatId}/messages/{messageId}/stop",[276,2954,1418],{},[272,2956,2957,2958,2961,2962,2965,2966,2969,2970,543],{},"Stops the agent writing ",[276,2959,2960],{},"messageId",". Returns ",[276,2963,2964],{},"{ \"ok\": true, \"stopped\": true }",", or\n",[276,2967,2968],{},"\"stopped\": false"," if the message had already finished. A stopped reply keeps what was written so\nfar and ends as ",[276,2971,1778],{},[309,2973,2975],{"id":2974},"download-a-deliverable","Download a deliverable",[272,2977,2978,318,2981],{},[276,2979,2980],{},"GET /chats/{chatId}/messages/{messageId}/deliverables/{index}",[276,2982,1617],{},[272,2984,2985,2986,2989,2990,2992,2993,2996,2997,3000],{},"Downloads a file the agent produced. ",[276,2987,2988],{},"index"," is the file's position in the message's ",[276,2991,1875],{},"\narray, starting at ",[276,2994,2995],{},"0",". The response is a ",[276,2998,2999],{},"302"," redirect to a download link that expires after 60\nseconds, so follow redirects and don't store the link:",[326,3002,3004],{"className":1421,"code":3003,"language":1423,"meta":331,"style":331},"curl -sL -o weekly-report.pdf \\\n  \"https://api.betterclaw.io/chats/$CHAT_ID/messages/$MESSAGE_ID/deliverables/0\" \\\n  -H \"Authorization: Bearer $BETTERCLAW_API_KEY\"\n",[276,3005,3006,3021,3042],{"__ignoreMap":331},[335,3007,3008,3010,3013,3016,3019],{"class":337,"line":338},[335,3009,1431],{"class":1430},[335,3011,3012],{"class":370}," -sL",[335,3014,3015],{"class":370}," -o",[335,3017,3018],{"class":370}," weekly-report.pdf",[335,3020,1440],{"class":756},[335,3022,3023,3025,3027,3029,3032,3035,3038,3040],{"class":337,"line":345},[335,3024,1133],{"class":341},[335,3026,2551],{"class":370},[335,3028,2554],{"class":756},[335,3030,3031],{"class":370},"/messages/",[335,3033,3034],{"class":756},"$MESSAGE_ID",[335,3036,3037],{"class":370},"/deliverables/0",[335,3039,361],{"class":341},[335,3041,1440],{"class":756},[335,3043,3044,3046,3048,3050,3052],{"class":337,"line":351},[335,3045,1445],{"class":370},[335,3047,367],{"class":341},[335,3049,1450],{"class":370},[335,3051,1453],{"class":756},[335,3053,480],{"class":341},[494,3055,3056,3065],{},[497,3057,3058],{},[500,3059,3060,3063],{},[503,3061,3062],{},"Query",[503,3064,508],{},[510,3066,3067,3077],{},[500,3068,3069,3074],{},[515,3070,3071],{},[276,3072,3073],{},"preview=true",[515,3075,3076],{},"Redirects to a link that opens in the browser instead of downloading.",[500,3078,3079,3084],{},[515,3080,3081],{},[276,3082,3083],{},"inline=true",[515,3085,3086],{},"Returns the file's bytes directly instead of redirecting (files up to 50 MB).",[304,3088,1580],{"id":3089},"retrying-safely",[272,3091,3092,3094,3095,3097,3098,3100,3101,543],{},[276,3093,1415],{}," and ",[276,3096,2530],{}," accept a ",[276,3099,1569],{},". Generate a UUID once\nper logical request and reuse it when you retry after a timeout or network error. A retry with the\nsame ID and the same content returns the original result instead of creating a second chat or\nsending the message twice. Reusing an ID for different content returns ",[276,3102,3103],{},"409",[3105,3106,3107],"style",{},"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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":331,"searchDepth":338,"depth":345,"links":3109},[3110,3114,3119,3127,3132],{"id":306,"depth":345,"text":307,"children":3111},[3112,3113],{"id":311,"depth":351,"text":312},{"id":585,"depth":351,"text":586},{"id":609,"depth":345,"text":23,"children":3115},[3116,3117,3118],{"id":612,"depth":351,"text":613},{"id":1051,"depth":351,"text":1052},{"id":1068,"depth":351,"text":1069},{"id":1107,"depth":345,"text":56,"children":3120},[3121,3122,3123,3124,3125,3126],{"id":1117,"depth":351,"text":1118},{"id":1409,"depth":351,"text":1410},{"id":1608,"depth":351,"text":1609},{"id":1626,"depth":351,"text":1627},{"id":2431,"depth":351,"text":2432},{"id":2503,"depth":351,"text":2504},{"id":1640,"depth":345,"text":2521,"children":3128},[3129,3130,3131],{"id":2524,"depth":351,"text":2525},{"id":2946,"depth":351,"text":2947},{"id":2974,"depth":351,"text":2975},{"id":3089,"depth":345,"text":1580},"Every Agent API request, its permission, parameters, and response.","md",null,{},{"title":247,"icon":250},{"title":263,"description":3133},"PcV8N8phP3qxqK_3BkmdJuUMfVGMQM3RP7NHnFdpHQY",[3141,3143],{"title":242,"path":243,"stem":244,"description":3142,"icon":245,"children":-1},"API keys, short-lived session tokens for browsers, agent pinning, and revocation.",{"title":252,"path":253,"stem":254,"description":3144,"icon":255,"children":-1},"Watch chats and replies update live over the /ws/chats WebSocket.",1791467821279]