# POST /2/abtests is deprecated

Algolia Analytics API deprecated POST /2/abtests without giving a shutdown date yet.

Algolia has deprecated the POST /2/abtests endpoint without a shutdown date. This deprecation affects callers sending requests to POST /2/abtests, which will eventually fail. Algolia Analytics API notes that the endpoint is deprecated and instructs callers to use the newer version.

## What to use instead

Use the A/B Testing API v3 instead by switching your requests to POST /3/abtests.

- API: Algolia Analytics API (analytics.algolia.com)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /2/abtests`
- Source: [Announcement](https://raw.githubusercontent.com/algolia/api-clients-automation/main/specs/bundled/abtesting.yml)
- Verified: November 6, 2026, against Algolia Analytics API's own pages
- Page: https://www.okapi.bot/providers/algolia-analytics-api/breaking-changes/post-2-abtests-is-deprecated/

## Algolia Analytics API's words

> This endpoint is deprecated. Use the A/B Testing API v3 instead.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
