---
title: "Trigger a test run"
method: POST
path: "/v1/tests/{testId}/runs"
tags: ["tests"]
---

# Trigger a test run

`POST /v1/tests/{testId}/runs`

Trigger a saved dashboard test remotely using API-key authentication. Returns the queued run ID.

## Path parameters

- `testId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `mode` 'fast' | 'deep'
  - `platform` 'web' | 'ios' | 'android' — Run platform for the test. Mobile tests default to ios when omitted, so Android runs must set platform: android — including when the mobile app is selected by appId.
  - `deviceModel` 'iphone' | 'ipad' — Mobile device variant within the run platform (iOS: iphone | ipad). Omit for the platform default phone-sized device; explicitly requesting the default (e.g. iphone) is equivalent to omitting it.
  - `appId` string, uuid
  - `projectEnvironmentId` string, uuid

## Response `202`

Test run queued successfully

- TestsTriggerATestRunResponse202
  - `status` 'queued', required
  - `runId` string, uuid, required
  - `testId` string, uuid, required

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `429` — Too Many Requests - Usage limit exceeded
- `500` — Internal Server Error
- `504` — Gateway Timeout - Test execution exceeded time limit

---

[API](https://skmtc.net/tester/apis/testerarmy-api.md) · [All operations](https://skmtc.net/tester/apis/testerarmy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tester/testerarmy-api/versions/7fd19ca2a7fc/schema)
