GET
/pet/{petId}Get a pet by ID
Retrieves a single pet from the store by its identifier. Use petId to select the pet record to retrieve. The response includes the pet's available details, such as its name, photo URLs, category, tags, and status.
petIdintegerrequired
The int64 integer identifier of the pet to retrieve.
200Returns the pet object, including its identifier, name, photo URLs, category, tags, and status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when the supplied pet ID is invalid.
404Returned when no pet is found for the supplied ID.
defaultUnexpected error
Error handling
A 400 is returned when the supplied pet ID is invalid, and a 404 is returned when the pet is not found. The petId path parameter must be an integer in the int64 format.