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#
| Environment | URL |
|---|---|
| Production | https://api.veloflux.io |
| Development | http://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:
- Go to https://app.veloflux.io/login and click Continue with Ciatto.
- The browser runs Authorization Code + PKCE; the registered callback is
https://app.veloflux.io/api/auth/ciatto/callbackand, once authorized, the return is/dashboard. - 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
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:
# 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
| Endpoint | Limit |
|---|---|
GET /api/public/status | 1 request per IP every 24 hours |
GET /api/public/metrics-bootstrap | 1 request per IP every 24 hours |
Authenticated endpoints (as documented in the API)
| Plan | Limit |
|---|---|
| Starter | 100 requests/minute |
| Pro | 500 requests/minute |
| Enterprise | Unlimited |
Rate-limit headers:
X-RateLimit-Limit: 100X-RateLimit-Remaining: 95X-RateLimit-Reset: 1642694400Error format#
All errors follow this format:
{ "error": "Error message describing what went wrong", "code": "ERROR_CODE", "details": { "field": "Additional context" }}| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No content |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 410 | Gone — use Ciatto Accounts sign-in |
| 429 | Too many requests (rate limit) |
| 500 | Internal server error |
| 503 | Service unavailable |
Organization#
# 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:
{ "plan": "starter", "req_used": 1234567, "req_limit": 20000000, "domain_limit": 20, "node_limit": 3, "bandwidth": 987654321, "period": "2026-02"}Change plan:
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#
# 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#
# 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#
# 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)#
# 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#
# 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/invitereturns HTTP 410 until Ciatto Accounts-based onboarding is available. New members must be provisioned and linked via Ciatto Accounts.
Nodes / Edge#
# 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#
# 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:
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):
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:
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:
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
| Event | Meaning |
|---|---|
domain.verified | Domain verified successfully |
domain.error | Domain verification failed |
upstream.unhealthy | Upstream health check failed |
ssl.expiring | SSL certificate expiring in 7 days |
usage.limit | 80% of the plan limit reached |
Payload format:
{ "event": "domain.verified", "timestamp": "2025-01-14T12:00:00Z", "data": { "id": "dom_123", "domain": "example.com" }}Privacy / DSAR#
# 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#
- Email: support@veloflux.io
- Documentation: https://docs.veloflux.io
- Status: https://status.veloflux.io