Azure DevOps
Repositories, pull requests, pipelines and work items
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- OrganizationRequiredIdentifier
- Personal access token (PAT)SecretRequired
- Directory (tenant) IDOptional
Where to find them
- At https://dev.azure.com/<organization>: “User settings” icon (top right) → “Personal access tokens” → “New Token”.
- Give it a name, choose the organization and the expiration (one year at most) and, under “Scopes”, select “Custom defined” with what you will use: Project and Team, Code, Build, Release and Work Items set to “Read” (or “Read & write” if you will make changes).
- Click “Create” and copy the token: it is shown only once. If it does not let you create it, an administrator must review the organization's personal access token policies.
OAuth 2.0
PKCEYour OAuth appBring your own OAuth app: register one with Azure DevOps, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- In the Microsoft Entra admin center open “App registrations” → “New registration” and register a “Web” application.
- Under “Authentication” add the redirect URI shown below.
- Under “Certificates & secrets” create a client secret and copy its value, together with the application (client) ID.
- Under “API permissions” add the delegated permissions listed in the scopes.
- Depending on your tenant's policy, some permissions may need an administrator to grant consent. Set the tenant to your directory (tenant) ID for a single-tenant app, or keep “organizations” for work and school accounts of any tenant. These steps are only needed for your own OAuth app: when this deployment has a managed Microsoft app, Continue connects without them.
Default scopes
499b84ac-1321-427f-aa17-267ca6975798/user_impersonationoffline_access
Tools (2)
Azure DevOps API request
AZUREDEVOPS_SEND_REQUESTAuthenticated call to the Azure DevOps API (https://dev.azure.com/{organization}). Any endpoint of the API is allowed. Add api-version=7.1 to every call. Examples: GET /_apis/projects, GET /{project}/_apis/git/repositories, GET /{project}/_apis/git/repositories/{repo}/pullrequests?searchCriteria.status=active, GET /{project}/_apis/git/repositories/{repo}/items?path=/README.md&includeContent=true, GET /{project}/_apis/build/builds?$top=10&queryOrder=finishTimeDescending, GET /{project}/_apis/build/builds/{id}/logs, GET /{project}/_apis/pipelines, POST /{project}/_apis/pipelines/{id}/runs {}, POST /{project}/_apis/wit/wiql {"query": "SELECT [System.Id] FROM WorkItems WHERE …"}, GET /_apis/wit/workitems?ids=1,2, POST /{project}/_apis/wit/workitems/$Task with a JSON Patch [{"op": "add", "path": "/fields/System.Title", "value": "…"}] and the header Content-Type: application/json-patch+json.
Required scopes
No scopes required
Input
Azure DevOps API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Work items
AZUREDEVOPS_LIST_WORK_ITEMSSearches a project's work items (tasks, bugs, stories…) with WIQL and returns type, title, state, assignee, priority, iteration and last modification. By default, the open ones, from the most recently modified to the oldest.
Required scopes
No scopes required
Input
Work items input Name Type Description projectrequiredstringProject name or ID wiqlstringFull WIQL query, e.g. SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.AssignedTo] = @me ORDER BY [System.ChangedDate] DESC maxintegerDefault: 50

