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

# Introduction

> These are the endpoints and webhooks available for the R4 API.  Any additional endpoints or webhooks can be added upon request.

## Environments

The API is available in two separate environments:

<CardGroup cols={2}>
  <Card title="Development" icon="flask">
    **Base URL:** `https://dev.api.r4technology.io/`

    Use this environment for testing and development purposes.
  </Card>

  <Card title="Production" icon="rocket">
    **Base URL:** `https://api.r4technology.io/`

    Use this environment for live applications.
  </Card>
</CardGroup>

## Authentication

All API endpoints are authenticated using **Basic Authentication**. We'll generate credentials for you during the onboarding process.

Include your credentials in the `Authorization` header of each request:

```bash theme={null}
Authorization: Basic <your-encoded-credentials>
```

The credentials are base64-encoded in the format `username:password`.

## Webhooks

We can subscribe you to webhooks to receive real-time notifications about order tracking updates and other events.

To set up a webhook, simply email us with:

* Your webhook endpoint URL
* Any necessary credentials we need to authenticate when sending requests to your endpoint

Once configured, we'll send POST requests to your endpoint whenever relevant events occur.
