WritedocsWritedocs

List all pets

GET/pets

Query Parameters

limitinteger

Max number of pets to return

Response

A list of pets

namestring
tagstring
idstring
Request
curl -X GET "https://petstore.swagger.io/v2/pets?limit=<limit>" \
  -H "X-API-Key: <X-API-Key>"
Response
[
  {
    "name": "Rex",
    "tag": "dog",
    "id": "abc123"
  }
]