Get pet profiles from a specific shelter

This operation retrieves all pets associated with a specific shelter.

Endpoint structure

GET /shelters/{id}/pets

Path parameters

Parameter Type Description
id integer The unique identifier of the shelter

Query parameters

This operation doesn’t require query parameters.

Request headers

Header Value Required
Content-Type application/json No

Request body

This operation doesn’t require a request body.

cURL request

curl -X GET {base_url}/shelters/1/pets

Example responses

Response: 200 OK with matches

[
  {
    "name": "Luna",
    "species": "cat",
    "breed": "Domestic Shorthair",
    "age_months": 18,
    "gender": "female",
    "size": "small",
    "temperament": "playful, affectionate",
    "medical": {
      "spayed_neutered": true,
      "vaccinations": ["fvrcp", "rabies"]
    },
    "description": "Luna is a playful tabby who loves
                   interactive toys and sunny windows.",
    "shelter_id": 1,
    "status": "available",
    "intake_date": "2025-09-01",
    "id": 1
  },
  {
    "name": "Oliver",
    "species": "cat",
    "breed": "Maine Coon",
    "age_months": 24,
    "gender": "male",
    "size": "large",
    "temperament": "gentle, calm",
    "medical": {
      "spayed_neutered": true,
      "vaccinations": ["fvrcp", "rabies"]
    },
    "description": "Oliver is a gentle giant who loves
                   to be brushed and cuddled.",
    "shelter_id": 1,
    "status": "available",
    "intake_date": "2025-08-15",
    "id": 5
  }
]

Response: 200 OK without any matches

[]

Successful responses include a list of pets with the following: