Your tests can now start on every deployment and report the result back. The pipeline API starts a batch of tests from any CI system, and your pipeline can fail when a test fails. Authenticate with a project API token, which you create in the project settings, and name the environment to run against. Pass tags to run only part of the suite.
Read the docs: Batches API reference