Authentication

The API accepts 2 different authentication methods:

petstore_auth (oauth2)

Retrieve an Access Token with the OAuth 2.0 flows described below before accessing the API. Once you have an access token, send it in the Authorization HTTP header to authenticate with the API.

Flow type implicit
Authorization URL https://petstore.swagger.io/oauth/authorize
Scopes
  • read:pets: read your pets
  • write:pets: modify pets in your account

Api key (http_api_key)

Send an authentication token in the api_key header to authenticate with the API.