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

0x Gasless API

Gasless API endpoints

0x Gasless API is one of 5 APIs that 0x publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Gasless. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and code examples.

This API exposes 6 operations across 6 paths, and defines 25 schemas. It is described by OpenAPI 3.0.3, at version v2.

Requests are made against a single base URL, https://api.0x.org.

6 operations 6 paths 25 schemas 5 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v2
Base URL
https://api.0x.org
Authentication
API Key
Resource Areas
1

Authentication & Security 1

0x Gasless API declares 1 security scheme for authenticating requests. An API key is passed in the header as 0x-api-key (ApiKeyAuth).

Paths & Operations 6

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

Gasless 6

Gasless API endpoints

GET
/gasless/price
Get Gasless Price
gasless::getPrice 16 params → 200400403422500
GET
/gasless/quote
Get Gasless Quote
gasless::getQuote 16 params → 200400403422500
POST
/gasless/submit
Submit Gasless Trade
gasless::submit 2 params body → 200400500
GET
/gasless/status/{tradeHash}
Get Gasless Trade Status
gasless::getStatus 4 params → 200400404500
GET
/gasless/gasless-approval-tokens
Get Gasless Approval Tokens
gasless::getGaslessApprovalTokens 3 params → 200400500
GET
/gasless/chains
Get Supported Chains
gasless::chains 2 params → 200500

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are INVALID_SIGNER (3 properties), SELL_AMOUNT_TOO_SMALL (3 properties), SMART_WALLET_NOT_SUPPORTED (3 properties), INSUFFICIENT_BALANCE (3 properties). Each schema is shown below with its type and property counts.

INVALID_SIGNER
object
3 properties 3 required
BUY_TOKEN_NOT_AUTHORIZED_FOR_TRADE
object
3 properties 3 required
SWAP_VALIDATION_FAILED
object
3 properties 3 required
TOKEN_NOT_SUPPORTED
object
3 properties 3 required
INSUFFICIENT_BALANCE_OR_ALLOWANCE
object
3 properties 3 required
TOKEN_PAIR_NOT_SUPPORTED
object
3 properties 3 required
USER_NOT_AUTHORIZED
object
3 properties 3 required
META_TRANSACTION_STATUS_NOT_FOUND
object
3 properties 3 required
SELL_TOKEN_NOT_AUTHORIZED_FOR_TRADE
object
3 properties 3 required
PENDING_TRADES_ALREADY_EXIST
object
3 properties 3 required
XSTOCKS_NOT_AUTHORIZED
object
3 properties 3 required
INVALID_SIGNATURE
object
3 properties 3 required
UNABLE_TO_CALCULATE_GAS_FEE
object
3 properties 3 required
INPUT_INVALID
object
3 properties 3 required
TAKER_NOT_AUTHORIZED_FOR_TRADE
object
3 properties 3 required
META_TRANSACTION_EXPIRY_TOO_SOON
object
3 properties 3 required
META_TRANSACTION_INVALID
object
3 properties 3 required
UNCATEGORIZED
object
3 properties 3 required
RECIPIENT_NOT_AUTHORIZED_FOR_TRADE
object
3 properties 3 required
TRADE_ALREADY_SUBMITTED
object
3 properties 3 required
RECIPIENT_NOT_SUPPORTED
object
3 properties 3 required
INSUFFICIENT_BALANCE
object
3 properties 3 required
SMART_WALLET_NOT_SUPPORTED
object
3 properties 3 required
SELL_AMOUNT_TOO_SMALL
object
3 properties 3 required
INTERNAL_SERVER_ERROR
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

0x-gasless-api-openapi.yml Raw ↑

Other APIs 0x publishes across the network.

0x Cross-Chain API
0x Sources API
0x Swap API
0x Trade Analytics API