---
title: "Returns all A/B tests"
method: GET
path: "/abtest"
tags: ["A/B testing"]
---

# Returns all A/B tests

`GET /abtest`

## Request

- The document declares no server URL.
- Auth: API key in header `TWN-InstanceKey` and API key in header `TWN-Authentication`

## Query parameters

- `limit` integer
- `offset` integer
- `searchTerm` string
- `type` AbTestTypeApiModel[]
- `status` AbTestStatusApiModel[]

## Response `200`

OK

- AbTestSummaryApiModels: Paginated collection of AB test summaries.
  - `Total` integer, nullable, required: The total number of records which can be retrieved. Note that this field is not available for all paginated endpoints.
  - `Records` AbTestSummaryApiModel[], required: The retrieved records.
    - `Id` integer: The unique identifier of the AB test.
    - `Name` string: The name of the AB test.
    - `StartDate` string, date-time, nullable: The start date of the AB test.
    - `EndDate` string, date-time, nullable: The end date of the AB test.
    - `Type` 'PersonalMerchandising' | 'FilterTemplate' | 'SortingTemplate'
    - `Status` 'Upcoming' | 'Active' | 'Evaluate' | 'Completed' | 'Archived'

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/tweakwise/apis/app-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/app-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/app-api/revisions/dc936bf76941?raw)
