> For the complete documentation index, see [llms.txt](https://docs.akashicpay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akashicpay.com/secureapi/functions/get-deposit-address.md).

# Get Deposit Address

## <mark style="color:blue;">Get Deposit Address</mark>

**Endpoint:** `POST /getDepositAddress`

**Description:** Retrieves an L1 address for a user to deposit into on the specified network.

**Request Parameters:**

| Parameter   | Type                                                    | Required | Description                                         |
| ----------- | ------------------------------------------------------- | -------- | --------------------------------------------------- |
| network     | [NetworkSymbol](/secureapi/references.md#networksymbol) | Yes      | L1 network (e.g., `ETH`)                            |
| identifier  | string                                                  | Yes      | UserID or similar identifier                        |
| referenceId | string                                                  | No       | Optional reference ID to identify the deposit order |

Response:

```
{
  "address": "string",
  "identifier": "string"
}

```

## <mark style="color:blue;">Get Deposit Address With Requested Value</mark>

**Endpoint:** `POST /getDepositAddressWithRequestedValue`

**Description:** Retrieves an L1 address with a requested value. The first deposit matching the requested value triggers the `referenceId`. Other deposits trigger callbacks without the `referenceId`.

**Request Parameters:**

| Parameter         | Type                                                    | Required | Description                                                                 |
| ----------------- | ------------------------------------------------------- | -------- | --------------------------------------------------------------------------- |
| network           | [NetworkSymbol](/secureapi/references.md#networksymbol) | Yes      | L1 network (e.g., `ETH`)                                                    |
| identifier        | string                                                  | Yes      | UserID or similar identifier                                                |
| referenceId       | string                                                  | Yes      | Reference ID to identify the deposit order                                  |
| requestedCurrency | [Currency](/secureapi/references.md#currency)           | Yes      | Requested currency (e.g., `USDT`, `USDC`, `USD`)                            |
| requestedAmount   | string                                                  | Yes      | Requested amount (as a string to avoid precision issues)                    |
| token             | [TokenSymbol](/secureapi/references.md#tokensymbol)     | No       | Optional token symbol (e.g., `USDT`)                                        |
| markupPercentage  | number                                                  | No       | Mark up percentage to be applied on the exchange rate (min: -100, max: 100) |

Response:

```json
{
  "address": "string",
  "identifier": "string",
  "referenceId": "string",
  "requestedAmount": "string",
  "requestedCurrency": "string",
  "network": "string",
  "token": "string",
  "exchangeRate": "string",
  "amount": "string"
}

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.akashicpay.com/secureapi/functions/get-deposit-address.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
