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

# Manage gVault customer access

> Add and remove customer deposit access, and verify when changes take effect.

Use the gVault allowlist API to control which customer wallets can deposit into
your organization's contract. Customers send their own deposit and withdrawal
transactions; your Ground API key stays on your server.

## Before you start

[Discover your gVault](https://docs.groundtech.co/v3/docs/gtokens/discover-yield-sources.md) and retain its `id`
as `GVAULT_ID`. Use the customer address that will make the deposit and receive
the shares. Ground separately admits your gVault to the underlying vault during
setup; that permission does not admit individual customers to your contract.

## 1. Admit an address

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
export BASE_URL="https://sandbox.groundtech.co"
export GROUND_API_KEY="<your-api-key>"
export GVAULT_ID="<id-from-discovery>"
export CUSTOMER_ADDRESS="<your-customer-wallet-address>"
curl --fail-with-body -X PUT \
  "$BASE_URL/v3/gvaults/$GVAULT_ID/allowlist/$CUSTOMER_ADDRESS" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

Omit the request body; your organization API key authorizes the request. This permission applies only to the selected contract, not to
another organization's gVault.

A `200` response means the operation is confirmed; `202` means it is pending.
Retain the transaction hash when present and check access before enabling deposits.

## 2. Verify deposit access

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --fail-with-body \
  "$BASE_URL/v3/gvaults/$GVAULT_ID/allowlist/$CUSTOMER_ADDRESS" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

Continue only when `allowed` is `true`. For example:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "allowed": true
}
```

A submitted transaction hash alone does not establish access. If the mutation
times out, read this state before retrying. See
[asynchronous operations](https://docs.groundtech.co/v3/docs/gtokens/async-operations) for confirmation and
uncertain outcomes.

## 3. Remove deposit access

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --fail-with-body -X DELETE \
  "$BASE_URL/v3/gvaults/$GVAULT_ID/allowlist/$CUSTOMER_ADDRESS" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

Read access again and confirm `allowed: false` before treating removal as
effective. For organization gVaults, removal blocks new deposits without
freezing existing holdings or revoking the owner's redemption rights. Freeze
controls and the underlying vault's authorization can still restrict withdrawals.

## Handle an incomplete change

After a timeout or temporary `503`, read access before retrying the request.
A `409` can indicate a conflicting active update; wait for it to finish before
requesting a different state. Check the address for `400` responses and use an
ID returned by your organization's discovery for `404` responses. Contact Ground
if production returns `403 product_not_enabled` or a transaction failure remains
unresolved.


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