DocumentationRequest Chaining (Rules)

Request Chaining (Rules)

Use Rules to automatically extract data from one response and use it in another.

Rules Screenshot

How it works

Rules run automatically after a request completes. You can define rules to parse JSON, extract headers, or match Regex patterns.

Example: Extracting a JWT Token

  1. Send a login request.
  2. Go to the Rules tab for that request.
  3. Add a new rule:
    • Source: JSON Body
    • Path: $.token
    • Target: jwt_token
  4. Now, any other request can use {{jwt_token}} in its Headers to authenticate!