---
title: "Returns an A/B test"
method: GET
path: "/abtest/{id}"
tags: ["A/B testing"]
---

# Returns an A/B test

`GET /abtest/{id}`

## Request

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

## Path parameters

- `id` integer, required

## Response `200`

OK

- AbTestApiModel: Detailed A/B test model.
  - `Id` integer: The unique identifier of the A/B test.
  - `Name` string: The name of the A/B test.
  - `StartDate` string, date-time: The start date of the A/B test.
  - `EndDate` string, date-time: The end date of the A/B test.
  - `Type` 'PersonalMerchandising' | 'FilterTemplate' | 'SortingTemplate'
  - `Status` 'Upcoming' | 'Active' | 'Evaluate' | 'Completed' | 'Archived'
  - `Variants` AbTestVariantApiModel[], nullable: The variants of the A/B test.
    - `Variant` 'A' | 'B'
    - `PersonalMerchandisingId` integer, nullable: The personal merchandising ID associated with this variant.
    - `FilterTemplateId` integer, nullable: The filter template ID associated with this variant.
    - `SortingTemplateId` integer, nullable: The sorting template ID associated with this variant.
    - `NameArchived` string, nullable: The name preserved when the linked item is deleted.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[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)
