> For a complete index of Agora Finance documentation, fetch https://docs.agora.finance/llms.txt

# Create Quotes

POST https://api.agora.finance/v0/quotes
Content-Type: application/json

Quote a conversion between AUSD and USDC or USDT on one chain, in either direction. Requesting a quote moves no funds: it returns the provider's price and the `executionSteps` your user's wallet signs to accept it. The deposit must land onchain by the quote's `expiresAt`, 180 seconds after it's priced. `quotes` holds one quote per provider that can fill the request, so compare `fees` and `executionSteps` before picking one.Send exactly one of `senderAmount` or `receiverAmount`; the other side comes back computed on the quote. One side must be AUSD, both sides must be on the same chain, and USDT is offered on Ethereum only (see [Support](/api/guides/convert-stablecoins/overview#support)).We screen both wallets before quoting, and a request that fails for any reason stores nothing:- `400 chain_unsupported`: `sender` and `receiver` are on different chains.
- `400 currency_unsupported`: the pair doesn't have AUSD on exactly one side, or the chain doesn't offer the currency (USDT on Monad).
- `403 wallet_blocked`: the sender or receiver wallet failed screening.
- `503 service_unavailable`: no provider can quote right now. Retry later with a new request.Next, follow [Executing a quote](/api/endpoints/quotes/overview#executing-a-quote) to run `executionSteps`, then poll `transactionId` through [`GET /v0/transactions/{txnId}`](/api/endpoints/transactions/getbyid) as described in [Tracking execution](/api/guides/convert-stablecoins/overview#tracking-execution). [Fees](/api/endpoints/quotes/overview#fees) explains the `fees` breakdown.Legal noticeThe Via API, including the /v0/quotes and /v0/transactions endpoints, is offered solely by Agora Blue Limited, a business company incorporated in the British Virgin Islands. The Via API is not offered by any other Agora entity.By integrating the Via API and using the Services, you confirm that you have read and agree to the Agora Blue Via API Terms of Use. Your continued use of the Services constitutes your acceptance of such terms. If you do not agree with any such terms, your sole and exclusive remedy is to terminate your use of the Services.Availability is subject to certain terms and conditions. Restrictions may apply.

Reference: https://docs.agora.finance/api/endpoints/quotes/create

## Authentication

- `Authorization` header (bearer token, required) — Session JWT from `POST /v0/auth/token`, sent as `Authorization: Bearer <sessionJwt>`. See [Authentication](/api/authentication) for more details.

## Request

### Body (application/json)

This endpoint expects an object.

- `sender` (V0QuotesPostRequestBodyContentApplicationJsonSchemaSender, required)
- `receiver` (V0QuotesPostRequestBodyContentApplicationJsonSchemaReceiver, required)
- `senderAmount` (string, optional) — Fixes the input side. Provide exactly one of `senderAmount` or `receiverAmount`; the other is computed on the quote.
- `receiverAmount` (string, optional) — Fixes the output side. Provide exactly one of `senderAmount` or `receiverAmount`; the other is computed on the quote.
- `slippageBps` (integer, optional) — Basis points of allowed slippage from the quoted rate. Default and cap are set per chain; values above the cap are clamped rather than rejected. The effective value is echoed on the quote.

## Response

### 201

OK

- `quotes` (list of V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItems, required) — One element per provider that returned a route. Never empty on success.

## Errors

### 400 Bad Request Error

- `chain_unsupported`: The requested chain is not supported. - `currency_unsupported`: The requested currency is not supported. - `parameter_invalid`: One or more request parameters are invalid.

- `code` (enum, required)
  - Allowed values: `chain_unsupported`, `currency_unsupported`, `parameter_invalid`
- `docs_url` (string, required)
- `message` (string, required)
- `context` (ErrorResponse400ChainUnsupportedCurrencyUnsupportedParameterInvalidContext, optional)

### 401 Unauthorized Error

Authentication is required.

- `code` (enum, required)
  - Allowed values: `unauthorized`
- `docs_url` (string, required)
- `message` (string, required)
- `context` (ErrorResponse401UnauthorizedContext, optional)

### 403 Forbidden Error

- `account_not_eligible`: The account is not eligible for this request. - `account_not_provisioned`: The account is not provisioned for this product. - `account_verification_pending`: Account verification for this product is pending. - `forbidden`: Access to this resource is forbidden. - `wallet_blocked`: Wallet blocked.

- `code` (enum, required)
  - Allowed values: `account_not_eligible`, `account_not_provisioned`, `account_verification_pending`, `forbidden`, `wallet_blocked`
- `docs_url` (string, required)
- `message` (string, required)
- `context` (ErrorResponse403AccountNotEligibleAccountNotProvisionedAccountVerificationPendingForbiddenWalletBlockedContext, optional)

### 404 Not Found Error

Resource not found.

- `code` (enum, required)
  - Allowed values: `not_found`
- `docs_url` (string, required)
- `message` (string, required)

### 429 Too Many Requests Error

Too many requests.

- `code` (enum, required)
  - Allowed values: `rate_limit_exceeded`
- `docs_url` (string, required)
- `message` (string, required)

### 500 Internal Server Error

An unexpected error occurred.

- `code` (enum, required)
  - Allowed values: `internal_error`
- `docs_url` (string, required)
- `message` (string, required)

### 503 Service Unavailable Error

An upstream service is temporarily unavailable. Please retry.

- `code` (enum, required)
  - Allowed values: `service_unavailable`
- `docs_url` (string, required)
- `message` (string, required)

## Types

### V0QuotesPostRequestBodyContentApplicationJsonSchemaSender

- `kind` (enum, required)
  - Allowed values: `wallet`
- `address` (string, required) — EOA or smart account that submits every execution step. It is the `from` on each step's transaction.
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `currency` (enum, required) — Token being sent or received.
  - Allowed values: `ausd`, `usdc`, `usdt`

### V0QuotesPostRequestBodyContentApplicationJsonSchemaReceiver

- `kind` (enum, required)
  - Allowed values: `wallet`
- `address` (string, required) — EOA or smart account that receives the output.
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `currency` (enum, required) — Token being sent or received.
  - Allowed values: `ausd`, `usdc`, `usdt`

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItems

- `id` (string, required)
- `provider` (enum, required) — Which provider executes this quote. `relay` is the only value today; further providers join as their integrations land.
  - Allowed values: `relay`
- `createdAt` (datetime, required)
- `expiresAt` (datetime, required) — Deposit must land onchain by this time.
- `sender` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsSender, required)
- `receiver` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsReceiver, required)
- `senderAmount` (string, required) — Amount in decimal token units, ex. `10.00`.
- `receiverAmount` (string, required) — Amount in decimal token units, ex. `10.00`.
- `slippageBps` (integer, required) — Effective value after the chain's default and cap.
- `fees` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsFees, required) — Cost breakdown in USD. Informational: nothing here is deducted from `senderAmount` or `receiverAmount`, which already reflect the quoted rate.
- `executionSteps` (list of V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItems, required) — Ordered steps the caller executes in turn to fulfill the quote. `erc20Approve` appears only when the sender's existing allowance is insufficient. New `action` values may be added; tolerate unknown ones.
- `transactionId` (string, required) — Poll GET /v0/transactions/\{txnId} with this. 404 until the deposit is observed.

### ErrorResponse400ChainUnsupportedCurrencyUnsupportedParameterInvalidContext

- `issues` (list of ErrorResponse400ChainUnsupportedCurrencyUnsupportedParameterInvalidContextIssuesItems, required)

### ErrorResponse401UnauthorizedContext

- `reason` (enum, required)
  - Allowed values: `invalid_token`, `key_not_provisioned`, `missing_claim`, `missing_header`, `token_expired`, `token_paused`, `token_revoked`, `unknown_tenant`

### ErrorResponse403AccountNotEligibleAccountNotProvisionedAccountVerificationPendingForbiddenWalletBlockedContext

- `reason` (enum, required)
  - Allowed values: `BLOCKED_WALLET`

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsSender

- `kind` (enum, required)
  - Allowed values: `wallet`
- `address` (string, required) — EOA or smart account that submits every execution step. It is the `from` on each step's transaction.
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `currency` (enum, required) — Token being sent or received.
  - Allowed values: `ausd`, `usdc`, `usdt`

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsReceiver

- `kind` (enum, required)
  - Allowed values: `wallet`
- `address` (string, required) — EOA or smart account that receives the output.
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `currency` (enum, required) — Token being sent or received.
  - Allowed values: `ausd`, `usdc`, `usdt`

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsFees

Cost breakdown in USD. Informational: nothing here is deducted from `senderAmount` or `receiverAmount`, which already reflect the quoted rate.

- `gasUsd` (string, required) — USD cost of the steps the sender's own wallet executes directly (ex. the `erc20Approve` step), distinct from the relayer's own gas cost in `relayerGasUsd`. Ex. `0.035869`.
- `relayerUsd` (string, required) — The relayer's total fee: `relayerGasUsd` plus `relayerServiceUsd`. Ex. `0.056939`.
- `relayerGasUsd` (string, required) — Portion of `relayerUsd` covering the relayer's own on-chain execution cost. Ex. `0.035141`.
- `relayerServiceUsd` (string, required) — Portion of `relayerUsd` covering the relayer's service margin. Ex. `0.021798`.
- `appUsd` (string, required) — Agora's own fee on this quote, separate from the relayer's.

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItems

- ERC-20 Approve: ERC-20 Approve
- Relay Deposit: Relay Deposit
- Relay Transfer + Multicall: Relay Transfer + Multicall

### ErrorResponse400ChainUnsupportedCurrencyUnsupportedParameterInvalidContextIssuesItems

- `field` (string, required)
- `message` (string, required)

### ERC-20 Approve

- `action` (enum, required)
  - Allowed values: `erc20Approve`
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `details` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf0Details, required)
- `transaction` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf0Transaction, required)

### Relay Deposit

- `action` (enum, required)
  - Allowed values: `relayDepositErc20`
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `transaction` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf1Transaction, required)

### Relay Transfer + Multicall

- `action` (enum, required)
  - Allowed values: `relayTransferAndMulticall`
- `chain` (enum, required) — Public API network identifier.
  - Allowed values: `ethereum`, `monad`
- `transaction` (V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf2Transaction, required)

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf0Details

- `token` (string, required)
- `spender` (string, required)
- `amount` (string, required) — Amount in decimal token units, ex. `10.00`.

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf0Transaction

- `from` (string, required) — The sender's address.
- `to` (string, required) — Contract to call.
- `data` (string, required) — Calldata.
- `value` (string, required) — Native value in base units.

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf1Transaction

- `from` (string, required) — The sender's address.
- `to` (string, required) — Contract to call.
- `data` (string, required) — Calldata.
- `value` (string, required) — Native value in base units.

### V0QuotesPostResponsesContentApplicationJsonSchemaQuotesItemsExecutionStepsItemsOneOf2Transaction

- `from` (string, required) — The sender's address.
- `to` (string, required) — Contract to call.
- `data` (string, required) — Calldata.
- `value` (string, required) — Native value in base units.

## Examples

**Request**

```json
{
  "sender": {
    "kind": "wallet",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chain": "ethereum",
    "currency": "usdc"
  },
  "receiver": {
    "kind": "wallet",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chain": "ethereum",
    "currency": "ausd"
  },
  "senderAmount": "10.00"
}
```

**Response**

```json
{
  "quotes": [
    {
      "id": "0193f4e2-0000-7000-8000-000000000000",
      "provider": "relay",
      "createdAt": "2026-09-15T14:59:40Z",
      "expiresAt": "2026-09-15T15:02:39Z",
      "sender": {
        "kind": "wallet",
        "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        "chain": "ethereum",
        "currency": "usdc"
      },
      "receiver": {
        "kind": "wallet",
        "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        "chain": "ethereum",
        "currency": "ausd"
      },
      "senderAmount": "10.00",
      "receiverAmount": "9.9992",
      "slippageBps": 50,
      "fees": {
        "gasUsd": "0.035869",
        "relayerUsd": "0.056939",
        "relayerGasUsd": "0.035141",
        "relayerServiceUsd": "0.021798",
        "appUsd": "0.00"
      },
      "executionSteps": [
        {
          "action": "erc20Approve",
          "chain": "ethereum",
          "details": {
            "amount": "10.00",
            "spender": "0xa5F565650890fBA1824Ee0F21EbBbF660a179934",
            "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
          },
          "transaction": {
            "data": "0x095ea7b3000000000000000000000000a5f565650890fba1824ee0f21ebbbf660a179934",
            "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
            "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "value": "0"
          }
        },
        {
          "action": "relayDepositErc20",
          "chain": "ethereum",
          "transaction": {
            "data": "0x23b872dd000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604",
            "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
            "to": "0xa5F565650890fBA1824Ee0F21EbBbF660a179934",
            "value": "0"
          }
        }
      ],
      "transactionId": "0193f5a1-0000-7000-8000-000000000000"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.agora.finance/v0/quotes"

payload = {
    "sender": {
        "kind": "wallet",
        "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        "chain": "ethereum",
        "currency": "usdc"
    },
    "receiver": {
        "kind": "wallet",
        "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
        "chain": "ethereum",
        "currency": "ausd"
    },
    "senderAmount": "10.00"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.agora.finance/v0/quotes';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"sender":{"kind":"wallet","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"ethereum","currency":"usdc"},"receiver":{"kind":"wallet","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"ethereum","currency":"ausd"},"senderAmount":"10.00"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.agora.finance/v0/quotes"

	payload := strings.NewReader("{\n  \"sender\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"usdc\"\n  },\n  \"receiver\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"ausd\"\n  },\n  \"senderAmount\": \"10.00\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.agora.finance/v0/quotes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"sender\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"usdc\"\n  },\n  \"receiver\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"ausd\"\n  },\n  \"senderAmount\": \"10.00\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.agora.finance/v0/quotes")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"sender\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"usdc\"\n  },\n  \"receiver\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"ausd\"\n  },\n  \"senderAmount\": \"10.00\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.agora.finance/v0/quotes', [
  'body' => '{
  "sender": {
    "kind": "wallet",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chain": "ethereum",
    "currency": "usdc"
  },
  "receiver": {
    "kind": "wallet",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chain": "ethereum",
    "currency": "ausd"
  },
  "senderAmount": "10.00"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.agora.finance/v0/quotes");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"sender\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"usdc\"\n  },\n  \"receiver\": {\n    \"kind\": \"wallet\",\n    \"address\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\n    \"chain\": \"ethereum\",\n    \"currency\": \"ausd\"\n  },\n  \"senderAmount\": \"10.00\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "sender": [
    "kind": "wallet",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chain": "ethereum",
    "currency": "usdc"
  ],
  "receiver": [
    "kind": "wallet",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "chain": "ethereum",
    "currency": "ausd"
  ],
  "senderAmount": "10.00"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.agora.finance/v0/quotes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```