update API examples for projects usage

Alessandro committed Mar 25, 2026 at 21:39 UTC a2567b4af34087df307b7dccf4c42e6c5ebd2a89
2 files changed +6 -6
docs/developer/connectivity.md
+3 -3
@@ -25,7 +25,7 @@ Send messages to Agent Zero and receive responses. Supports text messages, file
25 * `message` (string, required): The message to send
26 * `attachments` (array, optional): Array of `{filename, base64}` objects
27 * `lifetime_hours` (number, optional): Chat lifetime in hours (default: 24)
28 -* `project` (string, optional): Project name to activate (only on first message)
28 +* `project_name` (string, optional): Project name to activate (only on first message)
29
30 **Headers:**
31 * `X-API-KEY` (required)
@@ -185,7 +185,7 @@ async function sendMessageWithProject() {
185 },
186 body: JSON.stringify({
187 message: "Analyze the project structure",
188 - project: "my-web-app" // Activates this project
188 + project_name: "my-web-app" // Activates this project
189 })
190 });
191
@@ -206,7 +206,7 @@ async function sendMessageWithProject() {
206 body: JSON.stringify({
207 context_id: data.context_id,
208 message: "What files are in the project?"
209 - // Do NOT include project field here - already set on first message
209 + // Do NOT include project_name here - already set on first message
210 })
211 });
212
webui/components/settings/external/api-examples.html
+3 -3
@@ -35,7 +35,7 @@
35 • <code>message</code> (string, required): The message to send<br>
36 • <code>attachments</code> (array, optional): Array of {filename, base64} objects<br>
37 • <code>lifetime_hours</code> (number, optional): Chat lifetime in hours (default: 24)<br>
38 - • <code>project</code> (string, optional): Project name to activate (only on first message)
38 + • <code>project_name</code> (string, optional): Project name to activate (only on first message)
39 </p>
40 <p style="margin: 0; color: var(--color-text-secondary); font-size: 14px;">
41 <strong>Headers:</strong> <code>X-API-KEY</code> (required), <code>Content-Type: application/json</code>
@@ -629,7 +629,7 @@ async function sendMessageWithProject() {
629 },
630 body: JSON.stringify({
631 message: "Analyze the project structure",
632 - project: "my-web-app" // Activates this project
632 + project_name: "my-web-app" // Activates this project
633 })
634 });
635
@@ -650,7 +650,7 @@ async function sendMessageWithProject() {
650 body: JSON.stringify({
651 context_id: data.context_id,
652 message: "What files are in the project?"
653 - // Do NOT include project field here - already set on first message
653 + // Do NOT include project_name here - already set on first message
654 })
655 });
656