Skip to content
Connect an agent

Organisations

Start connecting Azure DevOps

Answers Microsoft's sign-in page for read-only Azure DevOps scopes, with PKCE, and sets the flow's cookie for the callback.

POST/orgs/{org}/connectors/azure-devops/connect

TL;DR

QuestionAnswer
What does it do?Start connecting Azure DevOps.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrgAzureDevopsConnect.
What can go wrong?401 not signed in; 403 not the owner or an admin (orgs.forbidden), or the plan has no trusted publishers (plan.trusted_publishers_not_included); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 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

Answers Microsoft's sign-in page for read-only Azure DevOps scopes, with PKCE, and sets the flow's cookie for the callback.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200Where the browser goes next.OrgAzureDevopsConnect
401Not signed in.ErrorResponse
403Not the owner or an admin (orgs.forbidden), or the plan has no trusted publishers (plan.trusted_publishers_not_included).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503This 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 OrgAzureDevopsConnect.

FieldTypeRequiredDescription
urlstringyesMicrosoft's sign-in page. The browser goes there next.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools