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

# Get an Account by ID

GET https://api.sandbox.agora.finance/v0/accounts/{accountId}

Retrieve one account by its id. The response is identical to that account's entry in `GET /v0/accounts` (a wallet with its per-network `entitlements`, or a bank account with its full `accountNumber` and `beneficiary`), so you never need to reconcile the two shapes.

An id belonging to another organization returns `404 account_not_found`, the same as an id that exists nowhere. If your API key can read only one account kind, accounts of the other kind read as `404` too; a key that can read neither gets `403`.


Reference: https://docs.agora.finance/api/endpoints/accounts/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

- `accountId` (string, required) — Id of the account to fetch; must belong to the caller's org.

## Response

### 200

OK

- `accounts_getbyid_Response_200`
  - Wallet: Wallet
  - Bank Account: Bank Account

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

- `account_not_found`: Account not found. - `not_found`: Resource not found.

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

### Wallet

Customer-owned blockchain address (CustomerAddress).

- `id` (string, required) — Stable UUID identifying this account; safe to cache or display.
- `address` (string, required) — On-chain address. EIP-55 checksummed for EVM (`ethereum`), base58 for Solana.
- `addressFormat` (enum, required) — Address syntax family. `ethereum` covers every EVM chain (Ethereum, Base, Polygon, Arbitrum, etc.); per-chain authorization is enforced separately via the account's chain entitlements.
  - Allowed values: `ethereum`
- `createdAt` (datetime, required) — ISO-8601 UTC timestamp when this address was added to the org.
- `kind` (enum, required) — Discriminator: this is a customer-owned blockchain address.
  - Allowed values: `wallet`
- `name` (string, required) — User-set label. Free-form; may be empty if the user hasn't set one.
- `networks` (list of V0AccountsAccountIdGetResponsesContentApplicationJsonSchemaOneOf0NetworksItems, required) — The networks this address is registered on, each with its per-type entitlement states.

### Bank Account

Customer-owned bank account (WireDetail).

- `id` (string, required) — Stable UUID identifying this account; safe to cache or display.
- `accountNumber` (string, required) — Full bank account number.
- `bankName` (string, required) — Name of the receiving bank.
- `beneficiary` (string, required) — Account-holder name on the wire. Part of the account's identity: distinguishes accounts that share a routing + account number (e.g. omnibus/custodian accounts holding several funds under one account number).
- `createdAt` (datetime, required) — ISO-8601 UTC timestamp when this account was added to the org.
- `currency` (enum, required) — Settlement currency. Today only `usd`; will extend as new currencies launch.
  - Allowed values: `usd`
- `kind` (enum, required) — Discriminator: this is a customer-owned bank account.
  - Allowed values: `bank`
- `name` (string, required) — User-set label. Free-form; may be empty if the user hasn't set one.
- `routingNumber` (string, required) — ABA routing number identifying the receiving bank. A public bank identifier, returned in full.

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

### V0AccountsAccountIdGetResponsesContentApplicationJsonSchemaOneOf0NetworksItems

Per-network entitlement state for the wallet.

- `chain` (enum, required) — Network the wallet is registered on (kebab-case public network id).
  - Allowed values: `avalanche-fuji`, `ethereum-sepolia`
- `entitlements` (list of V0AccountsAccountIdGetResponsesContentApplicationJsonSchemaOneOf0NetworksItemsEntitlementsItems, required) — Entitlement states on this network, one per type the wallet holds on the chain.

### ErrorResponse400ParameterInvalidContextIssuesItems

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

### V0AccountsAccountIdGetResponsesContentApplicationJsonSchemaOneOf0NetworksItemsEntitlementsItems

- `type` (enum, required) — Entitlement type. `mint` is the mint capability gated by the per-chain compliance scan; `instant_settlement` is the instant-settlement whitelist; `rewards` is rewards eligibility.
  - Allowed values: `instant_settlement`, `mint`, `rewards`
- `status` (enum, required) — Entitlement status. `approved` is active. A new wallet's `mint` entitlement starts as `conditionally_approved`, which is already usable. In the sandbox, every entitlement awaiting review is approved automatically within about a minute. Nothing is rejected.
  - Allowed values: `approved`, `conditionally_approved`, `pending_approval`, `pending_removal`, `rejected`, `removed`

## Examples

### Wallet

**Response**

```json
{
  "address": "0xf5E6d7C8b9A0f5E6d7C8b9A0f5E6d7C8b9A0f5E6",
  "addressFormat": "ethereum",
  "createdAt": "2026-04-02T14:15:00Z",
  "id": "7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
  "kind": "wallet",
  "name": "ETH treasury",
  "networks": [
    {
      "chain": "ethereum-sepolia",
      "entitlements": [
        {
          "status": "approved",
          "type": "mint"
        },
        {
          "status": "pending_approval",
          "type": "instant_settlement"
        }
      ]
    }
  ]
}
```

**SDK Code**

```python Wallet
import requests

url = "https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c"

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

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

print(response.json())
```

```javascript Wallet
const url = 'https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c';
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 Wallet
package main

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

func main() {

	url := "https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c"

	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 Wallet
require 'uri'
require 'net/http'

url = URI("https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c")

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 Wallet
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Wallet
using RestSharp;

var client = new RestClient("https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Wallet
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sandbox.agora.finance/v0/accounts/7f3a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c")! 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()
```

### Bank account

**Response**

```json
{
  "accountNumber": "483910277",
  "bankName": "JPMorgan Chase",
  "beneficiary": "Acme Corp Operating",
  "createdAt": "2026-04-02T14:12:00Z",
  "currency": "usd",
  "id": "8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c",
  "kind": "bank",
  "name": "Operating USD wire",
  "routingNumber": "021000021"
}
```

**SDK Code**

```python Bank account
import requests

url = "https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c"

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

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

print(response.json())
```

```javascript Bank account
const url = 'https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c';
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 Bank account
package main

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

func main() {

	url := "https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c"

	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 Bank account
require 'uri'
require 'net/http'

url = URI("https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c")

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 Bank account
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Bank account
using RestSharp;

var client = new RestClient("https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Bank account
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sandbox.agora.finance/v0/accounts/8b3e4f12-9a7c-4d8e-b1f0-2c5d6e7a8b9c")! 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()
```