Getting Started

This guide will get you all set up and ready to use the Aori API. We'll cover how to get started using one of our SDK's and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of the Execution API.

Introduction

URL's
https://api.aori.ioHTTP API to be able to execute intents.
wss://api.aori.ioWebSocket API for real time event streaming.
EndpointsMethodDescription
/quotePOST Request a price quote for cross-chain swaps
/swapPOSTSubmit a signed swap order for execution
/chainsGETGet information about supported blockchain networks
/data/queryGETQuery historical orders with filtering and pagination
/data/statusGETGet current status and execution details of an order
/data/detailsGETGet comprehensive order details with event history
/streamWebsocketReal-time WebSocket stream for order events

Choosing your Client

Before making your first API request, you need to pick which API client you will use.

# Install the TypeScript SDK
npm install @aori-io/aori-ts --save

The recommended way to interact with the Aori API is by using one of our SDKs. Today, Aori offers fine-tuned Typescript and Rust libraries to make your integration as easy as possible and give you the best experience when interacting with Aori.


API Key Authentication

While the Aori API doesn't require authentication for basic usage, we recommend obtaining an API key from the Aori Developer Portal for enhanced tracking and analytics.

Using API Keys

const apiKey = process.env.AORI_API_KEY;

// Include API key in any request
const quote = await getQuote(quoteRequest, 'https://api.aori.io', apiKey);
const swap = await submitSwap(swapRequest, 'https://api.aori.io', apiKey);

Making your first API request

After picking your preferred client, you are ready to make your first call to Aori. Let's start by checking the API health status.

Check Connectivity

curl https://api.aori.io/health

Response

{
  "status": "ok"
}

What's next?

Great, now you're set up with the Aori SDK and have made your first request. Here's concepts to explore next to build powerful cross-chain applications:

Quotes

Request pricing for cross-chain swaps with real-time market data. Quotes include all necessary parameters for order creation.

Learn more about quotes →

Swaps

Submit signed orders to execute cross-chain swaps. Swaps are atomic operations with guaranteed settlement or refund.

Learn more about swaps →

Orders

Work with order structures and lifecycle management. Track orders from creation through completion.

Learn more about orders →

Status Tracking

Monitor order execution in real-time with status updates and transaction hashes for both source and destination chains.

Learn more about status tracking →

Signatures

Cryptographically sign orders using your private key or wallet to authorize cross-chain swaps securely.

Learn more about signatures →

WebSocket Streaming

Monitor order events in real-time with WebSocket connections and event subscriptions for live updates.

Learn more about WebSocket streaming →

Data & Querying

Query historical orders with advanced filtering and pagination for analytics and order management.

Learn more about data querying →

Supported Chains

Learn about supported blockchain networks, chain identifiers, and contract addresses.

Learn more about supported chains →