agent-swarm.devagent-swarm.dev

Models

Models API endpoints

GET/api/model-profiles

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

harness?string
Value in"claude" | "codex" | "pi" | "devin" | "claude-managed" | "opencode" | "acp" | "dsh" | "amp" | "cursor" | "grok"

Response Body

application/json

curl -X GET "http://localhost:3013/api/model-profiles"
{
  "profiles": [
    {
      "id": "string",
      "name": "string",
      "harness": "claude",
      "model": "string",
      "effort": "off",
      "allowCustomModel": true,
      "description": "string",
      "seededFrom": "string",
      "createdAt": "string",
      "lastUpdatedAt": "string"
    }
  ]
}
POST/api/model-profiles

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3013/api/model-profiles" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "harness": "claude",    "model": "string"  }'
{
  "id": "string",
  "name": "string",
  "harness": "claude",
  "model": "string",
  "effort": "off",
  "allowCustomModel": true,
  "description": "string",
  "seededFrom": "string",
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
DELETE/api/model-profiles/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

name*string

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "http://localhost:3013/api/model-profiles/string"
{
  "deleted": true
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/model-profiles/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

name*string

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/model-profiles/string"
{
  "id": "string",
  "name": "string",
  "harness": "claude",
  "model": "string",
  "effort": "off",
  "allowCustomModel": true,
  "description": "string",
  "seededFrom": "string",
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PATCH/api/model-profiles/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

name*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:3013/api/model-profiles/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "name": "string",
  "harness": "claude",
  "model": "string",
  "effort": "off",
  "allowCustomModel": true,
  "description": "string",
  "seededFrom": "string",
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}