Skip to content

Introduction

The Petstore API is a REST API that can be used to manage pets, store orders, and user-related operations in the Petstore application.

The APIs covered in this guide allow developers to perform common operations such as creating pet records, retrieving existing details, updating resource information, and deleting records when they are no longer required.

This documentation is intended to help developers understand the available endpoints, request formats, response structures, and expected status codes before integrating the APIs into an application or test environment.

All endpoints use standard HTTP methods such as GET, POST, PUT, and DELETE. Request and response data is exchanged in JSON format.

What You Can Do with the API

Using the Petstore API, developers can:

  • Add and manage pet details
  • Retrieve pet information using IDs
  • Place and track store orders
  • Create and manage user accounts
  • Update existing resources
  • Delete records from the system

Intended Audience

This guide is mainly intended for:

  • Application developers
  • Backend integration teams
  • QA engineers
  • API testers

Basic knowledge of REST APIs and JSON requests is recommended.

Base URL

Use the following base URL while accessing the APIs:

https://petstore.swagger.io/v2

Supported Methods

Method Purpose
GET Retrieve data
POST Create data
PUT Update data
DELETE Remove data

Data Format

Unless specified otherwise, the API uses JSON for both request and response payloads.

Content-Type: application/json

This version of the documentation is based on version 2 of the Swagger Petstore API.