Organisations
List the Azure DevOps organisations
The Azure DevOps organisations the connected account is a member of, read when asked and never stored.
GET
/orgs/{org}/connectors/azure-devops/organizationsTL;DR
| Question | Answer |
|---|---|
| What does it do? | List the Azure DevOps organisations. |
| What does it take? | org in the path. |
| What does it return? | Status 200 with a body of type OrgAzureDevopsOrganizations. |
| What can go wrong? | 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
The Azure DevOps organisations the connected account is a member of, read when asked and never stored.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org | string | yes | The organisation's id or its slug. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | The organisations. | OrgAzureDevopsOrganizations |
| 401 | Not signed in. | 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 |
| 404 | No such organisation here, or Azure DevOps has no such organisation, project or pipeline (azure_devops.not_found). | ErrorResponse |
| 409 | Azure DevOps is not connected (azure_devops.not_connected), or its sign-in expired or was revoked (azure_devops.reconnect). | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 502 | Microsoft or Azure DevOps could not be reached (azure_devops.unavailable). | ErrorResponse |
| 503 | This server has no Microsoft Entra app for the connector (azure_devops.not_configured), or cannot keep a token (connectors.unavailable). | ErrorResponse |
Response body
A 200 answer has the type OrgAzureDevopsOrganizations.
| Field | Type | Required | Description |
|---|---|---|---|
items | object[] | yes | The Azure DevOps organisations the connected account is a member of, by name. |
items[].id | string | yes | |
items[].name | string | yes | |
truncated | boolean | yes |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |