Skip to content
VELOFLUX docsOpen dashboard

Home / API reference

API reference

Base URL, Ciatto Accounts-only authentication, API keys, rate limits, error format, org, domains, upstreams, metrics, billing and team endpoints, SDK and webhooks.

Base URL#

EnvironmentURL
Productionhttps://api.veloflux.io
Developmenthttp://localhost:8080

All authenticated endpoints below use the /api prefix — for example, GET https://api.veloflux.io/api/org.

Authentication — Ciatto Accounts only#

Sign-in is exclusively via Ciatto Accounts, in the browser:

  1. Go to https://app.veloflux.io/login and click Continue with Ciatto.
  2. The browser runs Authorization Code + PKCE; the registered callback is https://app.veloflux.io/api/auth/ciatto/callback and, once authorized, the return is /dashboard.
  3. VeloFlux sets secure HttpOnly cookies for the local session.

There is no email/password sign-in, no local registration and no password recovery. The legacy routes return HTTP 410 (410 ciatto_only_authentication): POST /api/auth/login, POST /api/auth/register, password resets and legacy invites. The API does not create users, organizations or permissions at login — the pre-existing VeloFlux account must be linked to the Ciatto Accounts subject.

For automated integrations, use an API key created and authorized by the organization, or a legitimately obtained session credential. Never send your Ciatto password to VeloFlux.

Bearer token

bash
curl https://api.veloflux.io/api/org \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

API keys

Create and manage keys in API Keys in the dashboard:

bash
# List keyscurl https://api.veloflux.io/api/org/api-keys \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Create a keycurl https://api.veloflux.io/api/org/api-keys \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{"name": "ci-automation", "permissions": ["domains:read"], "expires_in_days": 90}'# Revoke a keycurl -X DELETE https://api.veloflux.io/api/org/api-keys/key_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

Rate limits#

Public endpoints

EndpointLimit
GET /api/public/status1 request per IP every 24 hours
GET /api/public/metrics-bootstrap1 request per IP every 24 hours

Authenticated endpoints (as documented in the API)

PlanLimit
Starter100 requests/minute
Pro500 requests/minute
EnterpriseUnlimited

Rate-limit headers:

text
X-RateLimit-Limit: 100X-RateLimit-Remaining: 95X-RateLimit-Reset: 1642694400

Error format#

All errors follow this format:

json
{  "error": "Error message describing what went wrong",  "code": "ERROR_CODE",  "details": {    "field": "Additional context"  }}
CodeMeaning
200Success
201Created
204No content
400Bad request
401Unauthorized
403Forbidden
404Not found
410Gone — use Ciatto Accounts sign-in
429Too many requests (rate limit)
500Internal server error
503Service unavailable

Organization#

bash
# Get the organizationcurl https://api.veloflux.io/api/org \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Plan usage and limitscurl https://api.veloflux.io/api/org/usage \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

Usage response:

json
{  "plan": "starter",  "req_used": 1234567,  "req_limit": 20000000,  "domain_limit": 20,  "node_limit": 3,  "bandwidth": 987654321,  "period": "2026-02"}

Change plan:

bash
curl -X PUT https://api.veloflux.io/api/org/change-plan \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{"plan": "pro"}'

Domains#

bash
# Listcurl https://api.veloflux.io/api/domains \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Createcurl https://api.veloflux.io/api/domains \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{"domain": "example.com"}'# Get / status / deletecurl https://api.veloflux.io/api/domains/dom_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"curl https://api.veloflux.io/api/domains/dom_123/status \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"curl -X DELETE https://api.veloflux.io/api/domains/dom_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

See Domains & DNS for the verification flow.

Upstreams#

bash
# Listcurl https://api.veloflux.io/api/upstreams \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Createcurl https://api.veloflux.io/api/upstreams \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{    "name": "api-backend",    "strategy": "round_robin",    "targets": [{ "url": "https://backend-1.example.com:8080" }]  }'# Update (e.g. switch to weighted)curl -X PUT https://api.veloflux.io/api/upstreams/ups_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{    "name": "api-backend",    "strategy": "weighted",    "targets": [      { "url": "https://backend-1.example.com:8080", "weight": 3 },      { "url": "https://backend-2.example.com:8080", "weight": 2 }    ]  }'# Deletecurl -X DELETE https://api.veloflux.io/api/upstreams/ups_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

Metrics#

bash
# Organization metrics (daily)curl https://api.veloflux.io/api/metrics/org \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Metrics for one domaincurl https://api.veloflux.io/api/metrics/domain/dom_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Live metricscurl https://api.veloflux.io/api/metrics/live \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

Billing (Stripe)#

bash
# Invoicescurl https://api.veloflux.io/api/billing/invoices \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Stripe customer portal sessioncurl -X POST https://api.veloflux.io/api/billing/portal \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Cancel subscriptioncurl -X POST https://api.veloflux.io/api/billing/cancel \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

The Stripe webhook (/api/billing/webhook) uses idempotency via billing_events. See Plans.

Team#

bash
# List memberscurl https://api.veloflux.io/api/org/members \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Change role (viewer / admin / owner)curl -X PUT https://api.veloflux.io/api/org/members/usr_123/role \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{"role": "viewer"}'# Remove a membercurl -X DELETE https://api.veloflux.io/api/org/members/usr_123 \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

Legacy member invites are temporarily unavailable: POST /api/org/invite returns HTTP 410 until Ciatto Accounts-based onboarding is available. New members must be provisioned and linked via Ciatto Accounts.

Nodes / Edge#

bash
# List nodescurl https://api.veloflux.io/api/org/nodes \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Generate a node registration tokencurl -X POST https://api.veloflux.io/api/org/nodes/token \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Status of an SSH installcurl https://api.veloflux.io/api/org/nodes/install/job_123/status \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

See Edge & BYOS.

Public endpoints#

bash
# Public status per domain (1x/day per IP)curl "https://api.veloflux.io/api/public/status?domain=example.com"# Public metrics handshake (ephemeral token, 1x/day per IP)curl https://api.veloflux.io/api/public/metrics-bootstrap# SSE stream of aggregated metrics (with the ephemeral token)curl -N https://api.veloflux.io/api/public/metrics-stream \  -H "Authorization: Bearer ${PUBLIC_METRICS_TOKEN}"

Example SSE event:

text
data: {"updated_at":"2025-01-01T00:00:00Z","hosts":3,"requests":1234,"bytes":45678,"errors":2,"p95_ms":12.3,"p99_ms":21.0}

SDK#

TypeScript SDK available in packages/sdk (@veloflux/sdk):

javascript
import { VeloFluxClient } from '@veloflux/sdk';const client = new VeloFluxClient({  apiUrl: 'https://api.veloflux.io',  accessToken: 'YOUR_TOKEN'});// List domainsconst domains = await client.domains.list();// Create an upstreamconst upstream = await client.upstreams.create({  name: 'my-backend',  strategy: 'round_robin',  targets: [{ url: 'https://backend.example.com' }]});

Python (requests) example with an already authorized token:

python
import osimport requestsresponse = requests.get(    'https://api.veloflux.io/api/org',    headers={'Authorization': f"Bearer {os.environ['VELOFLUX_ACCESS_TOKEN']}"})response.raise_for_status()print(response.json())

Webhooks#

VeloFlux can send webhooks for important events. Documented configuration:

bash
curl -X POST https://api.veloflux.io/api/webhooks \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}" \  -H "Content-Type: application/json" \  -d '{    "url": "https://your-app.com/webhooks/veloflux",    "events": ["domain.verified", "upstream.unhealthy"]  }'

Events

EventMeaning
domain.verifiedDomain verified successfully
domain.errorDomain verification failed
upstream.unhealthyUpstream health check failed
ssl.expiringSSL certificate expiring in 7 days
usage.limit80% of the plan limit reached

Payload format:

json
{  "event": "domain.verified",  "timestamp": "2025-01-14T12:00:00Z",  "data": {    "id": "dom_123",    "domain": "example.com"  }}

Privacy / DSAR#

bash
# Export organization datacurl https://api.veloflux.io/api/privacy/dsar/export \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"# Record consentcurl https://api.veloflux.io/api/privacy/dsar/consent \  -H "Authorization: Bearer ${VELOFLUX_ACCESS_TOKEN}"

Support#