RavenDB API

RavenDB HTTP REST API served by each RavenDB server node: document commands (get, put, delete, batch) and query commands (query, patch-by-query, delete-by-query) under /databases/{database}/. Contract generated from the documentation by API Evangelist (2026-11-24); not the provider's own document. The base URL is your own server or cluster node; docs examples use the public playground http://live-test.ravendb.net.

GitHub OpenAPI

Operations 7

GET /databases/{database}/docs GET /databases/Demo/docs #
DELETE /databases/{database}/docs DELETE /databases/Example/docs #
PUT /databases/{database}/docs PUT /databases/Example/docs #
POST /databases/{database}/bulk_docs POST /databases/Example/bulk_docs #
DELETE /databases/{database}/queries DELETE /databases/Example/queries #
PATCH /databases/{database}/queries PATCH /databases/Example/queries #
POST /databases/{database}/queries POST /databases/Example/queries #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ravendb:ravendb-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ravendb-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: RavenDB API
  version: '2026-11-24'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-24: 13 operation(s)
    read from 15 public documentation page(s) (each operation names its page in x-source).
    This is not the provider''s published contract; RavenDB has published no machine-readable
    contract that the pipeline could find. Engine: anthropic.'
  x-evidence-tiers:
    code-example: 12
    documentation: 1
    pages-with-code: 14
    pages-read: 15
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-24'
  x-generator: generate-contract-from-docs.py
  x-engine: anthropic
  x-sources:
  - https://docs.ravendb.net/7.2/client-api/rest-api/rest-api-intro
  - https://docs.ravendb.net/7.2/client-api/rest-api/rest-api-intro.md
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/get-all-documents
  - https://docs.ravendb.net/7.2/client-api/rest-api/queries/query-the-database
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/put-documents
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/batch-commands
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/get-all-documents.md
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/get-documents-by-id
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/get-documents-by-prefix
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/delete-document
  - https://docs.ravendb.net/7.2/client-api/rest-api/queries/query-the-database.md
  - https://docs.ravendb.net/7.2/client-api/rest-api/queries/delete-by-query
  - https://docs.ravendb.net/7.2/client-api/rest-api/queries/patch-by-query
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/put-documents.md
  - https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/batch-commands.md
servers:
- url: '{serverUrl}'
  description: 'RavenDB is self-hosted or RavenDB Cloud: requests go to the URL of
    your own RavenDB server/cluster node (docs examples use http://live-test.ravendb.net,
    the public playground).'
  variables:
    serverUrl:
      default: http://live-test.ravendb.net
paths:
  /databases/{database}/docs:
    get:
      operationId: get_databases_docs
      tags:
      - Databases
      summary: GET /databases/Demo/docs
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/get-documents-by-id
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDatabasesDemoDocsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X GET \"http://live-test.ravendb.net/databases/Demo/docs?\
          \ id=products/48-A &include=Supplier &include=Category\" \n Linebreaks are\
          \ added for clarity. \n Response: \n HTTP/1.1 200 OK Server: nginx Date:\
          \ Tue, 10 Sep 2019 10:40:27 GMT Content-Type: application/json; charset=utf-8\
          \ Transfer-Encoding: chunked Connection: keep-alive Content-Encoding: gzip\
          \ ETag: \"Hash-9oK1ZcWmNa9SD9hP8m0vT355ztQuFnF/vKD5"
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
    delete:
      operationId: delete_databases_docs
      tags:
      - Databases
      summary: DELETE /databases/Example/docs
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/delete-document
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
      - name: id
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X DELETE \"http://live-test.ravendb.net/databases/Example/docs?id=employees/1-A\"\
          \ \n Response: \n HTTP/1.1 204 status: 204 Server: nginx Date: Tue, 27 Aug\
          \ 2019 11:40:12 GMT Connection: keep-alive Raven-Server-Version: 4.2.3.42\
          \ \n Request Format \u200B \n This is the general format of the cURL request: "
    put:
      operationId: put_databases_docs
      tags:
      - Databases
      summary: PUT /databases/Example/docs
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/put-documents
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
      - name: id
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutDatabasesExampleDocsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X PUT \"http://live-test.ravendb.net/databases/Example/docs?id=person/1-A\"\
          \ --header \"If-Match: A:1-L8hp6eYcA02dkVIEifGfKg\" -d \"{ \\\" FirstName\
          \ \\\" : \\\" John \\\" , \\\" LastName \\\" : \\\" Smith \\\" , \\\" Age\
          \ \\\" :24, \\\" @metadata \\\" :{ \\\" @collection \\\" : \\\" People \\\
          \" } }\" \n The response is the same as the previous response except for\
          \ the updated change vector: \n HTTP/1.1 201 status: 201 Server: nginx D"
  /databases/{database}/bulk_docs:
    post:
      operationId: post_databases_bulk_docs
      tags:
      - Databases
      summary: POST /databases/Example/bulk_docs
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/document-commands/batch-commands
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST "http://live-test.ravendb.net/databases/Example/bulk_docs"
          -H "Content-Type: application/json" -d "{ \" Commands \" : [ { \" Id \"
          : \" person/1 \" , \" ChangeVector \" : null, \" Document \" : { \" Name
          \" : \" John Smith \" }, \" Type \" : \" PUT \" }, { \" Id \" : \" person/1
          \" , \" ChangeVector \" : null, \" Patch \" : { \" Script \" : \" this.Name
          = ''Jane Doe''; \" , \" Values \"'
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
  /databases/{database}/queries:
    delete:
      operationId: delete_databases_queries
      tags:
      - Databases
      summary: DELETE /databases/Example/queries
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/queries/delete-by-query
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X DELETE \"http://live-test.ravendb.net/databases/Example/queries\"\
          \ -d \"{ \\\" Query \\\" : \\\" from Employees where FirstName = 'Nancy'\
          \ \\\" }\" \n Linebreaks are added for clarity. \n Response: \n HTTP/1.1\
          \ 200 OK Server: nginx Date: Sun, 24 Nov 2019 12:21:11 GMT Content-Type:\
          \ application/json; charset=utf-8 Transfer-Encoding: chunked Connection:\
          \ keep-alive Content-Encoding: gzip Vary: Accept-Encoding R"
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
    patch:
      operationId: patch_databases_queries
      tags:
      - Databases
      summary: PATCH /databases/Example/queries
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/queries/patch-by-query
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X PATCH \"http://live-test.ravendb.net/databases/Example/queries\"\
          \ -d \"{ \\\" Query \\\" : { \\\" Query \\\" : \\\" from Employees as E\
          \ update{ E.FirstName = 'Bob' } \\\" } }\" \n Linebreaks are added for clarity.\
          \ \n Response: \n HTTP/1.1 200 OK Server: nginx Date: Sun, 24 Nov 2019 12:24:51\
          \ GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked\
          \ Connection: keep-alive Content-Encoding: gz"
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
    post:
      operationId: post_databases_queries
      tags:
      - Databases
      summary: POST /databases/Example/queries
      x-source: https://docs.ravendb.net/7.2/client-api/rest-api/queries/query-the-database
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST \"http://live-test.ravendb.net/databases/Example/queries\"\
          \ -d \"{ \\\" Query \\\" : \\\" from Shippers \\\" }\" \n Linebreaks are\
          \ added for clarity. \n Response: \n HTTP/1.1 200 OK Date: Wed, 06 Nov 2019\
          \ 15:54:15 GMT Content-Type: application/json; charset=utf-8 Server: Kestrel\
          \ ETag: -786759538542975908 Vary: Accept-Encoding Raven-Server-Version:\
          \ 4.1.9.41023 Request-Time: 0 Content-Length: 1103 { \"T"
      parameters:
      - name: database
        in: path
        required: true
        schema:
          type: string
        description: Name of the RavenDB database (docs examples use Example/Demo).
components:
  schemas:
    GetDatabasesDemoDocsResponse:
      type: object
      properties:
        Name:
          type: string
        Supplier:
          type: string
        Category:
          type: string
        QuantityPerUnit:
          type: string
        PricePerUnit:
          type: number
        UnitsInStock:
          type: integer
        UnitsOnOrder:
          type: integer
        Discontinued:
          type: boolean
        ReorderLevel:
          type: integer
        '@metadata':
          type: object
          properties:
            '@collection':
              type: string
            '@change-vector':
              type: string
            '@id':
              type: string
            '@last-modified':
              type: string
              format: date-time
    GetDatabasesExampleDocsResponse:
      type: object
      properties:
        Name:
          type: string
        Description:
          type: string
        '@metadata':
          type: object
          properties:
            '@attachments':
              type: array
              items:
                type: object
                properties:
                  Name:
                    type: string
                  Hash:
                    type: string
                  ContentType:
                    type: string
                  Size:
                    type: integer
            '@collection':
              type: string
            '@change-vector':
              type: string
            '@flags':
              type: string
            '@id':
              type: string
            '@last-modified':
              type: string
              format: date-time
    PutDatabasesExampleDocsResponse:
      type: object
      properties:
        Id:
          type: string
        ChangeVector:
          type: string
tags:
- name: Api
- name: Databases
- name: Download
- name: En Us