# Make your first request

## How it works

### Base URL

The base URL for all Revolut X Crypto Exchange REST API endpoints is:

```
https://revx.revolut.com/api/
```

### API endpoints

The API has two types of endpoints:

- **Public endpoints** include `/public/` in their path and require no authentication.
  Use them to retrieve public market data and exchange configuration.
- **Authenticated endpoints** cover your Revolut X account data and trading operations.
  Every request to them must include your API key and a signature.
  See [Create an API key](create-an-api-key.md) and [Authenticate requests](authenticate-requests.md).

## Make a request to a public endpoint

Because public endpoints need no credentials, you can try one straight away:

```sh
curl -X GET "https://revx.revolut.com/api/2.0/public/order-book/BTC-USD"
```

## Make an authenticated request

To make a request to an authenticated endpoint, you need:
- An [API key](/docs/guides/crypto-exchange/get-started/create-an-api-key)
- The private key (`private.pem`) you saved when [generating signing keys](/docs/guides/crypto-exchange/get-started/create-an-api-key#generate-an-ed25519-key-pair).
- The [timestamp and signature](/docs/guides/crypto-exchange/get-started/authenticate-requests) for the specific request

A sample request might look like this:

```sh
curl "https://revx.revolut.com/api/1.0/orders/active?limit=10" \
  -H "X-Revx-API-Key: {YOUR_API_KEY}" \
  -H "X-Revx-Timestamp: 1783616701644" \
  -H "X-Revx-Signature: wTnp+FJGGtW+Kf3zSg+R86wP2ogoC1FEFWyCmuDCaZUc4ikQmt2R1Wnnu4IThqeHl7niTxCEAm0yXL9kgQpCDg=="
```

The `X-Revx-Signature` value is the Base64-encoded Ed25519 signature of the message string `1783616701644GET/api/1.0/orders/activelimit=10`.
See [Authenticate requests](/docs/guides/crypto-exchange/get-started/authenticate-requests) for how to construct and sign it for your own requests.

For more endpoints, operations and their details, see the [API reference](/docs/api/revolut-x-crypto-exchange).