0x Swap API is one of 5 APIs that 0x 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, API documentation, and code examples.
This API exposes 5 operations across 5 paths, and defines 12 schemas. It is described by OpenAPI 3.0.3, at version v2.
Requests are made against a single base URL, https://api.0x.org.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
0x Swap API declares
1 security scheme
for authenticating requests.
An API key is passed in the header as 0x-api-key (ApiKeyAuth).
Paths & Operations 5
Across 5 paths, the API surfaces 5 operations — 5 GET. Each is listed below with its method, path, parameters, and response codes.
Swap API endpoints
Schemas 12
The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are SELL_TOKEN_NOT_AUTHORIZED_FOR_TRADE (3 properties), RECIPIENT_NOT_SUPPORTED (3 properties), TAKER_NOT_AUTHORIZED_FOR_TRADE (3 properties), USER_NOT_AUTHORIZED (3 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from 0x 4
Other APIs 0x publishes across the network.