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

# Introduction

> Use the production UniFi API for deposit, wallet, payments, history & more.

The UniFi API exposes wallet, payment, history, and checkout operations without requiring callers
to manage UniFi's internal services.

## Base URL

```text theme={null}
https://api.payunifi.com
```

All requests use HTTPS and JSON unless an endpoint states otherwise.

## Authentication

Almost all operations require a bearer credential:

```http theme={null}
Authorization: Bearer <credential>
```

Use a server-side API key for backend integrations.

> [!WARNING]
>
> Never expose an API key in browser code, a mobile application, a public
> repository, logs, or analytics events.

## Response envelope

Successful data responses use a consistent envelope:

```json theme={null}
{
    "status": "200 OK",
    "data": {}
}
```

Operations that do not return a resource use `message` instead of `data`. Error responses are
currently plain text, so application logic should branch on the HTTP status rather than parsing the
message.

> [card] [Authentication](https://docs.payunifi.com/api-reference/authentication.md)
>
> Choose an API key and use it safely.

> [card] [Errors and payment state](https://docs.payunifi.com/api-reference/errors.md)
>
> Handle retries, receipt states, and duplicate-payment risk.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.