Find pet by ID

Find pet by ID

Returns a single pet

Path Parameters
  • petId
    required

    ID of pet to return

Responses
  • 200

    successful operation

  • 400

    Invalid ID supplied

  • 404

    Pet not found

GET/pet/{petId}
curl https://petstore.swagger.io/v2/pet/ \
  --header 'Api_key: YOUR_SECRET_TOKEN'
{
  "id": 1,
  "category": {
    "id": 1,
    "name": "…"
  },
  "name": "doggie",
  "photoUrls": [
    "…"
  ],
  "tags": [
    {
      "id": 1,
      "name": "…"
    }
  ],
  "status": "available"
}