Qodex automatically detects when one API call depends on the response from a previous one — and builds that chaining logic for you.

How it works

When you describe a flow in plain English (e.g., “Log in and fetch user profile”), the AI:

  • Understands dependencies between endpoints
  • Extracts response values (like user_id, token, etc.)
  • Passes them into the next API call using context-aware variables

No extra setup required.

For example, if the login API returns a token, the AI will insert that token into the headers of the next authenticated request automatically:

"Authorization": "Bearer {{steps.0.response.body.token}}"

This chaining works across:

  • Request bodies
  • Headers
  • URL params
  • Query strings

You don’t configure it — the AI does

The agent reads the API response structure and recognizes what needs to be reused, even across nested or multi-step flows.

This means you can test real user journeys (e.g., sign up → verify → login → fetch dashboard) without writing a single line of glue logic.