Skip to main content
The Test Your App Now! (TYAN) REST API gives you full programmatic control over your health checks, visual tests, and recorded flows. All requests are made over HTTPS to the base URL below, all bodies are JSON, and every request must include a Bearer token API key in the Authorization header. Every successful response includes an X-Credits-Remaining header so you can track credit usage in real time.
Base URL

Request Shape

Every endpoint in the API uses POST and follows the same envelope: a JSON body with an action field that selects the operation, and (for most actions) a data object with parameters. This keeps a single URL per resource while exposing multiple operations.

Resources

The API is organized around five resources, grouped into Tests and Admin:

Credits

Actions that trigger work (running a health check, running a visual test, replaying a flow, scheduling any of the above) consume credits. Every successful response returns:
If your account has run out of credits, the API returns 402 Payment Required.

Error Handling

When a request fails, the API returns a consistent JSON error object with success: false and machine-readable fields:
The following status codes are used across all endpoints:

Next Steps

Authentication

Generate an API key and authenticate your requests.

Flow

List, run, and schedule recorded flows via the API.