Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

1inch Swap API

The Swap API from 1inch — 8 operation(s) for swap.

1inch Swap API is one of 14 APIs that 1inch publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Swap. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 8 operations across 8 paths. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.1inch.dev.

8 operations 8 paths 0 schemas 8 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.1inch.dev/swap/v6.0
Authentication
HTTP Bearer
Contact
Resource Areas
1

Authentication & Security 1

1inch Swap API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). By default, every request must be authenticated.

  • BearerAuth — API key issued from https://portal.1inch.dev passed as Authorization: Bearer .

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 8 GET. Each is listed below with its method, path, parameters, and response codes.

Swap 8
GET
/swap/v6.0/{chain}/healthcheck
Swap API health check
1 param → 200
GET
/swap/v6.0/{chain}/quote
Get a swap quote
7 params → 200
GET
/swap/v6.0/{chain}/swap
Build a swap transaction
8 params → 200
GET
/swap/v6.0/{chain}/approve/spender
Get aggregator spender address
1 param → 200
GET
/swap/v6.0/{chain}/approve/transaction
Build an approve transaction
3 params → 200
GET
/swap/v6.0/{chain}/approve/allowance
Get current token allowance
3 params → 200
GET
/swap/v6.0/{chain}/liquidity-sources
List supported liquidity sources (protocols)
1 param → 200
GET
/swap/v6.0/{chain}/tokens
List supported tokens for swapping
1 param → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

one-inch-swap-api-openapi.yml Raw ↑

Other APIs 1inch publishes across the network.

1inch Swap API
1inch Orderbook API
1inch Balance API
1inch Spot Price API
1inch Token API
1inch Portfolio API
1inch Gas Price API
1inch Balance API
1inch GasPrice API
1inch Orderbook API
1inch Portfolio API
1inch SpotPrice API