Theme switcher

Find pet by ID

Header Parameters

api_keystring

API key provided in the request header to authenticate the client

Path Parameters

petIdinteger Required

ID of the pet to retrieve from the store

Response

200
Object

successful operation

Response Attributes

idinteger

Unique identifier for the pet

namestring Required

Name of the pet

categoryobject

Object containing the pet's category information, including id and name

Show child attributes

photoUrlsarray Required

Array of URLs pointing to images of the pet

Show child attributes

tagsarray

Array of tag objects associated with the pet for additional metadata

Show child attributes

statusstring

Current status of the pet in the store (e.g., available, pending, sold)

400
Object

Invalid ID supplied

404
Object

Pet not found

Was this section helpful?

GET

/

Select
1

Response

Was this section helpful?