How can I configure the interceptors' execution order?

The execution of interceptors follows the order they appear in the incoming and outgoing flows. For incoming requests (from client to server), the execution order is from left to right. For responses (from server to client), the execution order is from right to left.

This order is set during the configuration of the flows and can be easily edited.

To edit the order of interceptors in a flow:

  1. Access the API card;

  2. On the Your API Overview screen, go to the Flows section;

  3. Click EDIT;

  4. Drag and drop the interceptor to the desired position, as shown in the example below.

In the illustration below, we moved the IP Filtering interceptor before the OAuth interceptor.

This optimizes the process so that only requests that pass through IP filtering will have their credentials validated. In the previous configuration, all requests would undergo validation before being filtered by IP.

Animation showing drag and drop of interceptors in a flow to change the order
Editing the order of interceptors

If you are unable to change the order of the interceptors, check if there is another flow from which it originated. Interceptors inherited from another flow appear in gray and cannot be edited.

  • Refer to the documentation on Inheritance of flows.

  • Some interceptors can only be added to the incoming or outgoing flow.

  • You can check the execution order of interceptors in an already made call on the following pages:

Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]