A newer version of this documentation is available.

View Latest

Views API

The Views REST API is used to index and query JSON documents.


Views are functions written in JavaScript that can serve several purposes in your application. You can use them to: find all the documents in your database, create a copy of data in a document and present it in a specific order, create an index to efficiently find documents by a particular value or by a particular structure in the document, represent relationships between documents, and perform calculations on data contained in documents.

View functions are stored in a design document as JSON. You can use the REST API to manage your design documents.
Table 1. Views endpoints
HTTP method URI path Description



Retrieves all views design documents.



Retrieves views.



Retrieves spatial views.



Creates a news design document with one or more views.



Deletes design documents.



Changes the number of simultaneous requests each node can accept.