Agent SwarmAgent Swarm

Repos

Repos API endpoints

GET
/api/repos

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

autoClone?string
Value in"true" | "false"
name?string

Response Body

application/json

curl -X GET "http://localhost:3013/api/repos"
{
  "repos": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "url": "string",
      "name": "string",
      "clonePath": "string",
      "defaultBranch": "main",
      "autoClone": true,
      "guidelines": {
        "prChecks": [
          "string"
        ],
        "mergeChecks": [
          "string"
        ],
        "allowMerge": false,
        "review": [
          "string"
        ]
      },
      "createdAt": "string",
      "lastUpdatedAt": "string"
    }
  ]
}
POST
/api/repos

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

curl -X POST "http://localhost:3013/api/repos" \  -H "Content-Type: application/json" \  -d '{    "url": "string",    "name": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "url": "string",
  "name": "string",
  "clonePath": "string",
  "defaultBranch": "main",
  "autoClone": true,
  "guidelines": {
    "prChecks": [
      "string"
    ],
    "mergeChecks": [
      "string"
    ],
    "allowMerge": false,
    "review": [
      "string"
    ]
  },
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
DELETE
/api/repos/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

curl -X DELETE "http://localhost:3013/api/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "success": true
}
{
  "error": "string"
}
GET
/api/repos/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

curl -X GET "http://localhost:3013/api/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "url": "string",
  "name": "string",
  "clonePath": "string",
  "defaultBranch": "main",
  "autoClone": true,
  "guidelines": {
    "prChecks": [
      "string"
    ],
    "mergeChecks": [
      "string"
    ],
    "allowMerge": false,
    "review": [
      "string"
    ]
  },
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string"
}
PUT
/api/repos/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "http://localhost:3013/api/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "url": "string",
  "name": "string",
  "clonePath": "string",
  "defaultBranch": "main",
  "autoClone": true,
  "guidelines": {
    "prChecks": [
      "string"
    ],
    "mergeChecks": [
      "string"
    ],
    "allowMerge": false,
    "review": [
      "string"
    ]
  },
  "createdAt": "string",
  "lastUpdatedAt": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}