This is the authoritative reference for the API7 EE Admin API, covering both control-plane and runtime endpoints.
API7 EE distinguishes between design-time (control-plane) and runtime (gateway) resources.
- Control-plane Prefix:
/api(e.g.,/api/gateway-groups) - Runtime Prefix:
/apisix/admin(e.g.,/apisix/admin/routes) - Default Port: 7443 (HTTPS)
Authentication is required for all requests via the X-API-KEY header. API7 EE uses prefixed tokens to distinguish access levels:
| Prefix | Type | Description |
|---|---|---|
a7ee |
Access Token | General API access (RBAC-controlled) |
Most runtime resources are scoped by a Gateway Group. When performing operations on runtime resources (/apisix/admin/*), you must provide the gateway_group_id as a query parameter.
Example: GET /apisix/admin/routes?gateway_group_id=default
{
"value": {
"id": "resource-id",
"name": "resource-name",
...
}
}{
"total": 100,
"list": [
{
"id": "id-1",
"name": "name-1",
...
},
...
]
}{
"message": "Detailed error message"
}API7 EE uses JSON Patch (RFC 6902) for PATCH operations. The request body must be an array of patch objects.
[
{ "op": "replace", "path": "/status", "value": 0 },
{ "op": "add", "path": "/labels/env", "value": "prod" }
]Manage logical groupings of gateway instances.
- Methods:
GET(list),GET /:id,POST(create),PUT /:id(update),DELETE /:id
Design-time service definitions used to generate runtime services.
- Methods:
GET(list),GET /:id,POST,PUT /:id,DELETE /:id
All runtime resources require gateway_group_id query parameter.
- Methods:
GET(list),GET /:id,POST(create),PUT /:id(create/update),PATCH /:id,DELETE /:id - Fields:
id,name,uris,methods,host,hosts,plugins,upstream_id,service_id,status.
- Methods:
GET,GET /:id,POST,PUT /:id,PATCH /:id,DELETE /:id - Fields:
id,name,type,nodes(object/array),checks,scheme.
- Methods:
GET,GET /:id,POST,PUT /:id,PATCH /:id,DELETE /:id - Fields:
id,name,upstream_id,plugins.
- Methods:
GET,GET /:username,PUT(idempotent create/update),DELETE /:username - Note: Identified by
username.
- Methods:
GET,GET /:id,POST,PUT /:id,PATCH /:id,DELETE /:id - Fields:
cert,key,snis,status.
- Methods:
GET,GET /:id,PUT /:id,DELETE /:id
- Methods:
GET,GET /:id,POST,DELETE /:id
- Methods:
GET,GET /:id,PUT /:id,DELETE /:id
- Methods:
GET /:plugin_name,PUT /:plugin_name,DELETE /:plugin_name
- Methods:
GET,GET /:id,PUT /:id,DELETE /:id
- Methods:
GET,GET /:id,PUT /:id,DELETE /:id
- Methods:
GET,GET /:manager/:id,PUT /:manager/:id,DELETE /:manager/:id
- Methods:
GET,GET /:id,POST,DELETE /:id
- Methods:
GET /apisix/admin/plugins/list: List plugin names.GET /apisix/admin/plugins/:name: Get plugin schema.
| Resource | Prefix | Identifier | Scope |
|---|---|---|---|
| Gateway Group | /api |
id |
Global |
| Service Template | /api |
id |
Global |
| Route | /apisix/admin |
id |
Gateway Group |
| Upstream | /apisix/admin |
id |
Gateway Group |
| Service | /apisix/admin |
id |
Gateway Group |
| Consumer | /apisix/admin |
username |
Gateway Group |
| SSL | /apisix/admin |
id |
Gateway Group |
| Global Rule | /apisix/admin |
id |
Gateway Group |
| Stream Route | /apisix/admin |
id |
Gateway Group |
| Plugin Config | /apisix/admin |
id |
Gateway Group |
| Plugin Metadata | /apisix/admin |
plugin_name |
Gateway Group |
| Consumer Group | /apisix/admin |
id |
Gateway Group |
| Credential | /apisix/admin |
id |
Consumer |
| Secret | /apisix/admin |
manager/id |
Gateway Group |
| Proto | /apisix/admin |
id |
Gateway Group |
| Plugin | /apisix/admin |
name |
Gateway Group |