GET
/pet/{petId}Get a pet by ID
Retrieves a single pet from the store by its identifier. Supply the petId path parameter to identify the pet. The response contains the pet's details, including its name, photo URLs, status, category, and tags.
petIdintegerrequired
The int64 identifier of the pet to retrieve.
200Returns the pet object, including its identifier, name, photo URLs, status, category, and tags.
categoryobjectoptional
idintegeroptional
namestringrequired
photoUrlsarray<string>required
statusstringoptional
pet status in the store
tagsarray<object>optional
400Returned when the supplied pet identifier is invalid.
404Returned when the pet is not found.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when petId is invalid, and a 404 is returned when the pet is not found. The petId path parameter must be an int64 pet identifier.