Azure Cosmos DB: DocumentDB REST API Reference

Azure Cosmos DB is a a globally distributed multi-model databases that supports the document, graph, and key-value data models. It supports the DocumentDB API for creating, querying, and managing resources. This article is a reference for the DocumentDB REST API.

The Azure Cosmos DB REST API provides programmatic access to Azure Cosmos DB resources to create, query, and delete databases, document collections, and documents. To perform operations on Azure Cosmos DB resources, you send HTTPS requests with a supported method: GET, POST, PUT, or DELETE to an endpoint that targets a resource collection or a specific resource. This section contains information about working with resources by using the REST API.

Supported REST API Versions

The following table lists the supported REST API versions by the Azure Cosmos DB service. The version must be specified via the x-ms-version header in every request. If not specified, the service defaults to the latest version 2017-02-22.

Version Change introduced Retirement date
2017-02-22 Consistent prefix
2017-01-19 Lowered minimum throughput for partitioned collections to 2500 RU/s
2016-07-11 Change feed
2015-12-16 Partitioned collections
2015-08-06 Upsert
2015-06-03 Order By support
2015-04-08 Cosmos DB general availability
2014-08-21 DocumentDB public preview February 29th, 2016

Cosmos DB Resources

The following articles describe the supported REST APIs for each resource type. For general information about the resource model, see Resource model and Cosmos DB resource URIs.

See Access control using the DocumentDB API for how to authorize requests. For general information about request and response options, see the following articles:

See Also