Skip to main content

Version: latest

Quick Start

This quickstart walks you through deploying API7 Gateway locally with Docker Compose, creating your first service and route, and verifying that API traffic is proxied through the gateway.

Time to complete: ~10 minutes

Prerequisites

RequirementMinimum Version
Dockerv20.10+
Docker Composev2.0+
curlAny
API7 Enterprise licenseGet a trial license

Step 1: Install API7 Gateway

Run the quickstart script to deploy all API7 Gateway components:

curl -sL "https://run.api7.ai/api7/quickstart" | bash

This starts the Control Plane, Dashboard, DP Manager, Gateway, PostgreSQL, and Prometheus. Wait for the script to complete. You should see output similar to:

✔ Container api7-ee-postgresql
✔ Container api7-ee-prometheus
✔ Container api7-ee-api7-ee-dashboard
✔ Container api7-ee-api7-ee-dp-manager
✔ Container api7-ee-api7-ee-gateway
...
✔ API7-EE is ready!

Verify all containers are running:

docker ps

You should see containers for api7-ee-gateway, api7-ee-dashboard, api7-ee-dp-manager, api7-ee-postgresql, and api7-ee-prometheus.

Step 2: Activate API7 Gateway

  1. Open your browser and navigate to https://localhost:7443.

  2. Log in with the default credentials:

    FieldValue
    Usernameadmin
    Passwordadmin
  3. Upload your API7 Enterprise license to activate the platform.

The quickstart automatically creates a default gateway group with a gateway instance. You can verify this by navigating to Gateway Groups in the Dashboard sidebar.

If you want to use the Admin API in the next steps, create a token by following Obtain a Token from the Dashboard, then export it as an environment variable:

export API_KEY="a7ee-xxxxxxxxxxxxx"

Step 3: Create a Service and Route

Create a published service that proxies requests to httpbin.org:

  1. In the Dashboard sidebar, navigate to the default gateway group and click Published Services.

  2. Click Add ServiceAdd Manually.

  3. Configure the service:

    FieldValue
    Namehttpbin
    Service TypeHTTP (Layer 7 Proxy)
    Upstream SchemeHTTP
    How to find the upstreamUse Nodes
  4. Click Add Node and configure:

    FieldValue
    Hosthttpbin.org
    Port80
    Weight100
  5. Click Add to create the service.

  6. Click the httpbin service, then click Add Route.

  7. Configure the route:

    FieldValue
    Nameget-anything
    Path/anything/*
    MethodsGET
  8. Click Add.

Step 4: Verify the Proxy

Send a request through the gateway:

curl "http://127.0.0.1:9080/anything/hello"

Expected response:

{
"args": {},
"headers": {
"Host": "127.0.0.1",
"User-Agent": "curl/8.x.x"
},
"method": "GET",
"url": "http://127.0.0.1/anything/hello"
}

A 200 OK response confirms that API7 Gateway is successfully proxying requests to the upstream httpbin.org service.

Stop API7 Gateway

To stop all services, navigate to the api7-ee directory created by the quickstart script and run:

bash run.sh stop

Next Steps

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2026. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation