max developers SDK 0.4.0
API reference

Workspace Start

POST /workspaces/{workspace_id}/ai-teams/{team_id}/runs

This operation can change data. Use resources you control.

This operation can spend credits. Save the request or run identifier before retrying.

Requires a Max host with the Workspace Studio routes enabled. Use the matching Groups operation when your deployment exposes Group AI Teams.

Request fields

FieldLocationTypeRequired
workspace_idpathstringRequired
team_idpathstringRequired
briefbodystringOptional
case_keybodystringRequired
inputsbodyList of InputRefOptional
modebodymanual | inboxOptional
submission_idbodystringRequired

Examples

Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.

import { MaxClient } from "@elmax/api";

const max = new MaxClient({
  baseURL: process.env.MAX_API_URL,
  apiKey: process.env.MAX_API_KEY,
});

const result = await max.api.postWorkspacesWorkspaceIdAiTeamsTeamIdRuns({
  "path": {
    "workspace_id": "wsp_example",
    "team_id": "team_example"
  },
  "body": {
    "case_key": "example",
    "submission_id": "case-example-001"
  }
});
console.log(result);
import os
from elmax_ai import MaxClient

with MaxClient(base_url=os.environ["MAX_API_URL"], api_key=os.environ["MAX_API_KEY"]) as max:
    result = max.api.post_workspaces_workspace_id_ai_teams_team_id_runs(**{'path': {'workspace_id': 'wsp_example', 'team_id': 'team_example'},
 'body': {'case_key': 'example', 'submission_id': 'case-example-001'}})
    print(result)
Response fields

Errors and recovery