# Read one Azure DevOps pipeline

> Page: https://docs.plotwork.dev/api/get-orgs-org-connectors-azure-devops-pipeline. Index of every page: https://docs.plotwork.dev/llms.txt

One pipeline with its repository and default branch, for the trusted publisher form's Branch suggestion.

`GET /orgs/{org}/connectors/azure-devops/pipeline`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Read one Azure DevOps pipeline. |
| What does it take? | `org` in the path, and `organization`, `project`, `id` in the query string. |
| What does it return? | Status 200 with a body of type [`OrgAzureDevopsPipeline`](https://docs.plotwork.dev/api/schemas.md#orgazuredevopspipeline). |
| What can go wrong? | `400` a name or id is not one Azure DevOps could have; `401` not signed in; `403` not the owner or an admin, the plan has no trusted publishers, the tenant needs an administrator to consent (`azure_devops.consent_required`), or the connected account cannot read that organisation or project (`azure_devops.no_access`); `404` no such organisation here, or Azure DevOps has no such organisation, project or pipeline (`azure_devops.not_found`); `409` azure DevOps is not connected (`azure_devops.not_connected`), or its sign-in expired or was revoked (`azure_devops.reconnect`); `429` too many requests; `502` microsoft or Azure DevOps could not be reached (`azure_devops.unavailable`); `503` this server has no Microsoft Entra app for the connector (`azure_devops.not_configured`), or cannot keep a token (`connectors.unavailable`). Every failure uses the one error envelope. |

## What it does

One pipeline with its repository and default branch, for the trusted publisher form's Branch suggestion.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `organization` | `string` | yes | The Azure DevOps organisation, by name. |
| `project` | `string` | yes | The project, by name. |
| `id` | `string` | yes | The pipeline's definition id. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The pipeline. | [`OrgAzureDevopsPipeline`](https://docs.plotwork.dev/api/schemas.md#orgazuredevopspipeline) |
| 400 | A name or id is not one Azure DevOps could have. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | Not the owner or an admin, the plan has no trusted publishers, the tenant needs an administrator to consent (`azure_devops.consent_required`), or the connected account cannot read that organisation or project (`azure_devops.no_access`). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation here, or Azure DevOps has no such organisation, project or pipeline (`azure_devops.not_found`). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 409 | Azure DevOps is not connected (`azure_devops.not_connected`), or its sign-in expired or was revoked (`azure_devops.reconnect`). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 502 | Microsoft or Azure DevOps could not be reached (`azure_devops.unavailable`). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | This server has no Microsoft Entra app for the connector (`azure_devops.not_configured`), or cannot keep a token (`connectors.unavailable`). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`OrgAzureDevopsPipeline`](https://docs.plotwork.dev/api/schemas.md#orgazuredevopspipeline).

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | yes | The pipeline's definition id, the `definitionId` of its address. |
| `name` | `string` | yes |  |
| `folder` | `string` | yes | The folder it is in, `\` for the top. |
| `repository` | `object \| null` | yes | The repository the pipeline builds, by name, and its kind (such as `TfsGit` or `GitHub`). |
| `repository.name` | `string` | yes |  |
| `repository.type` | `string` | yes |  |
| `defaultBranch` | `string \| null` | yes | The repository's default branch for the pipeline, such as `refs/heads/main`. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
