v11

latestOpenAPI 3.0.0raw.githubusercontent.com2026-01-29273578.1 KB
Agents

Create Agent

Create a new agent. If iconUrl is provided, the server will fetch the icon from the external URL and upload it to R2 storage. The response will contain the R2 URL.

post/api/v1/agents

Request body

scopestring required
slugstring required
displayNamestring required
descriptionstring required
iconUrlstring uri
authorstring
categorystring
tagsstring[]

Example request

{
  "agent": {
    "platform": "agent0",
    "url": "https://agent0.example.com/agents/abc123"
  }
}

Response

Agent created successfully

Example response

{
  "agent": {
    "agent": {
      "platform": "agent0",
      "url": "https://agent0.example.com/agents/abc123"
    }
  }
}