# GET /ab-tests/:test_id

**Resource:** [AB_TESTS](./ab-tests.md)  
**MCP tool:** `get_ab_test`  
**Scopes:** `ab-tests:read`  
**Write operation:** no

One A/B test with its settings, its versions (and what each one says) and its current results. A website or page test (unit visitor) also returns website_snippet: the script tag and marked elements to paste on the page, which picks each visitor's version with no login and no flicker.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `test_id` | path | string | yes | The A/B test id. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/ab-tests/:test_id"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`