Skip to main content Skip to complementary content

Defining your API security

Define security schemes for your API, resources, and operations.

Procedure

  1. Click the name of your API to go to the general information.
  2. Add your security schemes and select the ones that you want to apply globally to your API version.
    In this example, the Petstore API is secured by petstore_auth with the scope write:pets.
  3. Click Save.
  4. Select a resource and choose the security schemes your want to apply to all of your resource's operations.
    Alternatively, you can select an operation to define its specific security.
    In this example, the Find Pets by tags method is secured using petstore_auth.
  5. Click Save.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!