# List all pets

**GET** `/pets`

Base URL: `https://petstore.swagger.io/v2`

List all pets

## Authorization

- X-API-Key (apiKey in header)

## Query parameters

- `limit` (integer)
  Max number of pets to return

## Responses

### 200

A list of pets

- `name` (string, required)
- `tag` (string)
- `id` (string)

Example:

```json
[
  {
    "name": "Rex",
    "tag": "dog",
    "id": "abc123"
  }
]
```