GET
/pet/{petId}Retrieve a pet by ID
Retrieves a single pet by its identifier. Returns the complete pet object including name, category, photo URLs, tags, and current status. Use this endpoint to fetch details for a specific pet.
petIdintegerrequired
The unique identifier of the pet to retrieve.
200Returns the pet object with its identifier, name, category, photo URLs, tags, and status.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when `petId` is not a valid integer.
404Returned when no pet exists with the given `petId`.
defaultUnexpected error
Error handling
A 404 is returned if no pet exists with the given petId. petId must be a valid integer — non-numeric values return a 400.