9. API Reference — Apache CouchDB 1.7 Documentation

# 9. API Reference

The components of the API URL path help determine the part of the CouchDB server that is being accessed. The result is the structure of the URL request both identifies and effectively describes the area of the database you are accessing.

As with all URLs, the individual components are separated by a forward slash.

As a general rule, URL components and JSON fields starting with the `_` (underscore) character represent a special component or entity within the server or returned object. For example, the URL fragment `/_all_dbs` gets a list of all of the databases in a CouchDB instance.

This reference is structured according to the URL structure, as below.

- 9.1. API Basics
  - 9.1.1. Request Format and Responses
  - 9.1.2. HTTP Headers
  - 9.1.3. JSON Basics
  - 9.1.4. HTTP Status Codes
- 9.2. Server
  - 9.2.1. `/`
  - 9.2.2. `/_active_tasks`
  - 9.2.3. `/_all_dbs`
  - 9.2.4. `/_db_updates`
  - 9.2.5. `/_log`
  - 9.2.6. `/_replicate`
  - 9.2.7. `/_restart`
  - 9.2.8. `/_stats`
  - 9.2.9. `/_utils`
  - 9.2.10. `/_uuids`
  - 9.2.11. `/favicon.ico`
  - 9.2.12. Authentication
  - 9.2.13. Configuration
- 9.3. Databases
  - 9.3.1. `/db`
  - 9.3.2. `/db/_all_docs`
  - 9.3.3. `/db/_bulk_docs`
  - 9.3.4. `/db/_changes`
  - 9.3.5. `/db/_compact`
  - 9.3.6. `/db/_compact/design-doc`
  - 9.3.7. `/db/_ensure_full_commit`
  - 9.3.8. `/db/_view_cleanup`
  - 9.3.9. `/db/_security`
  - 9.3.10. `/db/_temp_view`
  - 9.3.11. `/db/_purge`
  - 9.3.12. `/db/_missing_revs`
  - 9.3.13. `/db/_revs_diff`
  - 9.3.14. `/db/_revs_limit`
- 9.4. Documents
  - 9.4.1. `/db/doc`
  - 9.4.2. `/db/doc/attachment`
- 9.5. Design Documents
  - 9.5.1. `/db/_design/design-doc`
  - 9.5.2. `/db/_design/design-doc/attachment`
  - 9.5.3. `/db/_design/design-doc/_info`
  - 9.5.4. `/db/_design/design-doc/_view/view-name`
  - 9.5.5. `/db/_design/design-doc/_show/show-name`
  - 9.5.6. `/db/_design/design-doc/_show/show-name/doc-id`
  - 9.5.7. `/db/_design/design-doc/_list/list-name/view-name`
  - 9.5.8. `/db/_design/design-doc/_list/list-name/other-ddoc/view-name`
  - 9.5.9. `/db/_design/design-doc/_update/update-name`
  - 9.5.10. `/db/_design/design-doc/_update/update-name/doc-id`
  - 9.5.11. `/db/_design/design-doc/_rewrite/path`
- 9.6. Local (non-replicating) Documents
  - 9.6.1. `/db/_local/id`