Azure Cosmos DB website screenshot

Azure Cosmos DB

Azure Cosmos DB is a fully managed, globally distributed, multi-model NoSQL and relational database service from Microsoft Azure that supports document, key-value, graph, column-family, and vector data models with turnkey global distribution, elastic scale, and SLA-backed latency, throughput, consistency, and availability. The Cosmos DB REST API exposes CRUD and query operations on databases, containers, items, stored procedures, triggers, and user-defined functions using master-key or resource-token authentication, alongside the Cosmos DB Resource Provider (Azure Resource Manager) using Microsoft Entra ID OAuth 2.0.

2 APIs 0 Features
DatabaseNoSQLDocument DatabaseVector DatabaseGlobally DistributedCloudAzure

APIs

Azure Cosmos DB Data Plane REST API

REST API for creating, querying, and managing databases, containers, items, stored procedures, triggers, user-defined functions, users, and permissions. Authentication uses mast...

Azure Cosmos DB Resource Provider API

Azure Resource Manager REST API for managing Cosmos DB accounts, databases, containers, throughput, backups, and role-based access at the control-plane level. Authentication use...

Collections

Resources

👥
GitHubOrganization
GitHubOrganization
🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
💰
Pricing
Pricing
📝
Signup
Signup

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: Azure Cosmos DB Data Plane REST API
  version: '2018-12-31'
items:
- info:
    name: Databases
    type: folder
  items:
  - info:
      name: List databases
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List databases
  - info:
      name: Create a database
      type: http
    http:
      method: POST
      url: https://{databaseaccount}.documents.azure.com/dbs
      body:
        type: json
        data: '{}'
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Create a database
  - info:
      name: Get a database
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId
      params:
      - name: dbId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Get a database
  - info:
      name: Delete a database
      type: http
    http:
      method: DELETE
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId
      params:
      - name: dbId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Delete a database
- info:
    name: Collections
    type: folder
  items:
  - info:
      name: List collections in a database
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls
      params:
      - name: dbId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List collections in a database
  - info:
      name: Create a collection
      type: http
    http:
      method: POST
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls
      params:
      - name: dbId
        value: ''
        type: path
      body:
        type: json
        data: '{}'
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Create a collection
  - info:
      name: Get a collection
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Get a collection
  - info:
      name: Delete a collection
      type: http
    http:
      method: DELETE
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Delete a collection
- info:
    name: Documents
    type: folder
  items:
  - info:
      name: List documents in a collection
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/docs
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List documents in a collection
  - info:
      name: Create or query a document
      type: http
    http:
      method: POST
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/docs
      headers:
      - name: x-ms-documentdb-isquery
        value: ''
      - name: x-ms-documentdb-query-enablecrosspartition
        value: ''
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      body:
        type: json
        data: '{}'
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: 'POST is used to create a document. To execute a SQL query, set the

      `x-ms-documentdb-isquery` header to `true` and send a query body.

      '
  - info:
      name: Get a document
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/docs/:docId
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      - name: docId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Get a document
  - info:
      name: Replace a document
      type: http
    http:
      method: PUT
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/docs/:docId
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      - name: docId
        value: ''
        type: path
      body:
        type: json
        data: '{}'
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Replace a document
  - info:
      name: Delete a document
      type: http
    http:
      method: DELETE
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/docs/:docId
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      - name: docId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Delete a document
- info:
    name: Stored Procedures
    type: folder
  items:
  - info:
      name: List stored procedures
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/sprocs
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List stored procedures
  - info:
      name: Create a stored procedure
      type: http
    http:
      method: POST
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/sprocs
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      body:
        type: json
        data: '{}'
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Create a stored procedure
- info:
    name: Triggers
    type: folder
  items:
  - info:
      name: List triggers
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/triggers
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List triggers
- info:
    name: User Defined Functions
    type: folder
  items:
  - info:
      name: List user-defined functions
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/colls/:collId/udfs
      params:
      - name: dbId
        value: ''
        type: path
      - name: collId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List user-defined functions
- info:
    name: Users
    type: folder
  items:
  - info:
      name: List users
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/users
      params:
      - name: dbId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List users
  - info:
      name: Create a user
      type: http
    http:
      method: POST
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/users
      params:
      - name: dbId
        value: ''
        type: path
      body:
        type: json
        data: '{}'
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: Create a user
- info:
    name: Permissions
    type: folder
  items:
  - info:
      name: List permissions for a user
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/dbs/:dbId/users/:userId/permissions
      params:
      - name: dbId
        value: ''
        type: path
      - name: userId
        value: ''
        type: path
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List permissions for a user
- info:
    name: Offers
    type: folder
  items:
  - info:
      name: List throughput offers
      type: http
    http:
      method: GET
      url: https://{databaseaccount}.documents.azure.com/offers
      auth:
        type: apikey
        key: Authorization
        value: '{{Authorization}}'
        placement: header
    docs: List throughput offers
bundled: true