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

# Utilities

> Auxiliary API endpoints

## Exchange rates

Queries or calculates the exchange rate between currencies.

## Query parameters

<ParamField query="from" type="string" required>
  Source currency.
</ParamField>

<ParamField query="to" type="string" required>
  Target currency.
</ParamField>

<ParamField query="amount" type="number">
  Amount to convert.
</ParamField>

## Request example

<RequestExample>
  ```bash theme={null}
  curl --request GET \
    --url 'https://app.amplopay.com/api/v1/gateway/utils/exchange-rates?from=USD&to=BRL&amount=100' \
    --header 'x-public-key: SUA_CHAVE_PUBLICA_AQUI' \
    --header 'x-secret-key: SUA_CHAVE_PRIVADA_AQUI'
  ```
</RequestExample>

## Query example

```text theme={null}
from=USD&to=BRL&amount=100
```
