# List task groups

- **OpenAPI Version:** `3.2.0`
- **API Version:** `3.1.0`
- **Contact:** Syndai <https://syndai.ai>

## Contents

**Operations**

- [GET /api/v1/external/coding/backlog/groups](#scalar-operation-get-apiv1externalcodingbackloggroups)

**Schemas**

- [GroupListResponse](#scalar-schema-grouplistresponse)
- [GroupRead](#scalar-schema-groupread)
- [GroupPartRead](#scalar-schema-grouppartread)
- [ProblemDetail](#scalar-schema-problemdetail)
- [ExternalErrorCode](#scalar-schema-externalerrorcode)

<a id="scalar-context-global-servers"></a>

## Servers

- **URL:** `https://api.syndai.ai`

<a id="scalar-context-global-authentication"></a>

## Authentication

- **CustomerApiKey**: HTTP bearer (`API Key`)

  Customer API key sent as a bearer token

## Tags

### Backlog

Work Syndai proposes for a repository: next-task offers and task groups you can add to the roadmap, edit, move to the top, start or dismiss. Viewing and dismissing is free; starting a task or group creates runs, which is billable work.

## Operations

<a id="scalar-operation-get-apiv1externalcodingbackloggroups"></a>

### List task groups

- **Method:** `GET`
- **Path:** `/api/v1/external/coding/backlog/groups`
- **Operation ID:** `listBacklogGroups`
- **Tags:** Backlog

List the tenant's groups: the 2-5 separate changes one Project Home chat message asked for, filed as one group whose parts may build on earlier parts (`after`). Lists every group not yet `done`, then those done in the last 7 days, newest first. `bucket` and each part's `status` / `needs` are derived from the parts' runs: `not_started`, `working`, `needs_you` or `done`; a part is `not_started`, `waiting` (an earlier part is not in the default branch yet), `ready`, `running`, `needs_you`, `landed` or `skipped`. Each is an open string: tolerate values you do not know. An unstarted group is listed only to the person whose chat filed it (an agent's thread: to owners and admins); a started group to everyone who sees the board, an API key included. Start one with POST /backlog/groups/{id}/start.

**Servers:** [Inherited servers](#scalar-context-global-servers)

**Authentication:** [Global authentication](#scalar-context-global-authentication)

#### Query parameters

- **`customer_id`**: `string | null`, format: `uuid`
- **`coding_repository_id`**: `string | null`, format: `uuid`

#### Responses

##### 200 Request fulfilled, document follows

**Content type:** `application/json`

[GroupListResponse](#scalar-schema-grouplistresponse)

<a id="scalar-example-1"></a>

**Generated example:**

```json
{
  "groups": [
    {
      "blocked_reason": "",
      "bucket": "",
      "coding_repository_id": "",
      "created_at": "",
      "id": "",
      "parts": [
        {
          "after": [
            1
          ],
          "brief": "",
          "id": "",
          "needs": "",
          "pr_url": "",
          "run_id": "",
          "seq": 1,
          "status": "",
          "title": ""
        }
      ],
      "started_at": "",
      "title": ""
    }
  ]
}
```

##### 400, 401, 403, 404

- `400` Bad request syntax or unsupported method
- `401` Invalid or missing customer API key
- `403` Insufficient scope or forbidden customer access
- `404` Resource not found

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

<a id="scalar-example-2"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

##### 429 Rate limit exceeded

**Headers:**

- **`Retry-After`**

  Seconds to wait before retrying the request

  `integer`

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

[Generated example](#scalar-example-2)

##### default Unexpected error

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

<a id="scalar-example-3"></a>

**Generated example:**

```json
null
```

## Schemas

<a id="scalar-schema-grouplistresponse"></a>

### GroupListResponse

**Type:** `object`

- **`groups` (required)**: array of [GroupRead](#scalar-schema-groupread)

<a id="scalar-example-4"></a>

**Generated example:**

```json
{
  "groups": [
    {
      "blocked_reason": "",
      "bucket": "",
      "coding_repository_id": "",
      "created_at": "",
      "id": "",
      "parts": [
        {
          "after": [
            1
          ],
          "brief": "",
          "id": "",
          "needs": "",
          "pr_url": "",
          "run_id": "",
          "seq": 1,
          "status": "",
          "title": ""
        }
      ],
      "started_at": "",
      "title": ""
    }
  ]
}
```

<a id="scalar-schema-groupread"></a>

### GroupRead

**Type:** `object`

- **`bucket` (required)**: `string`
- **`coding_repository_id` (required)**: `string`, format: `uuid`
- **`created_at` (required)**: `string`, format: `date-time`
- **`id` (required)**: `string`, format: `uuid`
- **`parts` (required)**: array of [GroupPartRead](#scalar-schema-grouppartread)
- **`title` (required)**: `string`
- **`blocked_reason`**: `string | null`
- **`started_at`**: `string | null`, format: `date-time`

<a id="scalar-example-5"></a>

**Generated example:**

```json
{
  "blocked_reason": "",
  "bucket": "",
  "coding_repository_id": "",
  "created_at": "",
  "id": "",
  "parts": [
    {
      "after": [
        1
      ],
      "brief": "",
      "id": "",
      "needs": "",
      "pr_url": "",
      "run_id": "",
      "seq": 1,
      "status": "",
      "title": ""
    }
  ],
  "started_at": "",
  "title": ""
}
```

<a id="scalar-schema-grouppartread"></a>

### GroupPartRead

**Type:** `object`

- **`after` (required)**: `array of integer`
- **`brief` (required)**: `string`
- **`id` (required)**: `string`, format: `uuid`
- **`seq` (required)**: `integer`
- **`status` (required)**: `string`
- **`title` (required)**: `string`
- **`needs`**: `string | null`
- **`pr_url`**: `string | null`
- **`run_id`**: `string | null`, format: `uuid`

<a id="scalar-example-6"></a>

**Generated example:**

```json
{
  "after": [
    1
  ],
  "brief": "",
  "id": "",
  "needs": "",
  "pr_url": "",
  "run_id": "",
  "seq": 1,
  "status": "",
  "title": ""
}
```

<a id="scalar-schema-problemdetail"></a>

### ProblemDetail

**Type:** `object`

RFC 7807 problem detail returned for public CaaS errors.

- **`code` (required)**: `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "VERSION_NOT_DEPLOYED", "INTERNAL_ERROR"`

  Stable error codes surfaced to public CaaS clients.
- **`status` (required)**: `integer`
- **`title` (required)**: `string`
- **`detail`**: `string | null`, default: `null`
- **`existing_run_id`**: `string | null`, default: `null`
- **`instance`**: `string | null`, default: `null`
- **`type`**: `string`, default: `"about:blank"`

<a id="scalar-example-7"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

<a id="scalar-schema-externalerrorcode"></a>

### ExternalErrorCode

**Type:** `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "VERSION_NOT_DEPLOYED", "INTERNAL_ERROR"`

Stable error codes surfaced to public CaaS clients.
