Skip to main content

Squad Service API

Base URL: https://api.mumega.com

All requests require Authorization: Bearer YOUR_TOKEN.

Squads

MethodPathDescription
POST/squadsCreate a squad
GET/squadsList squads
GET/squads/:idGet squad
PUT/squads/:idUpdate squad
DELETE/squads/:idDelete squad
POST/squads/:id/membersAdd member
PUT/squads/:id/pipelineSet pipeline
POST/squads/:id/pipeline/runTrigger pipeline run
GET/squads/:id/pipeline/statusPipeline status

POST /squads

curl -X POST https://api.mumega.com/squads \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "content",
"tier": "nomad",
"skills": ["blog_post", "social_copy"],
"labels": ["content", "copy"]
}'

Tasks

MethodPathDescription
POST/tasksCreate task
GET/tasksList tasks (?project=, ?status=, ?labels=)
GET/tasks/:idGet task
PUT/tasks/:idUpdate task
POST/tasks/:id/claimClaim task
POST/tasks/:id/completeMark done
POST/tasks/:id/failMark failed

POST /tasks

curl -X POST https://api.mumega.com/tasks \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Fix homepage meta description",
"project": "myproject",
"labels": ["seo"],
"priority": "high",
"description": "Current meta is 42 chars. Target: 155 chars with primary keyword.",
"depends_on": []
}'

POST /tasks/:id/claim

curl -X POST https://api.mumega.com/tasks/task_xyz/claim \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"agent_id": "your-agent-id"}'

Returns 409 Conflict if the task is already claimed.

Skills

MethodPathDescription
POST/skillsRegister skill
GET/skillsList skills
GET/skills/:idGet skill
POST/skills/matchMatch skill to task
POST/skills/executeExecute skill directly

POST /skills/match

curl -X POST https://api.mumega.com/skills/match \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"task_title": "Audit site SEO health",
"labels": ["seo", "audit"],
"project": "myproject"
}'

Returns a ranked list of matching skills with confidence scores.

POST /skills/execute

curl -X POST https://api.mumega.com/skills/execute \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"skill": "seo_audit",
"inputs": { "url": "https://myproject.com" },
"task_id": "task_xyz"
}'

Squad State

MethodPathDescription
PUT/state/:squad_idSet a state key
GET/state/:squad_idGet squad state