Documentation
Everything you need to ship against APIFlow
Base URL: https://api.apiflow.systems — all endpoints accept and return JSON over TLS 1.3, authenticate with Bearer tokens and follow consistent pagination, versioning and error conventions.
Quickstart
Live in four commands
1
apiflow login Authenticate the CLI against your tenant.
2
apiflow import spec.yaml Generate routes from your OpenAPI schema.
3
apiflow deploy --canary 5% Push routes to the edge with canary traffic.
4
apiflow watch Tail live metrics, traces and errors.
Gateway API
Create, inspect and retire routes on every gateway in your estate.
/v1/routes List all active gateway routes with upstream targets, policies and live health status.
/v1/routes Create a route from a declarative definition. Validated against the schema before activation.
/v1/routes/{id} Update route matching, transforms or upstream weights. Hot-reloaded without dropping connections.
/v1/routes/{id} Retire a route gracefully: drain in-flight requests, then remove from all 31 edges.
Keys & Authentication
Issue, rotate and revoke credentials; inspect quota usage per key.
/v1/keys Issue a scoped API key bound to a gateway, environment and rate-limit plan.
/v1/keys/{id}/usage Retrieve per-key usage against its quota window, with projected exhaustion time.
/v1/keys/{id}/rotate Rotate a key with an overlap grace period so consumers can cut over safely.
/v1/keys/{id} Revoke an API key instantly across the entire edge fleet.
Policies
Manage rate limits and enforcement policies, with traffic dry-runs.
/v1/policies List rate-limiting, auth and transform policies across all gateways and environments.
/v1/policies/{id} Update a policy. Changes propagate to every edge location in under five seconds.
/v1/policies/{id}/dry-run Replay a policy against the last 24 hours of traffic and see exactly what it would have blocked.
Monitoring
Pull metrics and traces, and manage alert routing.
/v1/metrics/traffic Query traffic metrics by route, status class, region and time window at one-second granularity.
/v1/traces/{id} Fetch a stitched OpenTelemetry trace from client through gateway to upstream service.
/v1/alerts Create threshold or anomaly alert rules with routing to PagerDuty, Slack or email.
Webhooks
Subscribe to lifecycle events with HMAC-signed deliveries.
/v1/webhooks Register a webhook target for deployment, quota and incident events, signed with HMAC.
/v1/webhooks/{id}/deliveries Inspect delivery attempts, response codes and replay any failed delivery.
Conventions
Boring APIs, on purpose
- Versioned in the path (
/v1) with published sunset headers - Cursor pagination on every list endpoint via
?cursor= - RFC 9457 problem+json error bodies with stable machine-readable codes
- Idempotency keys honoured on all mutating requests
- Rate-limit state in every response:
X-RateLimit-*headers
SDKs & Tooling
Generated from the same schema
| TypeScript / Node.js | @apiflow/sdk |
| Python | apiflow-sdk |
| Go | github.com/apiflow/go-sdk |
| Java | systems.apiflow:sdk |
| Ruby | apiflow-sdk (gem) |
| CLI | apiflow-cli (brew, apt, npm) |
Cannot find what you need?
Our engineers answer documentation questions directly — no support tiers, no ticket triage. Ask us anything.