Introduction to the Pet Store API
This document provides an API reference for a sample Pet Store server. These requests help developers call the Pet Store server. Use them to send or request data about pets and orders in the system.
With the Pet Store API, a developer can:
- Add a new pet, find a pet by ID, update an existing pet, or delete a pet.
- Update a pet with form data.
- Upload an image for a pet.
- Find pets by status or tags.
- Get pet inventories categorized by status.
- Place an order for a pet.
- Find a purchase order by ID.
- Delete a purchase order.
- Create a user or create a list of users.
- Log a user into and out of the system.
- Get a user by username, update user information, or delete a user.
These examples use a sample pet named Krypto with ID 210.
Connection prerequisites
The base URL of all API requests is https://petstore3.swagger.io/api/v3.
Authentication
To authenticate your connection to the Petstore API, use OAuth 2.0 or an assigned API key. To request a key, email budbaker@bhavenpets.com.
danger
For security purposes, don't share API keys with other users. If you suspect a security breach, contact an administrator immediately. An administrator can revoke the old key and issue a new one.