How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Azure DevOps Pull Requests API

Operations for creating and managing pull requests

Azure DevOps Pull Requests API is one of 62 APIs that Azure DevOps publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Pull Requests. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, and an AsyncAPI specification.

This API exposes 6 operations across 3 paths, and defines 10 schemas. It is described by OpenAPI 3.2.0, at version 7.1.

Requests are made against a single base URL, https://dev.azure.com/{organization}/{project}/_apis.

6 operations 3 paths 10 schemas 3 GET1 PATCH2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
7.1
Base URL
https://dev.azure.com/{organization}
Authentication
HTTP Bearer, HTTP Basic
License
Resource Areas
1

Authentication & Security 2

Azure DevOps Pull Requests API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

  • bearerAuth — Azure AD OAuth 2.0 bearer token
  • basicAuth — Basic authentication using a Personal Access Token (PAT). Use any string as the username and the PAT as the password, then base64-encode the result.

Paths & Operations 6

Across 3 paths, the API surfaces 6 operations — 3 GET, 1 PATCH, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Pull Requests 6

Operations for creating and managing pull requests

GET
/git/repositories/{repositoryId}/pullrequests
Azure DevOps List pull requests
pullRequests_list 9 params → 200401403404
POST
/git/repositories/{repositoryId}/pullrequests
Azure DevOps Create a pull request
pullRequests_create 3 params body → 201400401403404
GET
/git/repositories/{repositoryId}/pullrequests/{pullRequestId}
Azure DevOps Get a pull request
pullRequests_get 8 params → 200401403404
PATCH
/git/repositories/{repositoryId}/pullrequests/{pullRequestId}
Azure DevOps Update a pull request
pullRequests_update 3 params body → 200400401403404
GET
/git/repositories/{repositoryId}/pullrequests/{pullRequestId}/threads
Azure DevOps Get pull request threads
pullRequests_listThreads 5 params → 200401403404
POST
/git/repositories/{repositoryId}/pullrequests/{pullRequestId}/threads
Azure DevOps Add a pull request comment thread
pullRequests_addComment 3 params body → 200400401403404

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are GitPullRequest (23 properties), GitRepository (13 properties), Comment (11 properties), GitPullRequestCommentThread (9 properties). Each schema is shown below with its type and property counts.

Comment
object
A comment in a pull request thread
11 properties
GitPullRequestCreateRequest
object
Request to create a new pull request
8 properties 3 required
GitPullRequest
object
An Azure DevOps Git pull request
23 properties
IdentityRefWithVote
object
A reviewer identity with their vote on a pull request
5 properties
GitPullRequestCommentThreadCreateRequest
object
Request to create a new pull request comment thread
3 properties 1 required
IdentityRef
object
Reference to an Azure DevOps user identity
6 properties
GitRepository
object
An Azure DevOps Git repository
13 properties
GitPullRequestCommentThread
object
A comment thread on a pull request
9 properties
ApiError
object
Error response from the Azure DevOps API
6 properties
TeamProjectReference
object
Reference to an Azure DevOps project
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

microsoft-azure-devops-pull-requests-api-openapi.yml Raw ↑

Other APIs Azure DevOps publishes across the network.

Azure DevOps Graph API
Azure DevOps Core API
Azure DevOps Security API
Azure DevOps Notifications API
Azure DevOps Audit API
Azure DevOps Search API
Azure DevOps Policy API
Azure DevOps Distributed Task API
Azure DevOps Analytics OData API
Azure DevOps Extension Management API
Azure DevOps Service Endpoint API
Azure DevOps TFVC API
Where this information came from

This is an independent, third-party profile of Azure DevOps Pull Requests API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.