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

# Get a Quote by ID

GET https://api.agora.finance/v0/quotes/{quoteId}

Retrieve a quote exactly as [`POST /v0/quotes`](/api/endpoints/quotes/create) returned it. Use it to recover a quote's `executionSteps`, `fees`, or `transactionId` after the fact, not to track progress: nothing on a quote changes after creation, `transactionId` included.An expired quote is still returned, so check `expiresAt` before running its steps, and request a new quote once it has passed. To follow a conversion, poll [`GET /v0/transactions/{txnId}`](/api/endpoints/transactions/getbyid) with the quote's `transactionId` instead (see [Tracking execution](/api/guides/convert-stablecoins/overview#tracking-execution)).`404 quote_not_found` covers both an unknown id and another organization's quote, so the response doesn't reveal whether a quote exists elsewhere.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/getbyid

## 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

### Path parameters

- `quoteId` (string, required)

## Response

### 200

OK

- `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` (V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaSender, required)
- `receiver` (V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaReceiver, 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` (V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaFees, required) — Cost breakdown in USD. Informational: nothing here is deducted from `senderAmount` or `receiverAmount`, which already reflect the quoted rate.
- `executionSteps` (list of V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaExecutionStepsItems, 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.

## Errors

### 400 Bad Request Error

One or more request parameters are invalid.

- `code` (enum, required)
  - Allowed values: `parameter_invalid`
- `docs_url` (string, required)
- `message` (string, required)
- `context` (ErrorResponse400ParameterInvalidContext, 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.

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

### 404 Not Found Error

- `not_found`: Resource not found. - `quote_not_found`: Quote not found.

- `code` (enum, required)
  - Allowed values: `not_found`, `quote_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)

## Types

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaSender

- `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`

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaReceiver

- `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`

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaFees

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.

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaExecutionStepsItems

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

### ErrorResponse400ParameterInvalidContext

- `issues` (list of ErrorResponse400ParameterInvalidContextIssuesItems, required)

### ErrorResponse401UnauthorizedContext

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

### ERC-20 Approve

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

### Relay Deposit

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

### Relay Transfer + Multicall

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

### ErrorResponse400ParameterInvalidContextIssuesItems

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

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaExecutionStepsItemsOneOf0Details

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

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaExecutionStepsItemsOneOf0Transaction

- `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.

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaExecutionStepsItemsOneOf1Transaction

- `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.

### V0QuotesQuoteIdGetResponsesContentApplicationJsonSchemaExecutionStepsItemsOneOf2Transaction

- `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

**Response**

```json
{
  "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/0193f4e2-0000-7000-8000-000000000000"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.agora.finance/v0/quotes/0193f4e2-0000-7000-8000-000000000000';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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"
	"net/http"
	"io"
)

func main() {

	url := "https://api.agora.finance/v0/quotes/0193f4e2-0000-7000-8000-000000000000"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	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/0193f4e2-0000-7000-8000-000000000000")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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.get("https://api.agora.finance/v0/quotes/0193f4e2-0000-7000-8000-000000000000")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.agora.finance/v0/quotes/0193f4e2-0000-7000-8000-000000000000', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.agora.finance/v0/quotes/0193f4e2-0000-7000-8000-000000000000");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.agora.finance/v0/quotes/0193f4e2-0000-7000-8000-000000000000")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```