| Method | GET /_uuids | |
| Request | None | |
| Response | List of UUIDs | |
| Admin Privileges Required | no | |
| Query Arguments | Argument | count | 
| Description | Number of UUIDs to return | |
| Optional | yes | |
| Type | numeric | |
| Return Codes | ||
| 200 | Request completed successfully. | |
Requests one or more Universally Unique Identifiers (UUIDs) from the CouchDB instance. The response is a JSON object providing a list of UUIDs. For example:
{
   "uuids" : [
      "7e4b5a14b22ec1cf8e58b9cdd0000da3"
   ]
}
      You can use the count argument to specify the
      number of UUIDs to be returned. For example:
    
GET http://couchdb:5984/_uuids?count=5
Returns:
{
   "uuids" : [
      "c9df0cdf4442f993fc5570225b405a80",
      "c9df0cdf4442f993fc5570225b405bd2",
      "c9df0cdf4442f993fc5570225b405e42",
      "c9df0cdf4442f993fc5570225b4061a0",
      "c9df0cdf4442f993fc5570225b406a20"
   ]
}
      The UUID type is determined by the UUID type setting in the
      CouchDB configuration. See
      Section 10.4, “PUT /_config/section/key”.
    
      For example, changing the UUID type to random:
    
PUT http://couchdb:5984/_config/uuids/algorithm Content-Type: application/json Accept: */* "random"
When obtaining a list of UUIDs:
{
   "uuids" : [
      "031aad7b469956cf2826fcb2a9260492",
      "6ec875e15e6b385120938df18ee8e496",
      "cff9e881516483911aa2f0e98949092d",
      "b89d37509d39dd712546f9510d4a9271",
      "2e0dbf7f6c4ad716f21938a016e4e59f"
   ]
}