agent-swarm.devagent-swarm.dev

Models

Models API endpoints

GET/api/model-groups

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Response Body

application/json

curl -X GET "http://localhost:3013/api/model-groups"
{
  "groups": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "seededFrom": "string",
      "members": [
        "string"
      ],
      "createdAt": "string",
      "lastUpdatedAt": "string"
    }
  ]
}
POST/api/model-groups

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-groups" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "members": [      "string"    ]  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "seededFrom": "string",
  "members": [
    "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-groups/{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-groups/string"
{
  "deleted": true
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET/api/model-groups/{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-groups/string"
{
  "id": "string",
  "name": "string",
  "description": "string",
  "seededFrom": "string",
  "members": [
    "string"
  ],
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PATCH/api/model-groups/{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-groups/string" \  -H "Content-Type: application/json" \  -d '{    "description": "string"  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "seededFrom": "string",
  "members": [
    "string"
  ],
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
PUT/api/model-groups/{name}/members

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 PUT "http://localhost:3013/api/model-groups/string/members" \  -H "Content-Type: application/json" \  -d '{    "members": [      "string"    ]  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "seededFrom": "string",
  "members": [
    "string"
  ],
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
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" | "fx"

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",
      "credentials": {
        "property1": [
          "strin"
        ],
        "property2": [
          "strin"
        ]
      },
      "fallbacks": [
        "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",
  "credentials": {
    "property1": [
      "strin"
    ],
    "property2": [
      "strin"
    ]
  },
  "fallbacks": [
    "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",
  "credentials": {
    "property1": [
      "strin"
    ],
    "property2": [
      "strin"
    ]
  },
  "fallbacks": [
    "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",
  "credentials": {
    "property1": [
      "strin"
    ],
    "property2": [
      "strin"
    ]
  },
  "fallbacks": [
    "string"
  ],
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}