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

# GET List Plans

> Retrieve available subscription plans.

## List plans

`GET /api/admin/plans`

Retrieve all subscription plans.

### Headers

**x-api-key** `string` *required*

Your API key

**x-api-secret** `string` *required*

Your API secret key

**x-channel-id** `string` *required*

WhatsApp channel ID

```bash cURL theme={null}
curl https://zeplo.ai/api/admin/plans \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-api-secret: YOUR_API_SECRET" \
  -H "x-channel-id: YOUR_CHANNEL_ID"
```

```json Response theme={null}
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "Starter",
      "description": "Perfect for small businesses",
      "price": 29.99,
      "currency": "USD",
      "interval": "monthly",
      "features": {
        "maxContacts": 1000,
        "maxMessages": 5000,
        "maxChannels": 1,
        "maxTeamMembers": 3,
        "campaigns": true,
        "automations": false,
        "analytics": true,
        "apiAccess": false
      },
      "status": "active",
      "gatewayPlanId": "price_abc123",
      "createdAt": "2026-01-01T08:00:00Z"
    }
  ]
}
```

***

## Create plan (superadmin)

`POST /api/admin/plans`

```json theme={null}
{
  "name": "Enterprise",
  "description": "For large organizations",
  "price": 199.99,
  "currency": "USD",
  "interval": "monthly",
  "features": {
    "maxContacts": -1,
    "maxMessages": -1,
    "maxChannels": 10,
    "maxTeamMembers": -1,
    "campaigns": true,
    "automations": true,
    "analytics": true,
    "apiAccess": true
  }
}
```

***

## Get plan by ID

`GET /api/admin/plans/:id`

***

## Update plan (superadmin)

`PUT /api/admin/plans/:id`

***

## Delete plan (superadmin)

`DELETE /api/admin/plans/:id`

***

## Sync plans to payment gateway (superadmin)

`POST /api/admin/plans/:id/sync-gateway`

`POST /api/admin/plans/sync-all-gateways`


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