MATIH Platform is in active MVP development. Documentation reflects current implementation status.
8. Platform Services
API Reference

API Reference

Complete endpoint reference for the API Gateway management API. All management endpoints require ADMIN role authorization. The base path is /api/v1/gateway.


Health and Status

MethodPathDescription
GET/api/v1/gateway/healthGet gateway health status (public)

Service Management

MethodPathDescription
GET/api/v1/gateway/servicesList all registered services
POST/api/v1/gateway/servicesCreate or update a service
DELETE/api/v1/gateway/services/:serviceNameDelete a service

Route Management

MethodPathDescription
POST/api/v1/gateway/services/:serviceName/routesCreate or update a route for a service
DELETE/api/v1/gateway/routes/:routeNameDelete a route

Plugin Management

MethodPathDescription
POST/api/v1/gateway/pluginsEnable a plugin (global, service, or route scope)
PATCH/api/v1/gateway/plugins/:pluginIdUpdate plugin configuration
DELETE/api/v1/gateway/plugins/:pluginIdDisable and remove a plugin

Rate Limiting

MethodPathDescription
POST/api/v1/gateway/tenants/:tenantId/rate-limitConfigure rate limiting for a tenant

Traffic Management

MethodPathDescription
POST/api/v1/gateway/services/:serviceName/canaryConfigure canary traffic split
POST/api/v1/gateway/routes/:routeName/mirrorConfigure traffic mirroring

Upstream (Load Balancing) Management

MethodPathDescription
POST/api/v1/gateway/upstreamsCreate or update an upstream
DELETE/api/v1/gateway/upstreams/:upstreamNameDelete an upstream
POST/api/v1/gateway/upstreams/:upstreamName/targetsAdd a target to an upstream
GET/api/v1/gateway/upstreams/:upstreamName/targetsList targets for an upstream
PATCH/api/v1/gateway/upstreams/:upstreamName/targets/:targetAddress/weightUpdate target weight
GET/api/v1/gateway/upstreams/:upstreamName/healthGet upstream target health
POST/api/v1/gateway/upstreams/:upstreamName/targets/:targetAddress/healthySet target as healthy
POST/api/v1/gateway/upstreams/:upstreamName/targets/:targetAddress/unhealthySet target as unhealthy

Load Balancing Presets

MethodPathDescription
POST/api/v1/gateway/upstreams/preset/round-robinConfigure round-robin load balancing
POST/api/v1/gateway/upstreams/preset/weightedConfigure weighted load balancing
POST/api/v1/gateway/upstreams/preset/sticky-headerConfigure sticky sessions by header
POST/api/v1/gateway/upstreams/preset/sticky-cookieConfigure sticky sessions by cookie
POST/api/v1/gateway/upstreams/preset/least-connectionsConfigure least-connections load balancing

Common Response Codes

CodeDescription
200Successful operation
201Resource created
204Resource deleted (no content)
400Invalid request payload
401Missing or invalid authentication
403Insufficient permissions (requires ADMIN role)
404Resource not found
500Internal server error (Kong Admin API unreachable)

Authentication

All management endpoints (except /health) require:

HeaderValueRequired
AuthorizationBearer <JWT token>Yes

The JWT token must contain the ADMIN role claim.