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

# Deposit to Vault

> Deposit funds into a vault and receive vault shares.

```http theme={null}
POST /api/v1/lake/deposit
```

The operation type for signing is `"deposit_to_lake"`.

Use this endpoint to deposit USDC from an account into a vault. Deposits are idempotent when an `idempotency_key` is supplied.

#### Request Body

<table><thead><tr><th width="180">Field</th><th width="110">Type</th><th width="90">Need</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>`"account"`</td><td>string</td><td>required</td><td>Depositor wallet address</td><td>`42trU9A5...`</td></tr><tr><td>`"signature"`</td><td>string</td><td>required</td><td>Cryptographic signature</td><td>`5J3mBbAH...`</td></tr><tr><td>`"timestamp"`</td><td>integer</td><td>required</td><td>Current timestamp in milliseconds</td><td>`1716200000000`</td></tr><tr><td>`"lake"`</td><td>string</td><td>required</td><td>Vault address</td><td>`AbCdEfGh123456789...`</td></tr><tr><td>`"amount"`</td><td>decimal string</td><td>required</td><td>Deposit amount in USDC</td><td>`1000.00`</td></tr><tr><td>`"idempotency_key"`</td><td>UUID string</td><td>optional</td><td>Client-generated key to prevent duplicate deposits</td><td>`550e8400-e29b-41d4-a716-446655440000`</td></tr><tr><td>`"agent_wallet"`</td><td>string</td><td>optional</td><td>Agent wallet address</td><td>`69trU9A5...`</td></tr><tr><td>`"expiry_window"`</td><td>integer</td><td>optional</td><td>Signature expiry in milliseconds</td><td>`30000`</td></tr></tbody></table>

```json theme={null}
{
  "account": "42trU9A5...",
  "signature": "5J3mBbAH...",
  "timestamp": 1716200000000,
  "lake": "AbCdEfGh123456789...",
  "amount": "1000.00",
  "idempotency_key": "550e8400-e29b-41d4-a716-446655440000"
}
```

#### Response

* Status 200: Deposit successful

```json theme={null}
{
  "success": true,
  "data": {
    "shares_minted": "1000.00"
  },
  "error": null,
  "code": null
}
```

| Field | Type | Description |
| - | - | - |
| `'shares_minted'` | decimal string | Number of vault shares minted to the depositor |

* Status 400: Invalid request parameters
* Status 401: Unauthorized access
* Status 409: Duplicate idempotency key
* Status 500: Internal server error


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