Azure Cosmos DB is a a globally distributed multi-model databases that supports the document, graph, and key-value data models. The content in this section is for creating, querying, and managing document resources using the DocumentDB API via REST.
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.
The follow video gives a great introduction to Azure Cosmos DB REST APIs.
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 | DocumentDB general availability (now part of Azure Cosmos DB) | |
| 2014-08-21 | DocumentDB public preview (now part of Azure Cosmos DB) | 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.
- Databases
- Collections
- Documents
- Attachments
- Stored Procedures
- User Defined Functions
- Triggers
- Users
- Permissions
- Offers
See Access control for how to authorize requests. For general information about request and response options, see the following articles:




