Agents

Agents

Create AI agents with custom workflows, capabilities, and automated execution.

POST /api/v1/agents

Create Agent

Create a new AI agent with custom workflows.

Parameters

NameTypeReqDescriptionDefault
modelstringYesModel ID—
namestringYesAgent name—
instructionsstringYesAgent instructions—
toolsarrayNoEnabled tools—
GET /api/v1/agents

List Agents

List all agents for the organization.

POST /api/v1/agents/{agent_id}/execute

Execute Agent

Execute an agent with input data.

GET /api/v1/agents/{id}

Retrieve Agent

Retrieve details for a specific agent by its ID.

DELETE /api/v1/agents/{id}

Delete Agent

Permanently delete an agent by its ID.

Response Examples

Create Agent (201)
{
  "id": "agent_abc123def456",
  "name": "Code Reviewer",
  "model": "meedoo:latest",
  "instructions": "You are a code review agent.",
  "tools": ["code_analysis", "git_inspect"],
  "status": "active",
  "created_at": 1791815801
}

Code Examples

List Agents
curl https://api.meedoo.co/api/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY"
Execute Agent
import requests

resp = requests.post(
    "https://api.meedoo.co/api/v1/agents/agent_abc123/execute",
    headers={"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
    json={"input": "Review this function for bugs"}
)
print(resp.json())
Retrieve Agent
curl https://api.meedoo.co/api/v1/agents/agent_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
Delete Agent
curl -X DELETE https://api.meedoo.co/api/v1/agents/agent_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
Create Agent
curl -X POST https://api.meedoo.co/api/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meedoo-max",
    "name": "Research Agent",
    "instructions": "You are an autonomous research agent that finds and summarizes information."
  }'