> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tester.army/api-reference/tester-army-api/test-runs/llms.txt.
> For full documentation content, see https://docs.tester.army/api-reference/tester-army-api/test-runs/llms-full.txt.

# Get test run status

GET https://tester.army/v1/runs/{id}

Retrieve the current status and result of a test run. Poll this endpoint to check for completion.

Reference: https://docs.tester.army/api-reference/tester-army-api/test-runs/get-test-run-status

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: testerarmy
  version: 1.0.0
paths:
  /v1/runs/{id}:
    get:
      operationId: get-test-run-status
      summary: Get test run status
      description: >-
        Retrieve the current status and result of a test run. Poll this endpoint
        to check for completion.
      tags:
        - subpackage_testRuns
      parameters:
        - name: id
          in: path
          description: Test run ID
          required: true
          schema:
            type: string
            format: uuid
        - name: Authorization
          in: header
          description: API key authentication using Bearer token format
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Run details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
        '400':
          description: Bad Request - Invalid input parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTestRunStatusRequestBadRequestError'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTestRunStatusRequestUnauthorizedError'
        '404':
          description: Run not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTestRunStatusRequestNotFoundError'
        '429':
          description: Too Many Requests - Usage limit exceeded
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetTestRunStatusRequestTooManyRequestsError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetTestRunStatusRequestInternalServerError
        '504':
          description: Gateway Timeout - Test execution exceeded time limit
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetTestRunStatusRequestGatewayTimeoutError
servers:
  - url: https://tester.army
components:
  schemas:
    RunResponseType:
      type: string
      enum:
        - ci
        - test
      description: Run type
      title: RunResponseType
    RunResponseStatus:
      type: string
      enum:
        - queued
        - running
        - completed
        - failed
        - cancelled
      description: Current run status
      title: RunResponseStatus
    RunResponsePlatform:
      type: string
      enum:
        - web
        - ios
      description: Target platform
      title: RunResponsePlatform
    RunResponseSource:
      type: string
      enum:
        - api
        - github_action
        - github_app
        - scheduled
        - webhook
        - structured_test
      description: Run source
      title: RunResponseSource
    RunResponseOutputResult:
      type: string
      enum:
        - PASS
        - FAILED
      description: >-
        Test result - PASS if no issues found, FAILED if any issues were
        reported
      title: RunResponseOutputResult
    IssueType:
      type: string
      enum:
        - issue
        - warning
      default: issue
      description: issue = confirmed bug, warning = non-blocking observation
      title: IssueType
    Issue:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/IssueType'
          description: issue = confirmed bug, warning = non-blocking observation
        name:
          type: string
          description: Short name of the issue (e.g. 'Login form rejects valid email')
        description:
          type: string
          description: What was tested, what happened, and what was expected
        url:
          type: string
          format: uri
          description: URL where the issue happened
        severity:
          type: integer
          description: Issue severity from 1 (minor) to 5 (critical)
        reproductionSteps:
          type: array
          items:
            type: string
          description: Short reproduction steps in execution order
        expectedBehavior:
          type: string
          description: What should have happened
        actualBehavior:
          type: string
          description: What actually happened
        screenshotUrl:
          type: string
          description: Screenshot URL showing the issue
        tMs:
          type: integer
          description: >-
            Milliseconds elapsed since the recording reference time when the
            issue was reported
      required:
        - name
        - description
        - url
      title: Issue
    TestOutputStepType:
      type: string
      enum:
        - act
        - assert
        - login
        - files
        - screenshot
      title: TestOutputStepType
    TestOutputStepStatus:
      type: string
      enum:
        - passed
        - failed
      title: TestOutputStepStatus
    TestOutputStep:
      type: object
      properties:
        stepIndex:
          type: integer
        title:
          type: string
        type:
          $ref: '#/components/schemas/TestOutputStepType'
        status:
          $ref: '#/components/schemas/TestOutputStepStatus'
        summary:
          type: string
        error:
          type:
            - string
            - 'null'
        startedAtMs:
          type: integer
          description: Milliseconds elapsed since recording reference when the step started
        completedAtMs:
          type: integer
          description: >-
            Milliseconds elapsed since recording reference when the step
            completed
      required:
        - stepIndex
        - title
        - status
      title: TestOutputStep
    RunResponseOutput:
      type: object
      properties:
        featureName:
          type: string
          description: Name of the feature being tested
        result:
          $ref: '#/components/schemas/RunResponseOutputResult'
          description: >-
            Test result - PASS if no issues found, FAILED if any issues were
            reported
        description:
          type: string
          description: >-
            Short summary of what was tested and the final result; include a
            compact grouped issue summary only when the user explicitly asks for
            one
        issues:
          type: array
          items:
            $ref: '#/components/schemas/Issue'
          description: Issues reported during the session via the report_issue tool
        screenshots:
          type: array
          items:
            type: string
          description: Array of screenshot URLs captured during testing
        steps:
          type: array
          items:
            $ref: '#/components/schemas/TestOutputStep'
          description: Per-step summaries with timing information
      required:
        - featureName
        - result
        - description
        - screenshots
      description: Test result when completed
      title: RunResponseOutput
    RunResponseTestPlanComplexity:
      type: string
      enum:
        - simple
        - moderate
        - complex
      description: Estimated test complexity (affects timeout)
      title: RunResponseTestPlanComplexity
    RunResponseTestPlanChangeType:
      type: string
      enum:
        - frontend
        - backend
        - mixed
        - infra
      description: >-
        Classify this PR: frontend = UI/component changes, backend =
        API/DB/service changes with no visible UI effect, mixed = both, infra =
        CI/config/docs only
      title: RunResponseTestPlanChangeType
    RunResponseTestPlanStepsItemsOneOf0Type:
      type: string
      enum:
        - act
      description: Perform an action
      title: RunResponseTestPlanStepsItemsOneOf0Type
    RunResponseTestPlanStepsItems0:
      type: object
      properties:
        title:
          type: string
          description: Concise description of what to do or verify
        type:
          $ref: '#/components/schemas/RunResponseTestPlanStepsItemsOneOf0Type'
          description: Perform an action
      required:
        - title
        - type
      title: RunResponseTestPlanStepsItems0
    RunResponseTestPlanStepsItemsOneOf1Type:
      type: string
      enum:
        - assert
      description: Verify a condition
      title: RunResponseTestPlanStepsItemsOneOf1Type
    RunResponseTestPlanStepsItems1:
      type: object
      properties:
        title:
          type: string
          description: Concise description of what to do or verify
        type:
          $ref: '#/components/schemas/RunResponseTestPlanStepsItemsOneOf1Type'
          description: Verify a condition
      required:
        - title
        - type
      title: RunResponseTestPlanStepsItems1
    RunResponseTestPlanStepsItemsOneOf2Type:
      type: string
      enum:
        - login
      description: Authenticate using a credential
      title: RunResponseTestPlanStepsItemsOneOf2Type
    RunResponseTestPlanStepsItems2:
      type: object
      properties:
        title:
          type: string
          description: Concise description of the login step
        type:
          $ref: '#/components/schemas/RunResponseTestPlanStepsItemsOneOf2Type'
          description: Authenticate using a credential
        credentialId:
          type: string
          description: ID of the credential to use
        temporaryEmail:
          type: boolean
          description: Set to true to create a temporary email inbox at run time
      required:
        - title
        - type
      title: RunResponseTestPlanStepsItems2
    RunResponseTestPlanStepsItemsOneOf3Type:
      type: string
      enum:
        - screenshot
      description: Capture visual evidence of the current page state
      title: RunResponseTestPlanStepsItemsOneOf3Type
    RunResponseTestPlanStepsItems3:
      type: object
      properties:
        title:
          type: string
          description: Description of what page state to capture
        type:
          $ref: '#/components/schemas/RunResponseTestPlanStepsItemsOneOf3Type'
          description: Capture visual evidence of the current page state
      required:
        - title
        - type
      title: RunResponseTestPlanStepsItems3
    RunResponseTestPlanStepsItems:
      oneOf:
        - $ref: '#/components/schemas/RunResponseTestPlanStepsItems0'
        - $ref: '#/components/schemas/RunResponseTestPlanStepsItems1'
        - $ref: '#/components/schemas/RunResponseTestPlanStepsItems2'
        - $ref: '#/components/schemas/RunResponseTestPlanStepsItems3'
      title: RunResponseTestPlanStepsItems
    RunResponseTestPlan:
      type: object
      properties:
        instructions:
          type: string
          description: Natural language instructions for the QA agent
        focusAreas:
          type: array
          items:
            type: string
          description: Focus areas derived from changed files
        complexity:
          $ref: '#/components/schemas/RunResponseTestPlanComplexity'
          description: Estimated test complexity (affects timeout)
        changeType:
          $ref: '#/components/schemas/RunResponseTestPlanChangeType'
          description: >-
            Classify this PR: frontend = UI/component changes, backend =
            API/DB/service changes with no visible UI effect, mixed = both,
            infra = CI/config/docs only
        steps:
          type: array
          items:
            $ref: '#/components/schemas/RunResponseTestPlanStepsItems'
          description: >-
            Ordered list of concrete test steps the agent must execute
            one-by-one
      required:
        - instructions
        - focusAreas
        - complexity
        - changeType
        - steps
      description: Generated test plan (CI runs only)
      title: RunResponseTestPlan
    RunResponseError:
      type: object
      properties:
        code:
          type: string
          description: Error code
        message:
          type: string
          description: Human-readable error message
      required:
        - code
        - message
      description: Error details when failed
      title: RunResponseError
    RunResponseWebhookStatus:
      type: string
      enum:
        - pending
        - delivered
        - failed
      description: Webhook delivery status
      title: RunResponseWebhookStatus
    RunResponseExecutionMode:
      type: string
      enum:
        - fast
        - deep
      description: Execution mode used for this run
      title: RunResponseExecutionMode
    RunResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique run identifier
        type:
          $ref: '#/components/schemas/RunResponseType'
          description: Run type
        status:
          $ref: '#/components/schemas/RunResponseStatus'
          description: Current run status
        platform:
          oneOf:
            - $ref: '#/components/schemas/RunResponsePlatform'
            - type: 'null'
          description: Target platform
        source:
          oneOf:
            - $ref: '#/components/schemas/RunResponseSource'
            - type: 'null'
          description: Run source
        projectId:
          type:
            - string
            - 'null'
          format: uuid
          description: Linked project ID
        input:
          type: object
          additionalProperties:
            description: Any type
          description: Original request input
        output:
          oneOf:
            - $ref: '#/components/schemas/RunResponseOutput'
            - type: 'null'
          description: Test result when completed
        testPlan:
          oneOf:
            - $ref: '#/components/schemas/RunResponseTestPlan'
            - type: 'null'
          description: Generated test plan (CI runs only)
        error:
          oneOf:
            - $ref: '#/components/schemas/RunResponseError'
            - type: 'null'
          description: Error details when failed
        durationMs:
          type:
            - number
            - 'null'
          format: double
          description: Execution time in milliseconds
        webhookUrl:
          type:
            - string
            - 'null'
          format: uri
          description: Webhook delivery URL
        webhookStatus:
          oneOf:
            - $ref: '#/components/schemas/RunResponseWebhookStatus'
            - type: 'null'
          description: Webhook delivery status
        testId:
          type:
            - string
            - 'null'
          format: uuid
          description: Linked test ID
        stepResults:
          type:
            - array
            - 'null'
          items:
            type: object
            additionalProperties:
              description: Any type
          description: Step-level results for structured test runs
        userName:
          type:
            - string
            - 'null'
          description: Display name of the user who triggered the run
        externalRef:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
          description: External integration metadata (e.g. GitHub PR/deployment IDs)
        executionMode:
          oneOf:
            - $ref: '#/components/schemas/RunResponseExecutionMode'
            - type: 'null'
          description: Execution mode used for this run
        createdAt:
          type: string
          format: date-time
          description: When the run was created
        startedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When execution started
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When execution finished
      required:
        - id
        - type
        - status
        - input
        - createdAt
      title: RunResponse
    GetTestRunStatusRequestBadRequestError:
      type: object
      properties:
        error:
          type: string
          description: Error code or type
        message:
          type: string
          description: Human-readable error message
      required:
        - error
        - message
      title: GetTestRunStatusRequestBadRequestError
    GetTestRunStatusRequestUnauthorizedError:
      type: object
      properties:
        error:
          type: string
          description: Error code or type
        message:
          type: string
          description: Human-readable error message
      required:
        - error
        - message
      title: GetTestRunStatusRequestUnauthorizedError
    GetTestRunStatusRequestNotFoundError:
      type: object
      properties:
        error:
          type: string
          description: Error code or type
        message:
          type: string
          description: Human-readable error message
      required:
        - error
        - message
      title: GetTestRunStatusRequestNotFoundError
    GetTestRunStatusRequestTooManyRequestsError:
      type: object
      properties:
        error:
          type: string
          description: Error code or type
        message:
          type: string
          description: Human-readable error message
      required:
        - error
        - message
      title: GetTestRunStatusRequestTooManyRequestsError
    GetTestRunStatusRequestInternalServerError:
      type: object
      properties:
        error:
          type: string
          description: Error code or type
        message:
          type: string
          description: Human-readable error message
      required:
        - error
        - message
      title: GetTestRunStatusRequestInternalServerError
    GetTestRunStatusRequestGatewayTimeoutError:
      type: object
      properties:
        error:
          type: string
          description: Error code or type
        message:
          type: string
          description: Human-readable error message
      required:
        - error
        - message
      title: GetTestRunStatusRequestGatewayTimeoutError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication using Bearer token format

```

## SDK Code Examples

```python
import requests

url = "https://tester.army/v1/runs/id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://tester.army/v1/runs/id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://tester.army/v1/runs/id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://tester.army/v1/runs/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://tester.army/v1/runs/id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://tester.army/v1/runs/id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://tester.army/v1/runs/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://tester.army/v1/runs/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```