---
title: "Pause an A/B test"
method: POST
path: "/api/ab-tests/{id}/pause"
tags: ["A/B tests"]
---

# Pause an A/B test

`POST /api/ab-tests/{id}/pause`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/ab-tests/{id}/pause`
- Auth: API key in cookie `luca.session_token`

Stops assigning new leads and keeps the results so far. Only a running test can pause. Start it again later and it picks up where it left off.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- AbTest
  - `id` string, uuid, required
  - `coachId` string, uuid, required
  - `name` string, required
  - `description` string, nullable, required
  - `status` 'draft' | 'running' | 'paused' | 'completed' | 'archived', required
  - `testType` 'message_copy' | 'objection_strategy' | 'tone' | 'opening' | 'cta_type' | 'offer_presentation' | 'voice_vs_text' | 'sales_framework' | 'multi_stage', required
  - `variantA` object, required
    - `frameworkId` string
    - `objectionType` string
    - `strategy` string
  - `variantB` object, required
    - `frameworkId` string
    - `objectionType` string
    - `strategy` string
  - `trafficSplit` integer, required
  - `successMetric` 'call_booked' | 'lead_replied' | 'lead_qualified' | 'ghost_rate' | 'crm_deal_won', required
  - `minSampleSize` integer, required
  - `maxDurationDays` integer, required
  - `winner` 'a' | 'b' | 'none' | 'null', nullable, required
  - `startedAt` string, nullable, required
  - `completedAt` string, nullable, required
  - `createdAt` string, required
  - `updatedAt` string, required

## Other responses

- `401`: unauthorized
- `404`: not found
- `409`: conflict
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
