Animals

Browse and manage individual animals available for adoption.

List all animals

get
/pets

Returns a paginated list of all animals in the store. Use limit to control page size and status to filter by availability.

Authorizations
AuthorizationstringRequired

Pass your API key as a Bearer token in the Authorization header.

Query parameters
limitinteger · min: 1 · max: 100Optional

Maximum number of animals to return. Defaults to 20, max 100.

Default: 20
statusstring · enumOptional

Filter by availability status.

Possible values:
Responses
200

A paginated list of animals.

application/json
namestringRequired

The animal's name.

Example: Fluffy
categoryIdinteger · int64Required

The ID of the category this animal belongs to.

Example: 1
statusstring · enumOptionalPossible values:
idinteger · int64Required

Unique identifier assigned on creation.

Example: 1
get
/pets

Add an animal

post
/pets

Adds a new animal to the store. The name and categoryId fields are required.

Authorizations
AuthorizationstringRequired

Pass your API key as a Bearer token in the Authorization header.

Body
namestringRequired

The animal's name.

Example: Fluffy
categoryIdinteger · int64Required

The ID of the category this animal belongs to.

Example: 1
statusstring · enumOptionalPossible values:
Responses
post
/pets
Deprecated

Get an animal

get
/pets/{petId}
This operation is deprecated and will be sunset on 2030-12-05.

Returns details for a single animal by ID.

Authorizations
AuthorizationstringRequired

Pass your API key as a Bearer token in the Authorization header.

Path parameters
petIdinteger · int64Required

The ID of the animal to retrieve.

Responses
200

The requested animal.

application/json
namestringRequired

The animal's name.

Example: Fluffy
categoryIdinteger · int64Required

The ID of the category this animal belongs to.

Example: 1
statusstring · enumOptionalPossible values:
idinteger · int64Required

Unique identifier assigned on creation.

Example: 1
get
/pets/{petId}

Last updated