# CodePipeline

A code pipeline: a recipe for AI coding agents to work on your git repositories in phases and steps. Each deploy adds a version; a run uses the newest enabled one.

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `name` | `string` | The pipeline's name, unique within its namespace. |
| `versions` | [`CodePipelineVersion`](https://docs.maitento.com/reference/types/code-pipeline-version.md)`[]` | Every version of the pipeline's definition, oldest first. |
| `userCreatedById` | `uuid` | The id of the user who created it. A call made with an API key is recorded as the key's user. |
| `namespaceId` | `uuid` | The id of the namespace it belongs to. |
| `tenantId` | `uuid` | The id of the tenant it belongs to. |
| `id` | `uuid` | The unique id. Use it in `by-id` routes and wherever another object refers to this one. |
| `dateCreated` | `datetime` | When it was created, in UTC. |
| `dateUpdated` | `datetime` | When it was last changed, in UTC. |

## Example

```json
{
  "name": "...",
  "versions": [
    {
      "agents": [],
      "phases": [],
      "externalOperationsMcp": [],
      "externalOperationsOpenApi": [],
      "authenticationSecretInputs": [],
      "bindingInputs": [],
      "promptInputs": [],
      "vfsBindings": [],
      "cogniscriptAppId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
      "systemPrompts": [],
      "systemPromptMode": "Additional",
      "resumeVfsNamespace": "...",
      "resumeVfsName": "...",
      "durationWarning": "00:05:00",
      "durationAutoTermination": "00:05:00",
      "durationActivityTimeout": "00:05:00",
      "hookDurationLimit": "00:05:00",
      "maxFixIterations": 0,
      "confidenceThreshold": 0,
      "maxInjectedPhases": 0,
      "maxCheckLoops": 0,
      "maxParallelSteps": 0,
      "credentialStack": "...",
      "reviewGateCriticalMax": 0,
      "reviewGateHighMax": 0,
      "reviewGateMediumMax": 0,
      "includeEnvironmentInfo": false,
      "allowHumanInteraction": false,
      "allowWebTools": false,
      "onErrorHook": "...",
      "version": 0,
      "date": "2026-10-26T12:00:00.0000000Z",
      "isDisabled": false
    }
  ],
  "userCreatedById": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "namespaceId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "tenantId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
  "dateCreated": "2026-10-26T12:00:00.0000000Z",
  "dateUpdated": "2026-10-26T12:00:00.0000000Z"
}
```

## Where it's used

- [`pipelines.create`](https://docs.maitento.com/reference/api/pipelines.md) (`POST /namespaces/{namespaceName}/code-pipelines`)
- [`pipelines.getByName`](https://docs.maitento.com/reference/api/pipelines.md) (`GET /namespaces/{namespaceName}/code-pipelines/by-name/{name}`)
- [`pipelines.get`](https://docs.maitento.com/reference/api/pipelines.md) (`GET /code-pipelines/by-id/{id}`)
- [`pipelines.list`](https://docs.maitento.com/reference/api/pipelines.md) (`GET /code-pipelines`)
- [`pipelines.list`](https://docs.maitento.com/reference/api/pipelines.md) (`GET /namespaces/{namespaceName}/code-pipelines`)
- [`pipelines.update`](https://docs.maitento.com/reference/api/pipelines.md) (`PUT /code-pipelines/by-id/{id}`)
- Inside [`BuildEntityOfCodePipeline`](https://docs.maitento.com/reference/types/build-entity-of-code-pipeline.md)
