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

# Quickstart

> Make your first OnePanel API request.

## 1. Create an API key

Sign in to OnePanel, open **Settings → API keys**, and create a key. The raw key is shown once, so store it in a server-side secret manager.

> [!WARNING]
>
> Never put an API key in browser JavaScript, mobile app source, a public repository, or a client-visible URL.

## 2. List supported networks

```bash theme={null}
curl https://api.onepanel.ng/api/v1/networks
```

## 3. Fetch a current catalog

```bash theme={null}
curl "https://api.onepanel.ng/api/v1/bundles?carrier=mtn"
```

Use the returned `id` as the `plan_id` in a purchase request. Catalog IDs and prices can change.

## 4. Purchase a plan

```bash theme={null}
curl -X POST https://api.onepanel.ng/api/v1/purchase \
  -H "Authorization: Bearer $ONEPANEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "carrier": "mtn",
    "plan_id": "1650",
    "recipient": "07068765000"
  }'
```

Every successful purchase charges the configured flat platform fee of **₦2**. The account must have sufficient wallet balance and an active connected SIM for the selected carrier.

## 5. Check transaction history

```bash theme={null}
curl https://api.onepanel.ng/api/v1/transactions \
  -H "Authorization: Bearer $ONEPANEL_API_KEY"
```


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