GET
/pet/{petId}Get a pet by ID
Retrieves one pet from the store by its identifier. Supply petId as the integer ID of the pet to retrieve. Returns the matching pet and its store details.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
petIdintegerrequired
The integer identifier of the pet to retrieve.
200Returns the pet object, including its identifier, name, category, image 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 integer identifier. A 404 is returned when no pet exists with the supplied petId.