> For the complete documentation index, see [llms.txt](https://docs.cloud.hoverfly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloud.hoverfly.io/create-simulations/using-templating-in-simulations/transitioning-state-between-requests.md).

# Transitioning state between requests

Manage transitioning state between requests in Hoverfly Cloud simulations using templating for realistic API testing.

Hoverfly Cloud can utilise a state machine with variables that you set and form part of the matching of requests thus controlling how the simulation flows through states.

You can read about this approach in the Hoverfly documentation [here](https://docs.hoverfly.io/en/latest/pages/keyconcepts/state/state.html)
