# List project agents

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

## Contents

**Operations**

- [GET /api/v1/coding/repos/{coding\_repository\_id}/goals](#scalar-operation-get-apiv1codingreposcoding-repository-idgoals)

**Schemas**

- [GoalListRead](#scalar-schema-goallistread)
- [GoalRead](#scalar-schema-goalread)
- [GoalCapabilityRead](#scalar-schema-goalcapabilityread)
- [DeclaredRowRead](#scalar-schema-declaredrowread)
- [MandateRead](#scalar-schema-mandateread)
- [MandateBounds](#scalar-schema-mandatebounds)
- [MandateCounterparties](#scalar-schema-mandatecounterparties)
- [MandatePackItemRead](#scalar-schema-mandatepackitemread)
- [ExternalSubscriptionShareRead](#scalar-schema-externalsubscriptionshareread)
- [CronTrigger](#scalar-schema-crontrigger)
- [EventTrigger](#scalar-schema-eventtrigger)
- [GoalProjectRead](#scalar-schema-goalprojectread)
- [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

### Tools

Custom tools your runs may call: skills and MCP servers, workspace-wide or for one project. Add, update, rescan or delete a tool. Each is safety-scanned, and runs skip a flagged tool until someone acknowledges the flag.

## Operations

<a id="scalar-operation-get-apiv1codingreposcoding-repository-idgoals"></a>

### List project agents

- **Method:** `GET`
- **Path:** `/api/v1/coding/repos/{coding_repository_id}/goals`
- **Operation ID:** `listProjectAgents`
- **Tags:** Tools

One project's agents (its standing goals): what each is for, its state, next run and spend; `finished` lists the ended ones. Owners and admins.

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

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

#### Path parameters

- **`coding_repository_id` (required)**: `string`, format: `uuid`

#### Query parameters

- **`finished`**: `boolean`, default: `false`

#### Responses

##### 200 Request fulfilled, document follows

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

[GoalListRead](#scalar-schema-goallistread)

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

**Generated example:**

```json
{
  "goals": [
    {
      "capabilities": [
        {
          "badge": "",
          "custom_tool_id": "",
          "kind": "",
          "name": "",
          "needs_connect": false,
          "reason": "",
          "tool_registry_id": ""
        }
      ],
      "coding_repository_id": "",
      "declared": [
        {
          "effect": "",
          "rule": "allow",
          "title": "",
          "tool": ""
        }
      ],
      "ends_at": "",
      "ends_when_done": false,
      "finished_at": "",
      "finished_summary": "",
      "id": "",
      "instruction": "",
      "last_fire_started_at": "",
      "last_fire_summary": "",
      "mandate": {
        "bounds": {
          "limits": [
            ""
          ],
          "max_monthly_usd": 1,
          "max_term_months": 1,
          "may_cancel": false,
          "min_saving_usd": 1
        },
        "captcha_max_tasks": 0,
        "channel": "",
        "counterparties": {
          "domains": [
            ""
          ],
          "emails": [
            ""
          ],
          "phones": [
            ""
          ],
          "sites": [
            ""
          ]
        },
        "estimate_usd": [
          1,
          1
        ],
        "owner_phone_masked": "",
        "pack": [
          {
            "label": "",
            "value_masked": ""
          }
        ]
      },
      "monthly_budget_usd": 1,
      "next_fire_at": "",
      "no_op_count": 1,
      "pause_reason": "",
      "program_job": "",
      "run_spend_usd": 1,
      "scored_on": "",
      "shared_with_admins": false,
      "spend_usd": 1,
      "status": "active",
      "subscription_share": {
        "account_label": "",
        "final": true,
        "overage": true,
        "pct": 1,
        "provider": "",
        "window": ""
      },
      "thread_id": "",
      "title": "",
      "trigger": {
        "expr": "",
        "kind": "cron",
        "timezone": ""
      },
      "trigger_label": "",
      "waiting_for_credits": false,
      "watch_address": ""
    }
  ],
  "month_spend_usd": 1,
  "projects": [
    {
      "id": "",
      "name": ""
    }
  ]
}
```

##### 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-goallistread"></a>

### GoalListRead

**Type:** `object`

- **`goals` (required)**: array of [GoalRead](#scalar-schema-goalread)
- **`month_spend_usd` (required)**: `number`
- **`projects` (required)**: array of [GoalProjectRead](#scalar-schema-goalprojectread)

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

**Generated example:**

```json
{
  "goals": [
    {
      "capabilities": [
        {
          "badge": "",
          "custom_tool_id": "",
          "kind": "",
          "name": "",
          "needs_connect": false,
          "reason": "",
          "tool_registry_id": ""
        }
      ],
      "coding_repository_id": "",
      "declared": [
        {
          "effect": "",
          "rule": "allow",
          "title": "",
          "tool": ""
        }
      ],
      "ends_at": "",
      "ends_when_done": false,
      "finished_at": "",
      "finished_summary": "",
      "id": "",
      "instruction": "",
      "last_fire_started_at": "",
      "last_fire_summary": "",
      "mandate": {
        "bounds": {
          "limits": [
            ""
          ],
          "max_monthly_usd": 1,
          "max_term_months": 1,
          "may_cancel": false,
          "min_saving_usd": 1
        },
        "captcha_max_tasks": 0,
        "channel": "",
        "counterparties": {
          "domains": [
            ""
          ],
          "emails": [
            ""
          ],
          "phones": [
            ""
          ],
          "sites": [
            ""
          ]
        },
        "estimate_usd": [
          1,
          1
        ],
        "owner_phone_masked": "",
        "pack": [
          {
            "label": "",
            "value_masked": ""
          }
        ]
      },
      "monthly_budget_usd": 1,
      "next_fire_at": "",
      "no_op_count": 1,
      "pause_reason": "",
      "program_job": "",
      "run_spend_usd": 1,
      "scored_on": "",
      "shared_with_admins": false,
      "spend_usd": 1,
      "status": "active",
      "subscription_share": {
        "account_label": "",
        "final": true,
        "overage": true,
        "pct": 1,
        "provider": "",
        "window": ""
      },
      "thread_id": "",
      "title": "",
      "trigger": {
        "expr": "",
        "kind": "cron",
        "timezone": ""
      },
      "trigger_label": "",
      "waiting_for_credits": false,
      "watch_address": ""
    }
  ],
  "month_spend_usd": 1,
  "projects": [
    {
      "id": "",
      "name": ""
    }
  ]
}
```

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

### GoalRead

**Type:** `object`

- **`coding_repository_id` (required)**: `string`, format: `uuid`
- **`declared` (required)**: array of [DeclaredRowRead](#scalar-schema-declaredrowread)
- **`id` (required)**: `string`, format: `uuid`
- **`instruction` (required)**: `string`
- **`monthly_budget_usd` (required)**: `number`
- **`no_op_count` (required)**: `integer`
- **`run_spend_usd` (required)**: `number`
- **`spend_usd` (required)**: `number`
- **`status` (required)**: `string`, possible values: `"active", "paused"`
- **`thread_id` (required)**: `string`, format: `uuid`
- **`title` (required)**: `string`
- **`trigger` (required)**: [CronTrigger](#scalar-schema-crontrigger) | [EventTrigger](#scalar-schema-eventtrigger)
- **`trigger_label` (required)**: `string`
- **`capabilities`**: array of [GoalCapabilityRead](#scalar-schema-goalcapabilityread)
- **`ends_at`**: `string | null`
- **`ends_when_done`**: `boolean`, default: `false`
- **`finished_at`**: `string | null`
- **`finished_summary`**: `string | null`
- **`last_fire_started_at`**: `string | null`
- **`last_fire_summary`**: `string | null`
- **`mandate`**: [MandateRead](#scalar-schema-mandateread) | `null`
- **`next_fire_at`**: `string | null`
- **`pause_reason`**: `string | null`
- **`program_job`**: `string | null`
- **`scored_on`**: `string | null`
- **`shared_with_admins`**: `boolean`, default: `false`
- **`subscription_share`**: [ExternalSubscriptionShareRead](#scalar-schema-externalsubscriptionshareread) | `null`
- **`waiting_for_credits`**: `boolean`, default: `false`
- **`watch_address`**: `string | null`

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

**Generated example:**

```json
{
  "capabilities": [
    {
      "badge": "",
      "custom_tool_id": "",
      "kind": "",
      "name": "",
      "needs_connect": false,
      "reason": "",
      "tool_registry_id": ""
    }
  ],
  "coding_repository_id": "",
  "declared": [
    {
      "effect": "",
      "rule": "allow",
      "title": "",
      "tool": ""
    }
  ],
  "ends_at": "",
  "ends_when_done": false,
  "finished_at": "",
  "finished_summary": "",
  "id": "",
  "instruction": "",
  "last_fire_started_at": "",
  "last_fire_summary": "",
  "mandate": {
    "bounds": {
      "limits": [
        ""
      ],
      "max_monthly_usd": 1,
      "max_term_months": 1,
      "may_cancel": false,
      "min_saving_usd": 1
    },
    "captcha_max_tasks": 0,
    "channel": "",
    "counterparties": {
      "domains": [
        ""
      ],
      "emails": [
        ""
      ],
      "phones": [
        ""
      ],
      "sites": [
        ""
      ]
    },
    "estimate_usd": [
      1,
      1
    ],
    "owner_phone_masked": "",
    "pack": [
      {
        "label": "",
        "value_masked": ""
      }
    ]
  },
  "monthly_budget_usd": 1,
  "next_fire_at": "",
  "no_op_count": 1,
  "pause_reason": "",
  "program_job": "",
  "run_spend_usd": 1,
  "scored_on": "",
  "shared_with_admins": false,
  "spend_usd": 1,
  "status": "active",
  "subscription_share": {
    "account_label": "",
    "final": true,
    "overage": true,
    "pct": 1,
    "provider": "",
    "window": ""
  },
  "thread_id": "",
  "title": "",
  "trigger": {
    "expr": "",
    "kind": "cron",
    "timezone": ""
  },
  "trigger_label": "",
  "waiting_for_credits": false,
  "watch_address": ""
}
```

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

### GoalCapabilityRead

**Type:** `object`

- **`badge` (required)**: `string`
- **`kind` (required)**: `string`
- **`name` (required)**: `string`
- **`custom_tool_id`**: `string | null`, format: `uuid`
- **`needs_connect`**: `boolean`, default: `false`
- **`reason`**: `string | null`
- **`tool_registry_id`**: `string | null`, format: `uuid`

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

**Generated example:**

```json
{
  "badge": "",
  "custom_tool_id": "",
  "kind": "",
  "name": "",
  "needs_connect": false,
  "reason": "",
  "tool_registry_id": ""
}
```

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

### DeclaredRowRead

**Type:** `object`

- **`effect` (required)**: `string`
- **`rule` (required)**: `string`, possible values: `"allow", "ask", "never"`
- **`title` (required)**: `string`
- **`tool` (required)**: `string`

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

**Generated example:**

```json
{
  "effect": "",
  "rule": "allow",
  "title": "",
  "tool": ""
}
```

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

### MandateRead

**Type:** `object`

- **`bounds` (required)**: [MandateBounds](#scalar-schema-mandatebounds)
- **`channel` (required)**: `string`
- **`counterparties` (required)**: [MandateCounterparties](#scalar-schema-mandatecounterparties)
- **`estimate_usd` (required)**: `array`
- **`captcha_max_tasks`**: `integer`, default: `0`
- **`owner_phone_masked`**: `string | null`
- **`pack`**: array of [MandatePackItemRead](#scalar-schema-mandatepackitemread)

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

**Generated example:**

```json
{
  "bounds": {
    "limits": [
      ""
    ],
    "max_monthly_usd": 1,
    "max_term_months": 1,
    "may_cancel": false,
    "min_saving_usd": 1
  },
  "captcha_max_tasks": 0,
  "channel": "",
  "counterparties": {
    "domains": [
      ""
    ],
    "emails": [
      ""
    ],
    "phones": [
      ""
    ],
    "sites": [
      ""
    ]
  },
  "estimate_usd": [
    1,
    1
  ],
  "owner_phone_masked": "",
  "pack": [
    {
      "label": "",
      "value_masked": ""
    }
  ]
}
```

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

### MandateBounds

**Type:** `object`

- **`limits`**: `array of string`, maxItems: `10`
- **`max_monthly_usd`**: `number | null`
- **`max_term_months`**: `integer | null`
- **`may_cancel`**: `boolean`, default: `false`
- **`min_saving_usd`**: `number | null`

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

**Generated example:**

```json
{
  "limits": [
    ""
  ],
  "max_monthly_usd": 1,
  "max_term_months": 1,
  "may_cancel": false,
  "min_saving_usd": 1
}
```

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

### MandateCounterparties

**Type:** `object`

- **`domains`**: `array of string`, maxItems: `50`
- **`emails`**: `array of string`, maxItems: `50`
- **`phones`**: `array of string`, maxItems: `50`
- **`sites`**: `array of string`, maxItems: `50`

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

**Generated example:**

```json
{
  "domains": [
    ""
  ],
  "emails": [
    ""
  ],
  "phones": [
    ""
  ],
  "sites": [
    ""
  ]
}
```

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

### MandatePackItemRead

**Type:** `object`

- **`label` (required)**: `string`
- **`value_masked` (required)**: `string`

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

**Generated example:**

```json
{
  "label": "",
  "value_masked": ""
}
```

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

### ExternalSubscriptionShareRead

**Type:** `object`

- **`final` (required)**: `boolean`
- **`overage` (required)**: `boolean`
- **`pct` (required)**: `number`
- **`window` (required)**: `string`
- **`account_label`**: `string | null`
- **`provider`**: `string | null`

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

**Generated example:**

```json
{
  "account_label": "",
  "final": true,
  "overage": true,
  "pct": 1,
  "provider": "",
  "window": ""
}
```

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

### CronTrigger

**Type:** `object`

- **`expr` (required)**: `string`, minLength: `9`, maxLength: `120`
- **`kind` (required)**: `string`, const: `"cron"`
- **`timezone` (required)**: `string`, minLength: `1`, maxLength: `64`

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

**Generated example:**

```json
{
  "expr": "",
  "kind": "cron",
  "timezone": ""
}
```

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

### EventTrigger

**Type:** `object`

- **`events` (required)**: `array`, maxItems: `8`

  **Items:**

  `string`, possible values: `"run.finished", "ci.red", "inbox.new", "request.held", "finding.new", "seo.move", "store.status", "mail.in", "webhook.received"`
- **`kind` (required)**: `string`, const: `"event"`
- **`mail_from`**: `string | null`, minLength: `3`, maxLength: `253`

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

**Generated example:**

```json
{
  "events": [
    "run.finished"
  ],
  "kind": "event",
  "mail_from": ""
}
```

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

### GoalProjectRead

**Type:** `object`

- **`id` (required)**: `string`, format: `uuid`
- **`name` (required)**: `string`

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

**Generated example:**

```json
{
  "id": "",
  "name": ""
}
```

<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", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "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", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "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-16"></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", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "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", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

Stable error codes surfaced to public CaaS clients.
