> For a complete index of Agora Finance documentation, fetch https://docs.agora.finance/llms.txt # Get a Transaction by ID GET https://api.agora.finance/v0/transactions/{txnId} Retrieve one settled transaction by id, with its per-leg breakdown. Each leg carries a `direction` (`FROM_AGORA` or `TO_AGORA`) and a rail-specific `detail` keyed by `type`: `token` (`transactionHash`), `wire` (Fedwire `imad`), `bookTransfer`, or `instantPayment` (`confirmationNumber`). A `fee` leg is a manual accounting entry and carries no rail reference. A `404` means no such transaction exists for your organization. Reference: https://docs.agora.finance/api/endpoints/transactions/getbyid ## Authentication - `Authorization` header (bearer token, required) — Session JWT from `POST /v0/auth/token`, sent as `Authorization: Bearer `. See [Authentication](/api/authentication) for more details. ## Request ### Path parameters - `txnId` (string, required) ## Response ### 200 OK - `id` (string, required) — Stable UUID identifying this transaction; pass to the detail endpoint to fetch legs. - `initiatedAt` (datetime, required) — ISO-8601 timestamp of the first leg. - `isInstantSettlement` (boolean, required) — True if this transaction used Agora's instant-settlement path rather than standard settlement. - `legCount` (integer, required) — Number of customer-facing legs in this transaction. - `recipient` (V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaRecipient, required) — The counterparty receiving value, with the totals it received. - `settledAt` (datetime, required, nullable) — ISO-8601 timestamp when the transaction settled. Null until settled. - `source` (V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaSource, required) — The counterparty sending value, with the totals it sent. - `status` (string, required) — Lifecycle status. v1 emits only `"settled"`. This is an open, extensible enum; future values (e.g. `pending`) may appear, so clients must tolerate unknown values. - `type` (string, required) — Customer-facing transaction type: `mint`, `redeem`, `bridge`, `reward`, or `return`. Treated as an open enum; tolerate unknown values. - `legs` (list of V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItems, required) — The customer-facing legs that make up this transaction. ## 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 The account is not eligible for the requested route direction. - `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 Resource not found. - `code` (enum, required) - Allowed values: `not_found`, `transaction_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 ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaRecipient The counterparty receiving value, with the totals it received. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaSource The counterparty sending value, with the totals it sent. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItems A single customer-facing leg of a transaction. - `id` (string, required) — Stable UUID identifying this leg. - `amount` (string, required) — Decimal amount moved on this leg, as a string (avoids floating-point precision loss). - `currency` (string, required) — Currency code, e.g. `usd`, `ausd`, `usdc`. Treated as an open enum; tolerate unknown values. - `detail` (V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail, required) — Rail-specific identifiers for the leg, shaped by the settlement rail. - `direction` (enum, required) — Direction of value movement relative to Agora: `FROM_AGORA` (Agora → customer) or `TO_AGORA` (customer → Agora). - Allowed values: `FROM_AGORA`, `TO_AGORA` - `occurredAt` (datetime, required) — ISO-8601 timestamp when this leg occurred. - `recipient` (V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsRecipient, required) — The counterparty receiving value on this leg. - `source` (V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsSource, required) — The counterparty sending value on this leg. ### 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` ### Bank Account - `kind` (enum, required) — Discriminator: the counterparty is a bank account. - Allowed values: `bank` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `accountNumber` (string, required, nullable) — Bank account number. Null when unknown. - `bankName` (string, required, nullable) — Name of the financial institution, when known. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. - `amounts` (list of V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaRecipientOneOf0AmountsItems, required) — Per-currency totals moved on this side of the transaction, one entry per currency. ### Wallet - `kind` (enum, required) — Discriminator: the counterparty is a blockchain address. - Allowed values: `wallet` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `address` (string, required, nullable) — On-chain address, EIP-55 checksummed for EVM. Public on-chain data, returned in full. Null when unknown. - `chain` (string, required) — Chain the address is on, as the public-API network id (e.g. `ethereum`, `base`). Non-public/historical chains fall back to the raw chain id. Treated as an open enum; tolerate unknown values. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. - `amounts` (list of V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaRecipientOneOf1AmountsItems, required) — Per-currency totals moved on this side of the transaction, one entry per currency. ### Bank Account - `kind` (enum, required) — Discriminator: the counterparty is a bank account. - Allowed values: `bank` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `accountNumber` (string, required, nullable) — Bank account number. Null when unknown. - `bankName` (string, required, nullable) — Name of the financial institution, when known. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. - `amounts` (list of V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaSourceOneOf0AmountsItems, required) — Per-currency totals moved on this side of the transaction, one entry per currency. ### Wallet - `kind` (enum, required) — Discriminator: the counterparty is a blockchain address. - Allowed values: `wallet` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `address` (string, required, nullable) — On-chain address, EIP-55 checksummed for EVM. Public on-chain data, returned in full. Null when unknown. - `chain` (string, required) — Chain the address is on, as the public-API network id (e.g. `ethereum`, `base`). Non-public/historical chains fall back to the raw chain id. Treated as an open enum; tolerate unknown values. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. - `amounts` (list of V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaSourceOneOf1AmountsItems, required) — Per-currency totals moved on this side of the transaction, one entry per currency. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail Rail-specific identifiers for the leg, shaped by the settlement rail. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsRecipient The counterparty receiving value on this leg. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsSource The counterparty sending value on this leg. ### ErrorResponse400ParameterInvalidContextIssuesItems - `field` (string, required) - `message` (string, required) ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaRecipientOneOf0AmountsItems A per-currency amount moved on one side of the transaction. - `amount` (string, required) — Decimal amount as a string (avoids floating-point precision loss). - `currency` (string, required) — Currency code, e.g. `usd`, `ausd`, `usdc`. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaRecipientOneOf1AmountsItems A per-currency amount moved on one side of the transaction. - `amount` (string, required) — Decimal amount as a string (avoids floating-point precision loss). - `currency` (string, required) — Currency code, e.g. `usd`, `ausd`, `usdc`. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaSourceOneOf0AmountsItems A per-currency amount moved on one side of the transaction. - `amount` (string, required) — Decimal amount as a string (avoids floating-point precision loss). - `currency` (string, required) — Currency code, e.g. `usd`, `ausd`, `usdc`. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaSourceOneOf1AmountsItems A per-currency amount moved on one side of the transaction. - `amount` (string, required) — Decimal amount as a string (avoids floating-point precision loss). - `currency` (string, required) — Currency code, e.g. `usd`, `ausd`, `usdc`. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail0 Book-transfer leg detail. - `type` (enum, required) — Discriminator: the leg settled as an internal book transfer. - Allowed values: `bookTransfer` - `confirmationNumber` (string, required, nullable) — Book-transfer confirmation number. Null when not yet known. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail1 Fee leg detail. A manual accounting entry with no rail identifier. - `type` (enum, required) — Discriminator: the leg is a manual fee entry. - Allowed values: `fee` ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail2 Instant-payment leg detail. - `type` (enum, required) — Discriminator: the leg settled over an instant-payment rail. - Allowed values: `instantPayment` - `confirmationNumber` (string, required, nullable) — Instant-payment confirmation number. Null when not yet known. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail3 On-chain (token) leg detail. - `type` (enum, required) — Discriminator: the leg settled on-chain. - Allowed values: `token` - `transactionHash` (string, required, nullable) — On-chain transaction hash. Null when not yet known. ### V0TransactionsTxnIdGetResponsesContentApplicationJsonSchemaLegsItemsDetail4 Wire-transfer leg detail. - `type` (enum, required) — Discriminator: the leg settled over a wire transfer. - Allowed values: `wire` - `imad` (string, required, nullable) — Fedwire IMAD (Input Message Accountability Data) identifying the wire. Null when not yet known. ### Bank Account - `kind` (enum, required) — Discriminator: the counterparty is a bank account. - Allowed values: `bank` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `accountNumber` (string, required, nullable) — Bank account number. Null when unknown. - `bankName` (string, required, nullable) — Name of the financial institution, when known. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. ### Wallet - `kind` (enum, required) — Discriminator: the counterparty is a blockchain address. - Allowed values: `wallet` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `address` (string, required, nullable) — On-chain address, EIP-55 checksummed for EVM. Public on-chain data, returned in full. Null when unknown. - `chain` (string, required) — Chain the address is on, as the public-API network id (e.g. `ethereum`, `base`). Non-public/historical chains fall back to the raw chain id. Treated as an open enum; tolerate unknown values. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. ### Bank Account - `kind` (enum, required) — Discriminator: the counterparty is a bank account. - Allowed values: `bank` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `accountNumber` (string, required, nullable) — Bank account number. Null when unknown. - `bankName` (string, required, nullable) — Name of the financial institution, when known. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. ### Wallet - `kind` (enum, required) — Discriminator: the counterparty is a blockchain address. - Allowed values: `wallet` - `accountId` (string, required, nullable) — UUID of the customer account this counterparty maps to (same id as `/v0/accounts`), or null when the address is not a known account (e.g. the Agora side). Bank counterparties currently always return null; bank-to-account linkage is not derived yet. - `address` (string, required, nullable) — On-chain address, EIP-55 checksummed for EVM. Public on-chain data, returned in full. Null when unknown. - `chain` (string, required) — Chain the address is on, as the public-API network id (e.g. `ethereum`, `base`). Non-public/historical chains fall back to the raw chain id. Treated as an open enum; tolerate unknown values. - `name` (string, required, nullable) — Display label for the counterparty. The Agora side of a leg is labelled `"Agora"`. ## Examples **Response** ```json { "id": "1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c", "initiatedAt": "2026-06-21T14:02:00Z", "isInstantSettlement": false, "legCount": 2, "recipient": { "accountId": "7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c", "address": "0xF5e6D7c8B9A0F5e6D7c8B9A0F5e6D7c8B9A0F5e6", "amounts": [ { "amount": "250000.000000", "currency": "ausd" } ], "chain": "ethereum", "kind": "wallet", "name": "ETH treasury" }, "settledAt": "2026-06-21T14:46:00Z", "source": { "accountId": null, "accountNumber": "987654321234", "amounts": [ { "amount": "250000.000000", "currency": "usd" } ], "bankName": "JPMorgan Chase", "kind": "bank", "name": "Acme Corp" }, "status": "settled", "type": "mint", "legs": [ { "id": "9c8b7a6e-5d4c-3b2a-1f0e-9d8c7b6a5e4d", "amount": "250000.000000", "currency": "usd", "detail": { "imad": "20260621MMQFMP6K000482", "type": "wire" }, "direction": "TO_AGORA", "occurredAt": "2026-06-21T14:02:00Z", "recipient": { "accountId": null, "accountNumber": null, "bankName": null, "kind": "bank", "name": "Agora" }, "source": { "accountId": null, "accountNumber": "987654321234", "bankName": "JPMorgan Chase", "kind": "bank", "name": "Acme Corp" } }, { "id": "8b7a6e5d-4c3b-2a1f-0e9d-8c7b6a5e4d3c", "amount": "250000.000000", "currency": "ausd", "detail": { "transactionHash": "0x3ab1c9e7d5f2a8b4c6e0d1f3a5b7c9e1d3f5a7b9c1e3d5f7a9b1c3e5d7f9a1b3", "type": "token" }, "direction": "FROM_AGORA", "occurredAt": "2026-06-21T14:46:00Z", "recipient": { "accountId": "7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c", "address": "0xF5e6D7c8B9A0F5e6D7c8B9A0F5e6D7c8B9A0F5e6", "chain": "ethereum", "kind": "wallet", "name": "ETH treasury" }, "source": { "accountId": null, "address": null, "chain": "ethereum", "kind": "wallet", "name": "Agora" } } ] } ``` **SDK Code** ```python import requests url = "https://api.agora.finance/v0/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.agora.finance/v0/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") 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/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.agora.finance/v0/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.agora.finance/v0/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.agora.finance/v0/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.agora.finance/v0/transactions/1f0a2b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c")! 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() ``` > Documentation for the AUSD stablecoin and Agora's APIs.