Skip to content

Apinx documentation

Apinx is an API gateway with an embedded console, in one binary. It sits between your callers and your backends: it authenticates callers, applies rate limits and quotas, reshapes requests and responses, and shows you what happened to every request.

Choose your path

Three routes through the manual. Each one is a short, ordered list; follow it from the top.

See it work

About 15 minutes, on your own machine.

  1. Quick start One command, then a protected API through the wizard.
  2. Your first API, step by step The same by hand, with the YAML and the commands.
  3. Architecture What the one binary contains and what it talks to.
  4. Features and value What you get, and how it compares.
  5. Benchmarks The measured numbers and how they were taken.

Build an API

From your own backend to a published, protected API.

  1. Connect your own backend Point an API at your service.
  2. Authentication at a glance Pick how callers prove who they are.
  3. Policies How rules are bound, merged and ordered.
  4. Tutorial: a mobile backend A complete example, with its Postman collection.
  5. Drafts, revisions and deployments Go live, and roll back.

Run it in production

Install, secure, watch and upgrade.

  1. Deploying on Linux systemd, PostgreSQL and nginx on one server.
  2. Security What protects the gateway, the console and your callers.
  3. Grafana and other tools Metrics, logs and traces in the tools you run.
  4. Runbook Backup, restore, outages and health.
  5. Upgrading A new release, step by step.

How it fits together

Callers mobile and web apps partners, services Your team console, apinxctl YAML files APINX · one binary Gateway (data plane) listeners → routing → policy chain → upstreams configuration compiled and held in memory Admin API drafts, revisions deployments Console every screen is an Admin API call Your backends REST · gRPC · SOAP WebSocket · SSE Your tools metrics, logs, traces sent after the answer Store SQLite or PostgreSQL Redis (optional) counters shared by instances requests deploy
  • Callers present an API key, an access token Apinx issued to their application, a JWT from your identity provider, or nothing for public APIs (Authentication at a glance).
  • Backends are your services, or a partner's API that needs its own token; the gateway can obtain that token for them.
  • You work in the console or with YAML files; drafts are validated and deployed as immutable revisions, and rolled back the same way (Architecture).

The four kinds of page

Every page says what kind it is under its title, so you know what to expect from it.

Tutorial

A lesson you follow from start to finish. Begin with the Quick start.

How-to guide

The steps for one task you already have in mind. They are grouped by subject under Build and Operate.

Concept

How a part of Apinx works, and why. Read these under Learn.

Reference

Every field, policy, error code and screen, to look up. See Reference.

Look something up

I want to know Go to
What a policy does and its settings Policy reference
What an error code means Error codes
The fields of the gateway file Gateway configuration
A configuration to copy and adapt YAML samples
What a word means here Glossary
Why a request was refused Troubleshooting