Projects
A Project is a durable work container: a goal, a team that pursues it, and the multi-agent Runs done under it (grouped by Run.projectId). Running a project starts its team toward a goal — the one you pass, or the project's stored default — and tags the resulting root Run with the project, so all of a project's work is observable as one piece (Decision 0026, phase 3; team execution is Decision 0027).
A project owns a team rather than a single agent. The work it produces is a multi-agent delegation tree: running the project hands the goal to the team's manager via runTeam, and the whole tree hangs off one root Run. You observe that tree through the run-tree endpoint — see Teams — and each individual run reads back through Sessions.
Endpoints
GET /api/v1/workspaces/{slug}/projects → list projects
POST /api/v1/workspaces/{slug}/projects → 201, create a project (admin)
GET /api/v1/workspaces/{slug}/projects/{project} → project + its root runs[]
PATCH /api/v1/workspaces/{slug}/projects/{project} → update goal/team/status (admin)
POST /api/v1/workspaces/{slug}/projects/{project}/runs → 201, run the project's team (member)
These routes are authenticated with a workspace API key (Authorization: Bearer $HARMONY_KEY); the caller must be a member of the workspace, and write routes require the role noted above. {project} is the project slug, which is slugified from the name at creation time. Examples below use workspace acme-research and project sneaker-launch-seo.
List projects
GET /api/v1/workspaces/{slug}/projects returns every project in the workspace, newest-updated first.
curl https://platform.groupany.ai/api/v1/workspaces/acme-research/projects \
-H "Authorization: Bearer $HARMONY_KEY"
{
"projects": [
{
"id": "proj_…",
"name": "Sneaker Launch SEO",
"slug": "sneaker-launch-seo",
"description": "Own the organic surface for the Q3 sneaker drop.",
"goal": "Rank top-3 for the launch keyword set within 60 days.",
"team": "growth-squad",
"pinnedTeamVersion": 2,
"status": "active",
"runCount": 7,
"updatedAt": "2026-05-30T14:11:03.000Z"
}
]
}
team is the team's name (or null if none is assigned). runCount is the number of root runs done under the project. pinnedTeamVersion is null when the project tracks the team's latest version.
Create a project
POST /api/v1/workspaces/{slug}/projects (role: admin). The body is the project spec:
| Field | Type | Notes |
|---|---|---|
name | string (1–120) | Required. The slug is slugified from this and must be unique in the workspace. |
description | string (≤2000) | Optional. |
goal | string (≤10000) | Optional. The default goal used when a run omits one. |
team | string (1–80) | Optional. A team name that must already exist in the workspace. |
pinnedTeamVersion | positive int | Optional. Pin runs to a specific team version; omit to track latest. |
curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme-research/projects \
-H "Authorization: Bearer $HARMONY_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Sneaker Launch SEO",
"description": "Own the organic surface for the Q3 sneaker drop.",
"goal": "Rank top-3 for the launch keyword set within 60 days.",
"team": "growth-squad",
"pinnedTeamVersion": 2
}'
Response 201:
{
"project": {
"id": "proj_…",
"name": "Sneaker Launch SEO",
"slug": "sneaker-launch-seo",
"goal": "Rank top-3 for the launch keyword set within 60 days.",
"status": "active"
},
"uri": "harmony://ws/acme-research/projects/sneaker-launch-seo"
}
A team that doesn't exist in the workspace, or a name whose slug collides with an existing project, fails validation.
Get a project
GET /api/v1/workspaces/{slug}/projects/{project} returns the project plus its root runs (newest first, up to 50). Each runs[] entry is a root run; the full delegation tree hangs off it via the run-tree endpoint.
curl https://platform.groupany.ai/api/v1/workspaces/acme-research/projects/sneaker-launch-seo \
-H "Authorization: Bearer $HARMONY_KEY"
{
"project": {
"id": "proj_…",
"name": "Sneaker Launch SEO",
"slug": "sneaker-launch-seo",
"description": "Own the organic surface for the Q3 sneaker drop.",
"goal": "Rank top-3 for the launch keyword set within 60 days.",
"team": "growth-squad",
"teamId": "team_…",
"pinnedTeamVersion": 2,
"status": "active",
"createdAt": "2026-05-28T09:00:00.000Z",
"updatedAt": "2026-05-30T14:11:03.000Z",
"runs": [
{
"id": "run_…",
"agent": "growth-manager",
"status": "completed",
"cost_usd": 0.4173,
"started_at": "2026-05-30T14:02:11.000Z"
}
]
}
}
cost_usd is read from each run's projection (0 if not yet accrued). To see the agents a root run delegated to, walk its tree — see Teams.
Update a project
PATCH /api/v1/workspaces/{slug}/projects/{project} (role: admin). Every field is optional; send only what you want to change.
| Field | Type | Notes |
|---|---|---|
description | string (≤2000) | |
goal | string (≤10000) | New default goal. |
team | string (≤80) | Reassign to a different team name (must exist in the workspace). |
pinnedTeamVersion | positive int | null | Pin a version, or null to track latest. |
status | "active" | "archived" | Archive or reactivate the project. |
curl -X PATCH https://platform.groupany.ai/api/v1/workspaces/acme-research/projects/sneaker-launch-seo \
-H "Authorization: Bearer $HARMONY_KEY" \
-H "Content-Type: application/json" \
-d '{ "goal": "Rank top-3 and capture 5k organic sessions/mo by Q4.", "status": "active" }'
Response:
{
"project": {
"id": "proj_…",
"slug": "sneaker-launch-seo",
"status": "active"
}
}
Run a project
POST /api/v1/workspaces/{slug}/projects/{project}/runs (role: member) starts the project's team toward a goal. The body is optional: pass { "goal": "…" } to override, or send an empty body to use the project's stored default goal.
Body: { goal?: string (1–10000) } // omitted → falls back to the project's default goal
The project must have a team assigned, and there must be a goal to pursue (explicit or stored) — otherwise the request fails validation. The run reuses runTeam (Decision 0027): it hands the goal to the team manager, optionally pinned to pinnedTeamVersion, and tags the root Run with projectId.
# Run with the project's stored default goal
curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme-research/projects/sneaker-launch-seo/runs \
-H "Authorization: Bearer $HARMONY_KEY"
# …or override the goal for this run
curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme-research/projects/sneaker-launch-seo/runs \
-H "Authorization: Bearer $HARMONY_KEY" \
-H "Content-Type: application/json" \
-d '{ "goal": "Audit the 20 top landing pages and fix the worst Core Web Vitals offenders." }'
Response 201:
{
"project_run": {
"root_run_id": "run_…",
"manager": "growth-manager",
"team": "growth-squad",
"team_version": 2,
"goal": "Rank top-3 for the launch keyword set within 60 days."
},
"uri": "harmony://ws/acme-research/runs/run_…"
}
root_run_id is the head of the delegation tree. manager is the agent the goal was handed to, team / team_version identify the resolved team, and goal echoes whichever goal was used (yours or the default). Observe the work as it unfolds via the run-tree (see Teams) or read any single run through Sessions.