Swagger Petstore
1.0.0

Single example of Petstore API, with both endpoints and webhooks. Operations and webhooks are grouped by path.

This is the documentation for version 1.0.0 of the API. Last update on Feb 24, 2021.

This API is provided under license MIT.

Base URL
http://petstore.swagger.io/v1

Create a pet

POST /pets

Responses

  • 201

    Null response

  • unexpected error

    Hide response attributes Show response attributes object
POST /pets
curl \
 -X POST http://petstore.swagger.io/v1/pets
Response examples (default)
{
  "code": 42,
  "message": "string"
}