---
updatedAt: 2026-06-09T11:44:04.000Z
agentTools:
  projectIndex: https://docs.tweakwise.com/llms.txt
---

# Get A/B test

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "Tweakwise Backend API"
  },
  "paths": {
    "/abtest/{id}": {
      "get": {
        "tags": [
          "A/B testing"
        ],
        "summary": "Get A/B test",
        "operationId": "AbTest_GetAbTest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbTestApiModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbTestApiModel"
                }
              }
            }
          },
          "404": {
            "description": "A/B test not found"
          }
        },
        "security": [
          {
            "apiKeyDefinition": [],
            "instanceKeyDefinition": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://navigator-api.tweakwise.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyDefinition": {
        "type": "apiKey",
        "description": "API Key Authentication",
        "name": "TWN-Authentication",
        "in": "header"
      },
      "instanceKeyDefinition": {
        "type": "apiKey",
        "description": "Instance key",
        "name": "TWN-InstanceKey",
        "in": "header"
      }
    },
    "schemas": {
      "AbTestApiModel": {
        "description": "A/B test",
        "type": "object",
        "properties": {
          "Id": {
            "format": "int64",
            "description": "A/B test ID",
            "type": "integer"
          },
          "Name": {
            "description": "A/B test name",
            "type": "string"
          },
          "StartDate": {
            "format": "date-time",
            "description": "A/B test start date",
            "type": "string"
          },
          "EndDate": {
            "format": "date-time",
            "description": "A/B test end date",
            "type": "string"
          },
          "Type": {
            "description": "A/B test type",
            "enum": [
              "PersonalMerchandising",
              "FilterTemplate",
              "SortingTemplate"
            ],
            "type": "string"
          },
          "Status": {
            "description": "A/B test status (calculated based on dates and archived state)",
            "enum": [
              "Upcoming",
              "Active",
              "Evaluate",
              "Completed",
              "Archived"
            ],
            "type": "string"
          },
          "Variants": {
            "description": "A/B test variants",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbTestVariantApiModel"
            }
          }
        }
      },
      "AbTestVariantApiModel": {
        "description": "A/B test variant.",
        "type": "object",
        "properties": {
          "Variant": {
            "description": "A/B test variant key.",
            "enum": [
              "A",
              "B"
            ],
            "type": "string"
          },
          "PersonalMerchandisingId": {
            "format": "int32",
            "description": "Personal merchandising ID.",
            "type": "integer"
          },
          "FilterTemplateId": {
            "format": "int64",
            "description": "Filter template ID.",
            "type": "integer"
          },
          "SortingTemplateId": {
            "format": "int64",
            "description": "Sorting template ID.",
            "type": "integer"
          },
          "NameArchived": {
            "description": "Name in case the test variant is deleted.",
            "type": "string"
          }
        }
      }
    }
  }
}
```