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

# BRLP

> Endpoints focused on BRLP: BRL pricing and conversion pegged to the Brazilian real. This group will be consolidated under the sandbox.brlp.io domain.

<Note>
  In the future, the `sandbox.brlp.io` domain will **exclusively** host the endpoints focused on BRLP. This group already brings together the BRLP-related endpoints to make that separation easier. Treat the BRLP base URL as an isolated concern in your integration.
</Note>

**BRLP** is PagFinance's pricing and conversion layer pegged to the Brazilian real (BRL). The endpoints in this group handle the conversion between cryptocurrencies and amounts in BRL that supports local payments (PIX, boleto, and gift card).

## BRLP base URL

<CodeGroup>
  ```bash Sandbox theme={null}
  https://sandbox.brlp.io
  ```

  ```bash Production theme={null}
  https://app.pag.finance
  ```
</CodeGroup>

<Warning>
  During the transition, the BRLP endpoints may respond both on the main host and on `sandbox.brlp.io`. Plan your integration so the BRLP base URL is configurable.
</Warning>

## BRL price quote

Returns the price of an asset pegged to the Brazilian real. This is the basis for the crypto to BRL conversion.

<ParamField query="assetId" type="number" required>
  Asset identifier.
</ParamField>

<ParamField query="fiatCurrency" type="string" required>
  Reference fiat currency. For BRLP, use `BRL`.
</ParamField>

<ResponseField name="price" type="number">
  Asset price in BRL.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://sandbox.brlp.io/api/assets/price?assetId=1&fiatCurrency=BRL"
  ```

  ```ts SDK theme={null}
  const price = await client.assets.getAssetPrice({ assetId: 1, fiatCurrency: 'BRL' });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "assetId": 1,
      "fiatCurrency": "BRL",
      "price": 5.42
    }
  }
  ```
</ResponseExample>

## Accepted crypto configuration

The list of cryptocurrencies accepted for conversion into BRL is part of the BRLP scope.

<RequestExample>
  ```bash cURL theme={null}
  curl https://sandbox.brlp.io/api/assets/accepted-cryptos
  ```

  ```ts SDK theme={null}
  const config = await client.assets.acceptedCryptos();
  ```
</RequestExample>

## Conversion and settlement

The execution of the BRL-pegged conversion uses the [Payments](/en/api-reference/payments) endpoints (quote, creation, submission, and receipt). As the migration to `sandbox.brlp.io` progresses, the BRLP conversion endpoints will move to that domain.

<Card title="Payment flow" icon="money-bill-transfer" href="/en/api-reference/payments">
  Quote, creation, submission, and receipt of the conversion.
</Card>
