GET
/pet/{petId}Get a pet by ID
Retrieves one pet from the store by its numeric identifier. Use petId to select the pet you want to retrieve. The response contains the pet's identity, category, images, tags, and store status.
petIdintegerrequired
The numeric identifier of the pet to retrieve.
200Returns the pet object identified by `petId`, including its name, category, photo URLs, tags, and store status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when `petId` is invalid.
404Returned when no pet exists with the supplied `petId`.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when petId is not a valid numeric identifier. A 404 is returned when no pet exists with the supplied petId.