> ## Documentation Index
> Fetch the complete documentation index at: https://docs.groundtech.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Address Book

> Manage the organization withdrawal address whitelist via the API.

The address book is an organization-level whitelist of withdrawal destinations. When the address book has at least one entry, withdrawals must use a listed destination. Requests to other destinations return `address_book_whitelist_violation` (HTTP 403). An empty address book means withdrawals are unrestricted.

> [!NOTE]
>
> **API-key permissions.** Reads require an authenticated organization key. Adding or deleting an entry also checks the profile bound to that key: it must be an organization owner or admin. Otherwise the API returns `403 forbidden`.

Entry rules:

* **Uniqueness** — one entry per `(chain, address)` pair. EVM addresses are matched case-insensitively; Solana, Stellar, and TRON addresses are matched exactly.
* **Immutable entries** — `address`, `chain`, and `label` are set at creation and cannot be changed. To change a destination or its label, delete the entry and create a new one.

Use the [network keys and address formats](https://docs.groundtech.co/v3/docs/portfolio-wallets/supported-chains.md#network-keys-and-address-formats) for your environment.

## List entries

List the destinations your organization has approved for withdrawals.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X GET "$BASE_URL/v3/address-book/entries?limit=100" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

Entries are returned newest first. The response uses the cursor pagination — pass `nextCursor` back as `cursor` to fetch the next page (`limit` max 200).

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "entries": [
    {
      "id": "a1b2c3d4-0000-4000-8000-000000000001",
      "organizationId": "0a1b2c3d-0000-4000-8000-000000000000",
      "address": "0x52908400098527886E0F7030069857D2E4169EE7",
      "chain": "arbitrum",
      "label": "Ops treasury",
      "addedBy": "9f8e7d6c-0000-4000-8000-000000000002",
      "addedAt": "2026-06-09T12:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "hasMore": false
}
```

## Create an entry

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "$BASE_URL/v3/address-book/entries" \
  -H "Authorization: Bearer $GROUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "0x52908400098527886E0F7030069857D2E4169EE7",
  "chain": "arbitrum",
  "label": "Ops treasury"
}'
```

`label` must be 1-120 characters. The address format is validated for the given chain: EVM hex format for EVM chains, a base58 public key for Solana, a checksummed G-address for Stellar, or a checksummed TRON base58 address for TRON. Use the exact network key; an entry authorizes that address only on its specified network.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "entry": {
    "id": "a1b2c3d4-0000-4000-8000-000000000001",
    "organizationId": "0a1b2c3d-0000-4000-8000-000000000000",
    "address": "0x52908400098527886E0F7030069857D2E4169EE7",
    "chain": "arbitrum",
    "label": "Ops treasury",
    "addedBy": "9f8e7d6c-0000-4000-8000-000000000002",
    "addedAt": "2026-06-09T12:00:00.000Z"
  }
}
```

Creating a duplicate entry for the same `(chain, address)` fails with `address_book_duplicate_entry` (HTTP 409). If this is the organization's first entry, withdrawal enforcement is now active — subsequent withdrawals must pay out to an address in the book.

Supply any required Stellar memo [on each withdrawal](https://docs.groundtech.co/v3/api-reference/withdraw.md).

## Delete an entry

Permanently removes an address from the whitelist. The response returns the removed entry.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X DELETE "$BASE_URL/v3/address-book/entries/$ENTRY_ID" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

> [!WARNING]
>
> Deleting the **last** entry removes the address-book restriction. Withdrawals can use unlisted destinations until you add an entry.

## Error reference

| Code | HTTP | Meaning |
| - | - | - |
| `validation_error` | 400 | Missing/invalid fields (e.g. label length, invalid id). |
| `unsupported_chain` | 400 | `chain` is not in the supported chain list. |
| `invalid_destination_address` | 400 | Address format is invalid for the given chain. |
| `forbidden` | 403 | Acting profile is not an organization owner or admin. |
| `address_book_entry_not_found` | 404 | Entry does not exist for this organization. |
| `address_book_duplicate_entry` | 409 | An entry already exists for this `(chain, address)`. |
| `address_book_whitelist_violation` | 403 | Returned by withdrawal creation when the address book has entries and the destination is not one of them. |

See [Withdraw Funds](https://docs.groundtech.co/v3/docs/portfolio-wallets/withdraw-funds.md) for how enforcement applies to withdrawal creation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.