# /v4.0/* stops working

Calls to /v4.0/* on 1inch public Swap API stopped working on August 11, 2023.

On August 11, 2023, the 1inch public Swap API shut down version 4.0 endpoints. Requests targeting /v4.0/* now fail. The provider retired the public service at that time, requiring developers to adjust where and how they send requests.

## What to use instead

Call the Swap API on api.1inch.com, such as GET /swap/v6.1/{chain}/swap, using a bearer API key from 1inch Business. Moving to the newer endpoints requires choosing a plan from 1inch Business to obtain an API key.

The Swap API now needs an API key from 1inch Business, under its plans.

- API: 1inch public Swap API (api.1inch.io)
- Kind: Version retirement
- Takes effect: August 11, 2023
- Calls after that day: fail
- Calls it hits: `/v4.0/*`
- Source: [Announcement](https://1inch.com/blog/post/public-swap-api-to-be-discontinued-access-1inch-apis-via-the-1inch-developer-portal)
- Verified: October 26, 2026, against 1inch public Swap API's own pages
- Page: https://www.okapi.bot/providers/1inch-public-swap-api/breaking-changes/v4-0-stops-working/

## 1inch public Swap API's words

> As the public Swap API is set to be shut down on August 11, 2023, at 11:30 AM (CET), it is essential that all current users subscribe to the 1inch Developer Portal to ensure seamless access to this tool.

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