# API version v2 stops working

Calls to /api/v2/* on Klaviyo API stopped working on July 1, 2024.

On July 1, 2024, API version v2 was retired across all /api/v2/* endpoints. Calls made to these endpoints after that day fail, returning a 410 GONE error code.

## What to use instead

Move to the date-versioned APIs, such as GET /api/lists and POST /api/profile-subscription-bulk-create-jobs, and include a revision header as outlined in the API comparison chart.

- API: Klaviyo API (a.klaviyo.com)
- Kind: Version retirement
- Takes effect: July 1, 2024
- Calls after that day: fail
- Calls it hits: `/api/v2/*`
- Source: [Announcement](https://developers.klaviyo.com/en/v2024-10-15/docs/migration_faq_v1v2_api_retirement)
- Verified: November 6, 2026, against Klaviyo API's own pages
- Page: https://www.okapi.bot/providers/klaviyo-api/breaking-changes/api-version-v2-stops-working/

## Klaviyo API's words

> v1/v2 API calls made on July 1, 2024 will return a 410 GONE error code.

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