IPTV PANELVelatrix Cloud is in open beta. Sign up today and set up your panel.Get started →
Developer Reference

Build on top of Velatrix Cloud

REST API for owners, resellers, and integrator partners. Platform routes use /api; tenant routes use /{slug}/api.

Base URL

https://velatrixcloud.com/api or https://velatrixcloud.com/{slug}/api

Authentication

Use an auth cookie or bearer token. Tenant API keys are accepted only by supported tenant endpoints.

Rate limit

Each tenant API key has its own per-minute limit: 60 by default, set when you create the key, and never above your panel's API limit. Over the limit you get 429; responses carry X-RateLimit-Limit and X-RateLimit-Remaining.

Endpoints

POST/api/auth/login
Auth: none (CSRF cookie)

Sign in and get a session cookie. Fetch a CSRF cookie first and send it back as X-XSRF-TOKEN. For scripts, prefer a tenant API key.

curl -c cookies.txt https://velatrixcloud.com/api/auth/csrf-token

curl -X POST https://velatrixcloud.com/api/auth/login \
  -b cookies.txt -c cookies.txt \
  -H "Content-Type: application/json" \
  -H "X-XSRF-TOKEN: XSRF_TOKEN_FROM_COOKIES_TXT" \
  -d '{"username": "[email protected]", "password": "••••••••"}'
GET/{slug}/api/lines
Auth: cookie, bearer, or tenant API key

List lines for the authenticated tenant

curl https://velatrixcloud.com/acme/api/lines \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Accept: application/json"
POST/{slug}/api/lines
Auth: cookie, bearer, or tenant API key

Create a new line

curl -X POST https://velatrixcloud.com/acme/api/lines \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "user1", "password": "••••••••", "expiresAt": "2026-12-31T23:59:59Z", "bouquets": [1, 2]}'
PUT/{slug}/api/lines/{id}
Auth: cookie, bearer, or tenant API key

Update a line

curl -X PUT https://velatrixcloud.com/acme/api/lines/4821 \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expiresAt": "2026-12-31T23:59:59Z"}'
GET/{slug}/api/lines/export-csv
Auth: cookie, bearer, or tenant API key

Export the tenant line list as CSV

curl https://velatrixcloud.com/acme/api/lines/export-csv \
  -H "X-API-Key: YOUR_API_KEY" \
  -o lines-export.csv

Webhooks

Your panel can send webhooks when a line is created, renewed, expired or suspended, and when credits are added. Add them on the API & Webhooks page of your panel. All payloads are signed with HMAC-SHA256; verify with the secret shown in your panel.

# Sample webhook payload
POST https://your-app.example.com/webhooks/velatrix
Content-Type: application/json
X-Velatrix-Signature: sha256=4f3a...
X-Velatrix-Event: line.created
X-Velatrix-Delivery-ID: 9f1c...

{
  "event": "line.created",
  "data": {
    "lineId": 4821,
    "username": "user1",
    "maxConnections": 2
  },
  "timestamp": "2026-06-24T14:22:09Z"
}
Open Beta — Live now

Need an API key?

Every panel includes API access. Once your panel is set up, the owner can create a key on the API & Webhooks page of the panel.

No commitment required • Secure Stripe checkout • Monthly or yearly billing