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
https://api.testyourappnow.com

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.
curl -X POST https://api.testyourappnow.com/test/health \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "action": "list" }'

Resources

The API is organized around five resources, grouped into Tests and Admin:
ResourceDescription
HealthManage and run HTTP health checks against your routes
VisualManage and run visual regression tests across devices
FlowList, run, inspect, delete, or schedule recorded browser flows
TransactionsList transactions belonging to the authenticated user
NotificationsList, add, or delete in-app notifications

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:
X-Credits-Remaining: 42
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:
{
  "success": false,
  "error": "unauthorized",
  "message": "API key is invalid or missing",
  "code": "unauthorized",
  "domain": "auth"
}
The following status codes are used across all endpoints:
HTTP StatusMeaning
400The request payload is invalid — check the schema for the action you sent
401The API key is missing, invalid, disabled, or expired
402Your available credits have been exhausted
403Your key is valid but lacks permission, or the target domain is unverified
404The referenced resource (route, flow, notification) was not found
409Resource is already scheduled or running
429API key rate limit exceeded — back off and retry
500Unexpected server error — contact support if it persists
503(Flow only) Replay could not be queued

Next Steps

Authentication

Generate an API key and authenticate your requests.

Flow

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