Skip to main content
You can call the TYAN API from any CI/CD pipeline to run your flows as a deployment gate — automatically verifying that critical app journeys still work before every release ships to users. If a flow fails, the pipeline exits with a non-zero code and blocks the deploy.

Prerequisites

Grab your API key from Settings → API Keys in your TYAN workspace, then store it as a secret in your CI environment (TYAN_API_KEY). You’ll also need your flow’s ID (FLOW_ID), visible on the flow detail page.

GitHub Actions

Add the following job to your workflow file. It triggers a flow run, then polls the result every five seconds for up to one minute — passing or failing the job based on the outcome.
Store TYAN_API_KEY and FLOW_ID under Settings → Secrets and variables → Actions in your GitHub repository.

GitLab CI

Add a verify-flows job to your .gitlab-ci.yml. Set TYAN_API_KEY and FLOW_ID as CI/CD variables under Settings → CI/CD → Variables in your GitLab project.

Other CI Providers

The examples above use plain curl and jq, so the same pattern works in any CI environment — CircleCI, Bitbucket Pipelines, Jenkins, or a plain shell script. Inject TYAN_API_KEY and FLOW_ID as environment variables and paste in the poll loop.
Run a whole group of related flows at once by tagging them in TYAN (for example, checkout or onboarding) and passing the ?tag= query parameter to the run endpoint. This lets a single CI step verify every flow in a feature area without listing individual flow IDs.
See the Flows API reference for the full list of request parameters, response fields, and supported status values.