---
title: "Get batch execution"
method: GET
path: "/v2/batch-executions/{executionId}"
tags: ["Batch Executions"]
---

# Get batch execution

`GET /v2/batch-executions/{executionId}`

## Request

- Base URL: `https://app.aiva.works` (the document declares no server; this is the origin it was published from)
- URL: `https://app.aiva.works/v2/batch-executions/{executionId}`
- Auth: API key in header `X-API-KEY`

Returns one batch execution with its status and test counts. Its test runs are listed by GET /v2/test-runs?batchExecutionId={executionId}.

## Path parameters

- `executionId` string, guid, required

## Response `200`

Batch execution summary

- BatchExecutionSummary
  - `id` string, guid, required
  - `batchId` string, guid, nullable
  - `name` string, nullable
  - `status` 'Enqueued' | 'Running' | 'Succeeded' | 'Failed' | 'Cancelled' | 'Skipped' | 'Completed', required
  - `enqueuedAt` string, date-time, required
  - `finishedAt` string, date-time, nullable
  - `triggerSource` 'UI' | 'Api' | 'Scheduled'
  - `passed` integer, required
  - `failed` integer, required
  - `total` integer, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: User does not have permission to access batches
- `404`: Batch execution with given ID not found
- `500`: Server Error

---

[API](https://skmtc.dev/aiva/apis/aiva-cloud-api.md) · [All operations](https://skmtc.dev/aiva/apis/aiva-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aiva/apis/aiva-cloud-api/revisions/70eef14d3bcd?raw)
