Skip to main content

Management API Schemas

You're reading AI Gateway 2026.09.24. The newest release is 1.2.0. Go to the newest release

ResourceStatus​

{
"id": "reading-list-api-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}

Server-managed lifecycle information for a resource

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique identifier assigned by the server (equal to metadata.name)
statestringfalsenoneDesired deployment state reported by the server
createdAtstring(date-time)falsenoneTimestamp when the resource was first created (UTC)
updatedAtstring(date-time)falsenoneTimestamp when the resource was last updated (UTC)
deployedAtstring(date-time)falsenoneTimestamp when the resource was last deployed (omitted when undeployed)
Enumerated Values​
PropertyValue
statedeployed
stateundeployed

RestAPIRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "RestApi",
"metadata": {
"name": "reading-list-api-v1.0"
},
"spec": {
"displayName": "Reading-List-API",
"version": "v1.0",
"context": "/reading-list/$version",
"upstream": {
"main": {
"url": "https://apis.bijira.dev/samples/reading-list-api-service/v1.0"
}
},
"policies": [
{
"name": "set-headers",
"version": "v1",
"params": {
"request": {
"headers": [
{
"name": "x-wso2-apip-gateway-version",
"value": "v1.0.0"
}
]
},
"response": {
"headers": [
{
"name": "x-environment",
"value": "development"
}
]
}
}
}
],
"operations": [
{
"method": "GET",
"path": "/books"
},
{
"method": "POST",
"path": "/books"
},
{
"method": "GET",
"path": "/books/{id}"
},
{
"method": "PUT",
"path": "/books/{id}"
},
{
"method": "DELETE",
"path": "/books/{id}"
}
]
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneAPI specification version
kindstringtruenoneAPI type
metadataMetadatatruenonenone
specAPIConfigDatatruenonenone
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindRestApi

RestAPI​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "RestApi",
"metadata": {
"name": "reading-list-api-v1.0"
},
"spec": {
"displayName": "Reading-List-API",
"version": "v1.0",
"context": "/reading-list/$version",
"upstream": {
"main": {
"url": "https://apis.bijira.dev/samples/reading-list-api-service/v1.0"
}
},
"policies": [
{
"name": "set-headers",
"version": "v1",
"params": {
"request": {
"headers": [
{
"name": "x-wso2-apip-gateway-version",
"value": "v1.0.0"
}
]
},
"response": {
"headers": [
{
"name": "x-environment",
"value": "development"
}
]
}
}
}
],
"operations": [
{
"method": "GET",
"path": "/books"
},
{
"method": "POST",
"path": "/books"
},
{
"method": "GET",
"path": "/books/{id}"
},
{
"method": "PUT",
"path": "/books/{id}"
},
{
"method": "DELETE",
"path": "/books/{id}"
}
]
},
"status": {
"id": "reading-list-api-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousRestAPIRequestfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.

Metadata​

{
"name": "reading-list-api-v1.0",
"labels": {
"environment": "production",
"team": "backend",
"version": "v1"
},
"annotations": {
"gateway.api-platform.wso2.com/project-id": "019d953f-d386-7a64-aa92-1869a28292e0"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneUnique handle for the resource
labelsobjectfalsenoneLabels are key-value pairs for organizing and selecting APIs. Keys must not contain spaces.
additionalPropertiesstringfalsenonenone
annotationsobjectfalsenoneAnnotations are arbitrary non-identifying metadata. Use domain-prefixed keys.
additionalPropertiesstringfalsenonenone

APIConfigData​

{
"displayName": "Reading List API",
"version": "v1.0",
"context": "/reading-list/$version",
"upstreamDefinitions": [
{
"name": "my-upstream-1",
"basePath": "/api/v2",
"timeout": {
"connect": "5s"
},
"upstreams": [
{
"url": "http://prod-backend-1:5000",
"weight": 80
}
]
}
],
"upstream": {
"main": {
"url": "http://prod-backend:5000/api/v2",
"ref": "string",
"hostRewrite": "auto"
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"ref": "string",
"hostRewrite": "auto"
}
},
"vhosts": {
"main": "api.example.com;docs.example.com;*.example.com",
"sandbox": "sandbox-api.example.com"
},
"subscriptionPlans": [
"Gold",
"Silver"
],
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"resilience": {
"timeout": "15s",
"idleTimeout": "0s"
},
"operations": [
{
"method": "GET",
"path": "/books/{id}",
"match": {
"method": "GET",
"path": {
"value": "/books/{id}",
"type": "Exact"
},
"headers": [
{
"name": "version",
"value": "one",
"type": "Exact"
}
]
},
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"resilience": {
"timeout": "15s",
"idleTimeout": "0s"
}
}
],
"deploymentState": "deployed"
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable API name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
versionstringtruenoneSemantic version of the API
contextstringtruenoneBase path for all API routes (must start with /, no trailing slash). Use $version to embed the version in the path (e.g., /reading-list/$version resolves to /reading-list/v1.0).
upstreamDefinitions[UpstreamDefinition]falsenoneList of reusable upstream definitions with optional timeout configurations
upstreamobjecttruenoneAPI-level upstream configuration
mainUpstreamtruenoneUpstream backend configuration (single target or reference)
sandboxUpstreamfalsenoneUpstream backend configuration (single target or reference)
vhostsobjectfalsenoneCustom virtual hosts/domains for the API
mainstringtruenoneCustom virtual host(s)/domain(s) for production traffic. One or more hostnames
separated by ';' — each hostname serves the main upstream (e.g. when a Gateway API
HTTPRoute attaches to multiple listener hostnames). The first entry is the primary
vhost. Each hostname may be a wildcard such as *.example.com.
sandboxstringfalsenoneCustom virtual host/domain for sandbox traffic
subscriptionPlans[string]falsenoneList of subscription plan names available for this API
policies[Policy]falsenoneList of API-level policies applied to all operations unless overridden
resilienceResiliencefalsenoneBackend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
operations[Operation]truenoneList of HTTP operations/routes
deploymentStatestringfalsenoneDesired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the API is removed from router traffic but configuration, API keys, and policies are preserved for potential redeployment.
Enumerated Values​
PropertyValue
deploymentStatedeployed
deploymentStateundeployed

UpstreamDefinition​

{
"name": "my-upstream-1",
"basePath": "/api/v2",
"timeout": {
"connect": "5s"
},
"upstreams": [
{
"url": "http://prod-backend-1:5000",
"weight": 80
}
]
}

Reusable upstream configuration with optional timeout and load balancing settings

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneUnique identifier for this upstream definition
basePathstringfalsenoneBase path prefix for all endpoints in this upstream (e.g., /api/v2). All requests to this upstream will have this path prepended. Must start with '/' and must not end with '/'; omit for root.
timeoutUpstreamTimeoutfalsenoneTimeout configuration for upstream requests
upstreams[object]truenoneList of backend targets with optional weights for load balancing
urlstring(uri)truenoneBackend URL (host and port only, path comes from basePath)
weightintegerfalsenoneRelative weight for load balancing across multiple upstream targets. Reserved for future multi-target load balancing; not applied yet (only the first target is currently used).

UpstreamTimeout​

{
"connect": "5s"
}

Timeout configuration for upstream requests

Properties​

NameTypeRequiredRestrictionsDescription
connectstringfalsenoneConnection timeout duration (e.g., "5s", "500ms")

Resilience​

{
"timeout": "15s",
"idleTimeout": "0s"
}

Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.

Properties​

NameTypeRequiredRestrictionsDescription
timeoutstringfalsenoneMaximum time for the entire route (request to upstream response). "0s" disables the timeout.
idleTimeoutstringfalsenonePer-route stream idle timeout (overrides the listener stream idle timeout for this route). "0s" disables the timeout.

Upstream​

{
"url": "http://prod-backend:5000/api/v2",
"ref": "string",
"hostRewrite": "auto"
}

Upstream backend configuration (single target or reference)

Properties​

NameTypeRequiredRestrictionsDescription
urlstring(uri)falsenoneDirect backend URL to route traffic to
refstringfalsenoneReference to a predefined upstreamDefinition
hostRewritestringfalsenoneControls how the Host header is handled when routing to the upstream. auto delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. manual disables automatic rewriting and expects explicit configuration.

oneOf

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

xor

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
Enumerated Values​
PropertyValue
hostRewriteauto
hostRewritemanual

Operation​

{
"method": "GET",
"path": "/books/{id}",
"match": {
"method": "GET",
"path": {
"value": "/books/{id}",
"type": "Exact"
},
"headers": [
{
"name": "version",
"value": "one",
"type": "Exact"
}
]
},
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"resilience": {
"timeout": "15s",
"idleTimeout": "0s"
}
}

An operation is matched either by the simple top-level method+path form, or by the richer 'match' block (method + path + headers). When 'match' is present it is authoritative and the top-level method/path are ignored. At least one form must be provided.

Properties​

NameTypeRequiredRestrictionsDescription
methodOperationMethodfalsenoneHTTP method (simple form; ignored when 'match' is set)
pathstringfalsenoneRoute path with optional {param} placeholders (simple form; ignored when 'match' is set)
matchOperationMatchfalsenoneRequest matching criteria for an operation. Extensible with query params, cookies, etc.
policies[Policy]falsenoneList of policies applied only to this operation (overrides or adds to API-level policies)
resilienceResiliencefalsenoneBackend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.

OperationMethod​

"GET"

HTTP method

Properties​

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenoneHTTP method
Enumerated Values​
PropertyValue
anonymousGET
anonymousPOST
anonymousPUT
anonymousDELETE
anonymousPATCH
anonymousHEAD
anonymousOPTIONS

OperationMatch​

{
"method": "GET",
"path": {
"value": "/books/{id}",
"type": "Exact"
},
"headers": [
{
"name": "version",
"value": "one",
"type": "Exact"
}
]
}

Request matching criteria for an operation. Extensible with query params, cookies, etc.

Properties​

NameTypeRequiredRestrictionsDescription
methodOperationMethodtruenoneHTTP method
pathOperationPathMatchtruenonenone
headers[OperationHeaderMatch]falsenoneHeader matchers ANDed with the path match for Envoy route selection

OperationPathMatch​

{
"value": "/books/{id}",
"type": "Exact"
}

Properties​

NameTypeRequiredRestrictionsDescription
valuestringtruenoneRoute path with optional {param} placeholders
typestringfalsenonePath matching semantics for the operation route
Enumerated Values​
PropertyValue
typeExact
typePathPrefix

OperationHeaderMatch​

{
"name": "version",
"value": "one",
"type": "Exact"
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneHeader name (case-insensitive)
valuestringtruenoneHeader value to match
typestringfalsenoneHeader match type
Enumerated Values​
PropertyValue
typeExact
typeRegularExpression

Policy​

{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneName of the policy
versionstringtruenoneVersion of the policy. Only major-only version is allowed (e.g., v0, v1). Full semantic version (e.g., v1.0.0) is not accepted and will be rejected. The Gateway Controller resolves the major version to the single matching full version installed in the gateway image.
executionConditionstringfalsenoneExpression controlling conditional execution of the policy
paramsobjectfalsenoneArbitrary parameters for the policy (free-form key/value structure)

Channel​

{
"name": "issues",
"method": "SUB",
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}

Channel (topic/event stream) definition for async APIs.

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneChannel name or topic identifier relative to API context.
methodstringtruenoneOperation method type.
policies[Policy]falsenoneList of policies applied only to this channel (overrides or adds to API-level policies)
Enumerated Values​
PropertyValue
methodSUB

APIKeyCreationRequest​

{
"name": "my-production-key"
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringfalsenoneIdentifier of the API key. If not provided, a default identifier will be generated
apiKeystringfalsenoneOptional plain-text API key value for external key injection.
If provided, this key will be used instead of generating a new one.
The key will be hashed before storage. The key can be in any format
(minimum 36 characters). Use this for injecting externally generated
API keys.
maskedApiKeystringfalsenoneMasked version of the API key for display purposes.
Provided by the platform API when injecting pre-hashed keys.
expiresInobjectfalsenoneExpiration duration for the API key
unitstringtruenoneTime unit for expiration
durationintegertruenoneDuration value for expiration
expiresAtstring(date-time)falsenoneExpiration timestamp. If both expiresIn and expiresAt are provided, expiresAt takes precedence.
externalRefIdstringfalsenoneExternal reference ID for the API key.
This field is optional and used for tracing purposes only.
The gateway generates its own internal ID for tracking.
issuerstringfalsenoneIdentifies the portal that created this key. If provided, only api keys generated from
the same portal will be accepted. If not provided, there is no portal restriction.
Enumerated Values​
PropertyValue
unitseconds
unitminutes
unithours
unitdays
unitweeks
unitmonths

APIKeyCreationResponse​

{
"status": "success",
"message": "API key generated successfully",
"remainingApiKeyQuota": 9,
"apiKey": {
"name": "my-production-key",
"displayName": "My Production Key",
"apiKey": "apip_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"apiId": "reading-list-api-v1.0",
"status": "active",
"createdAt": "2026-04-01T10:30:00Z",
"createdBy": "admin",
"expiresAt": null,
"source": "local"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenonenone
messagestringtruenonenone
remainingApiKeyQuotaintegerfalsenoneRemaining API key quota for the user
apiKeyAPIKeyfalsenoneDetails of an API key

APIKey​

{
"name": "my-production-key",
"displayName": "My Production Key",
"apiKey": "apip_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"apiId": "reading-list-api-v1.0",
"status": "active",
"createdAt": "2026-04-01T10:30:00Z",
"createdBy": "admin",
"expiresAt": null,
"source": "local"
}

Details of an API key

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneURL-safe identifier for the API key (auto-generated from displayName, immutable, used as path parameter)
displayNamestringfalsenoneHuman-readable name for the API key (user-provided, mutable)
apiKeystringfalsenoneGenerated API key with apip_ prefix
apiIdstringtruenoneUnique public identifier of the API that the key is associated with
statusstringtruenoneStatus of the API key
createdAtstring(date-time)truenoneTimestamp when the API key was generated
createdBystringtruenoneIdentifier of the user who generated the API key
expiresAtstring(date-time)¦nulltruenoneExpiration timestamp (null if no expiration)
sourcestringtruenoneSource of the API key (local or external)
externalRefIdstringfalsenoneExternal reference ID for the API key
Enumerated Values​
PropertyValue
statusactive
statusrevoked
statusexpired
sourcelocal
sourceexternal

APIKeyRegenerationRequest​

{}

Properties​

NameTypeRequiredRestrictionsDescription
expiresInobjectfalsenoneExpiration duration for the API key
unitstringtruenoneTime unit for expiration
durationintegertruenoneDuration value for expiration
expiresAtstring(date-time)falsenoneExpiration timestamp
Enumerated Values​
PropertyValue
unitseconds
unitminutes
unithours
unitdays
unitweeks
unitmonths

APIKeyUpdateRequest​

{
"name": "my-production-key"
}

Properties​

None

APIKeyRevocationResponse​

{
"status": "success",
"message": "API key revoked successfully"
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenonenone
messagestringtruenonenone

SubscriptionPlanCreateRequest​

{
"planName": "Gold",
"billingPlan": "COMMERCIAL",
"stopOnQuotaReach": true,
"throttleLimitCount": 1000,
"throttleLimitUnit": "Hour",
"expiryTime": "2026-12-31T23:59:59Z",
"status": "ACTIVE"
}

Properties​

NameTypeRequiredRestrictionsDescription
planNamestringtruenonenone
billingPlanstringfalsenonenone
stopOnQuotaReachbooleanfalsenonenone
throttleLimitCountintegerfalsenonenone
throttleLimitUnitstringfalsenonenone
expiryTimestring(date-time)falsenonenone
statusstringfalsenonenone
Enumerated Values​
PropertyValue
throttleLimitUnitMin
throttleLimitUnitHour
throttleLimitUnitDay
throttleLimitUnitMonth
statusACTIVE
statusINACTIVE

SubscriptionPlanUpdateRequest​

{
"planName": "string",
"billingPlan": "string",
"stopOnQuotaReach": true,
"throttleLimitCount": 0,
"throttleLimitUnit": "Min",
"expiryTime": "2019-08-24T14:15:22Z",
"status": "ACTIVE"
}

Properties​

NameTypeRequiredRestrictionsDescription
planNamestringfalsenonenone
billingPlanstringfalsenonenone
stopOnQuotaReachbooleanfalsenonenone
throttleLimitCountintegerfalsenonenone
throttleLimitUnitstringfalsenonenone
expiryTimestring(date-time)falsenonenone
statusstringfalsenonenone
Enumerated Values​
PropertyValue
throttleLimitUnitMin
throttleLimitUnitHour
throttleLimitUnitDay
throttleLimitUnitMonth
statusACTIVE
statusINACTIVE

SubscriptionPlanResponse​

{
"id": "string",
"planName": "string",
"billingPlan": "string",
"stopOnQuotaReach": true,
"throttleLimitCount": 0,
"throttleLimitUnit": "string",
"expiryTime": "2019-08-24T14:15:22Z",
"gatewayId": "string",
"status": "ACTIVE",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
planNamestringfalsenonenone
billingPlanstringfalsenonenone
stopOnQuotaReachbooleanfalsenonenone
throttleLimitCountintegerfalsenonenone
throttleLimitUnitstringfalsenonenone
expiryTimestring(date-time)falsenonenone
gatewayIdstringfalsenonenone
statusstringfalsenonenone
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
Enumerated Values​
PropertyValue
statusACTIVE
statusINACTIVE

SubscriptionPlanListResponse​

{
"subscriptionPlans": [
{
"id": "string",
"planName": "string",
"billingPlan": "string",
"stopOnQuotaReach": true,
"throttleLimitCount": 0,
"throttleLimitUnit": "string",
"expiryTime": "2019-08-24T14:15:22Z",
"gatewayId": "string",
"status": "ACTIVE",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"count": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
subscriptionPlans[SubscriptionPlanResponse]falsenonenone
countintegerfalsenonenone

SubscriptionCreateRequest​

{
"apiId": "c9f2b6ae-1234-5678-9abc-def012345678",
"subscriptionToken": "sub-token-abc123xyz",
"applicationId": "string",
"subscriptionPlanId": "string",
"billingCustomerId": "string",
"billingSubscriptionId": "string",
"status": "ACTIVE"
}

Properties​

NameTypeRequiredRestrictionsDescription
apiIdstringtruenoneAPI identifier (deployment ID or handle)
subscriptionTokenstringtruenoneOpaque subscription token for API invocation (required; stored as hash only)
applicationIdstringfalsenoneApplication identifier (from DevPortal/STS). Optional for token-based subscriptions.
subscriptionPlanIdstringfalsenoneSubscription plan UUID for rate limit and billing configuration.
billingCustomerIdstringfalsenoneBilling customer identifier (optional, for analytics tracking).
billingSubscriptionIdstringfalsenoneBilling subscription identifier (optional, for analytics tracking).
statusstringfalsenonenone
Enumerated Values​
PropertyValue
statusACTIVE
statusINACTIVE
statusREVOKED

SubscriptionUpdateRequest​

{
"status": "ACTIVE"
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringfalsenonenone
Enumerated Values​
PropertyValue
statusACTIVE
statusINACTIVE
statusREVOKED

SubscriptionResponse​

{
"id": "string",
"apiId": "string",
"applicationId": "string",
"subscriptionToken": "string",
"subscriptionPlanId": "string",
"billingCustomerId": "string",
"billingSubscriptionId": "string",
"gatewayId": "string",
"status": "ACTIVE",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
apiIdstringfalsenonenone
applicationIdstringfalsenonenone
subscriptionTokenstringfalsenoneOpaque subscription token (returned only on create; use Platform-API to retrieve for existing subscriptions)
subscriptionPlanIdstringfalsenoneSubscription plan UUID
billingCustomerIdstringfalsenoneBilling customer identifier
billingSubscriptionIdstringfalsenoneBilling subscription identifier
gatewayIdstringfalsenonenone
statusstringfalsenonenone
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
Enumerated Values​
PropertyValue
statusACTIVE
statusINACTIVE
statusREVOKED

SubscriptionListResponse​

{
"subscriptions": [
{
"id": "string",
"apiId": "string",
"applicationId": "string",
"subscriptionToken": "string",
"subscriptionPlanId": "string",
"billingCustomerId": "string",
"billingSubscriptionId": "string",
"gatewayId": "string",
"status": "ACTIVE",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"count": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
subscriptions[SubscriptionResponse]falsenonenone
countintegerfalsenonenone

MCPProxyConfigurationRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneMCP Proxy specification version
kindstringtruenoneMCP Proxy type
metadataMetadatatruenonenone
specMCPProxyConfigDatatruenonenone
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindMcp

MCPProxyConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18"
],
"upstream": {
"url": "http://everything:3001"
},
"tools": [],
"resources": [],
"prompts": []
},
"status": {
"id": "everything-mcp-v1.0",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousMCPProxyConfigurationRequestfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.

MCPProxyConfigData​

{
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersions": [
"2025-06-18",
"2026-07-28"
],
"vhost": "mcp1.example.com",
"upstreamDefinitions": [
{
"name": "my-upstream-1",
"basePath": "/api/v2",
"timeout": {
"connect": "5s"
},
"upstreams": [
{
"url": "http://prod-backend-1:5000",
"weight": 80
}
]
}
],
"upstream": {
"url": "http://prod-backend:5000/api/v2",
"ref": "string",
"hostRewrite": "auto",
"auth": {
"type": "api-key",
"header": "string",
"value": "string"
}
},
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"tools": [
{
"name": "string",
"title": "string",
"description": "string",
"inputSchema": "string",
"outputSchema": "string"
}
],
"resources": [
{
"uri": "string",
"name": "string",
"title": "string",
"description": "string",
"mimeType": "string",
"size": 0
}
],
"prompts": [
{
"name": "string",
"title": "string",
"description": "string",
"arguments": [
{
"name": "string",
"description": "string",
"required": true,
"title": "string"
}
]
}
],
"deploymentState": "deployed",
"resilience": {
"timeout": "15s",
"idleTimeout": "0s"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable MCP Proxy display name
versionstringtruenoneMCP Proxy version
contextstringfalsenoneMCP Proxy context path
specVersionstringfalsenoneDEPRECATED - use specVersions. Still honored when specVersions is absent. Cannot be used together with specVersions.
specVersions[string]falsenoneMCP specification versions supported by this proxy. This gateway build explicitly supports MCP specification versions 2025-06-18, 2025-11-25, and 2026-07-28.
vhoststringfalsenoneVirtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
upstreamDefinitions[UpstreamDefinition]falsenoneList of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
upstreamanytruenoneThe backend MCP server url and auth configurations

allOf

NameTypeRequiredRestrictionsDescription
anonymousUpstreamfalsenoneUpstream backend configuration (single target or reference)

and

NameTypeRequiredRestrictionsDescription
anonymousUpstreamAuthfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
policies[Policy]falsenoneList of MCP Proxy level policies applied
tools[MCPTool]falsenonenone
resources[MCPResource]falsenonenone
prompts[MCPPrompt]falsenonenone
deploymentStatestringfalsenoneDesired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the MCP Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
resilienceResiliencefalsenoneAPI-level backend/route timeout configuration. Applies to the traffic-forwarding routes generated for this MCP proxy (GET/POST/DELETE on the MCP resource path). Supported at the API level only. Because MCP transports are long-lived streams, the route timeout defaults to disabled ("0s") for MCP unless a timeout is set here (unlike REST/LLM, which fall back to the gateway's global route timeout); the idle timeout remains the liveness guard.
Enumerated Values​
PropertyValue
deploymentStatedeployed
deploymentStateundeployed

MCPTool​

{
"name": "string",
"title": "string",
"description": "string",
"inputSchema": "string",
"outputSchema": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneUnique identifier for the tool
titlestringfalsenoneOptional human-readable name of the tool for display purposes.
descriptionstringtruenoneHuman-readable description of functionality
inputSchemastringtruenoneJSON Schema defining expected parameters
outputSchemastringfalsenoneOptional JSON Schema defining expected output structure

MCPResource​

{
"uri": "string",
"name": "string",
"title": "string",
"description": "string",
"mimeType": "string",
"size": 0
}

Properties​

NameTypeRequiredRestrictionsDescription
uristringtruenoneUnique identifier for the resource
namestringtruenoneThe name of the resource
titlestringfalsenoneOptional human-readable name of the resource for display purposes
descriptionstringfalsenoneOptional description
mimeTypestringfalsenoneOptional MIME type
sizeintegerfalsenoneOptional size in bytes

MCPPrompt​

{
"name": "string",
"title": "string",
"description": "string",
"arguments": [
{
"name": "string",
"description": "string",
"required": true,
"title": "string"
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneUnique identifier for the prompt
titlestringfalsenoneOptional human-readable name of the prompt for display purposes
descriptionstringfalsenoneOptional human-readable description
arguments[object]falsenoneOptional list of arguments for customization
namestringtruenoneName of the argument
descriptionstringfalsenoneDescription of the argument
requiredbooleanfalsenoneWhether the argument is required
titlestringfalsenoneOptional human-readable title of the argument

ErrorResponse​

{
"status": "error",
"message": "Configuration validation failed",
"errors": [
{
"field": "spec.context",
"message": "Context must start with / and cannot end with /"
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenonenone
messagestringtruenoneHigh-level error description
errors[ValidationError]falsenoneDetailed validation errors

ValidationError​

{
"field": "spec.context",
"message": "Context must start with / and cannot end with /"
}

Properties​

NameTypeRequiredRestrictionsDescription
fieldstringfalsenoneField that failed validation
messagestringfalsenoneHuman-readable error message

LLMProviderTemplateRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "LlmProviderTemplate",
"metadata": {
"name": "openai-template"
},
"spec": {
"displayName": "OpenAI",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.prompt_tokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.completion_tokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.total_tokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
}
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneTemplate specification version
kindstringtruenoneTemplate kind
metadataMetadatatruenonenone
specLLMProviderTemplateDatatruenonenone
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindLlmProviderTemplate

LLMProviderTemplate​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "LlmProviderTemplate",
"metadata": {
"name": "openai-template"
},
"spec": {
"displayName": "OpenAI",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.prompt_tokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.completion_tokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.total_tokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
}
},
"status": {
"id": "openai-template",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z"
}
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousLLMProviderTemplateRequestfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.

LLMProviderTemplateData​

{
"displayName": "OpenAI",
"groupId": "openai",
"managedBy": "wso2",
"version": "v1.0",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"remainingTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"responseModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"resourceMappings": {
"resources": [
{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"remainingTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"responseModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
}
}
]
}
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable LLM Template name
groupIdstringfalsenoneStable family-grouping identifier shared by every version of this
template. Multiple versions with the same groupId but different
handles are surfaced as versions of one template. Defaults to
metadata.name when omitted.
managedBystringfalsenoneOrigin of the template. Built-in templates use 'wso2'; custom
templates default to 'customer' and may be set to any value.
versionstringfalsenoneTemplate content version (e.g. v1.0). Multiple versions of the same
groupId can coexist; defaults to v1.0 when omitted.
promptTokensExtractionIdentifierfalsenonenone
completionTokensExtractionIdentifierfalsenonenone
totalTokensExtractionIdentifierfalsenonenone
remainingTokensExtractionIdentifierfalsenonenone
requestModelExtractionIdentifierfalsenonenone
responseModelExtractionIdentifierfalsenonenone
resourceMappingsLLMProviderTemplateResourceMappingsfalsenonenone

LLMProviderTemplateResourceMappings​

{
"resources": [
{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"remainingTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"responseModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
resources[LLMProviderTemplateResourceMapping]falsenonenone

LLMProviderTemplateResourceMapping​

{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"remainingTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"responseModel": {
"location": "payload",
"identifier": "$.usage.inputTokens"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
resourcestringtruenoneResource path pattern for this mapping
promptTokensExtractionIdentifierfalsenonenone
completionTokensExtractionIdentifierfalsenonenone
totalTokensExtractionIdentifierfalsenonenone
remainingTokensExtractionIdentifierfalsenonenone
requestModelExtractionIdentifierfalsenonenone
responseModelExtractionIdentifierfalsenonenone

ExtractionIdentifier​

{
"location": "payload",
"identifier": "$.usage.inputTokens"
}

Properties​

NameTypeRequiredRestrictionsDescription
locationstringtruenoneWhere to find the token information
identifierstringtruenoneJSONPath expression or header name to identify the token value
Enumerated Values​
PropertyValue
locationpayload
locationheader
locationqueryParam
locationpathParam

LLMProviderConfigurationRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "LlmProvider",
"metadata": {
"name": "wso2-openai-provider"
},
"spec": {
"displayName": "OpenAI Provider",
"version": "v1.0",
"template": "openai",
"context": "/openai/latest",
"upstream": {
"url": "https://api.openai.com/v1",
"auth": {
"type": "api-key",
"header": "Authorization",
"value": "Bearer sk-your-api-key"
}
},
"accessControl": {
"mode": "deny_all",
"exceptions": [
{
"path": "/chat/completions",
"methods": [
"POST"
]
},
{
"path": "/models",
"methods": [
"GET"
]
},
{
"path": "/models/{modelId}",
"methods": [
"GET"
]
}
]
}
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneProvider specification version
kindstringtruenoneProvider kind
metadataMetadatatruenonenone
specLLMProviderConfigDatatruenonenone
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindLlmProvider

LLMProviderConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "LlmProvider",
"metadata": {
"name": "wso2-openai-provider"
},
"spec": {
"displayName": "OpenAI Provider",
"version": "v1.0",
"template": "openai",
"context": "/openai/latest",
"upstream": {
"url": "https://api.openai.com/v1",
"auth": {
"type": "api-key",
"header": "Authorization"
}
},
"accessControl": {
"mode": "deny_all",
"exceptions": [
{
"path": "/chat/completions",
"methods": [
"POST"
]
},
{
"path": "/models",
"methods": [
"GET"
]
},
{
"path": "/models/{modelId}",
"methods": [
"GET"
]
}
]
}
},
"status": {
"id": "wso2-openai-provider",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousLLMProviderConfigurationRequestfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.

LLMProviderConfigData​

{
"displayName": "WSO2 OpenAI Provider",
"version": "v1.0",
"context": "/openai",
"vhost": "api.openai.com",
"template": "openai",
"upstreamDefinitions": [
{
"name": "my-upstream-1",
"basePath": "/api/v2",
"timeout": {
"connect": "5s"
},
"upstreams": [
{
"url": "http://prod-backend-1:5000",
"weight": 80
}
]
}
],
"upstream": {
"url": "http://prod-backend:5000/api/v2",
"ref": "string",
"hostRewrite": "auto",
"auth": {
"type": "api-key",
"header": "string",
"value": "string"
}
},
"accessControl": {
"mode": "deny_all",
"exceptions": [
{
"path": "/chat/completions",
"methods": [
"GET"
]
}
]
},
"globalPolicies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"operationPolicies": [
{
"name": "token-based-ratelimit",
"version": "v1",
"executionCondition": "string",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"policies": [
{
"name": "llm-cost-based-ratelimit",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"deploymentState": "deployed",
"resilience": {
"timeout": "15s",
"idleTimeout": "0s"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable LLM Provider name
versionstringtruenoneSemantic version of the LLM Provider
contextstringfalsenoneBase path for all API routes (must start with /, no trailing slash)
vhoststringfalsenoneVirtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
templatestringtruenoneTemplate name to use for this LLM Provider
upstreamDefinitions[UpstreamDefinition]falsenoneList of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
upstreamanytruenonenone

allOf

NameTypeRequiredRestrictionsDescription
anonymousUpstreamfalsenoneUpstream backend configuration (single target or reference)

and

NameTypeRequiredRestrictionsDescription
anonymousUpstreamAuthfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
accessControlLLMAccessControltruenonenone
globalPolicies[Policy]falsenoneGlobal (api-level) policies applied across ALL operations as one shared scope, evaluated before operation-level policies.
operationPolicies[OperationPolicy]falsenoneOperation-level policies scoped to specific paths/methods, evaluated after global policies.
policies[LLMPolicy]falsenoneDEPRECATED - use operationPolicies. Still honoured (treated identically to operationPolicies).
deploymentStatestringfalsenoneDesired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the LLM Provider is removed from router traffic but configuration and policies are preserved for potential redeployment.
resilienceResiliencefalsenoneAPI-level backend/route timeout configuration. Applies to all routes generated for this LLM Provider (the routes that forward traffic upstream). Supported at the API level only - LLM routes are synthesized by the gateway, so there is no operation-level override.
Enumerated Values​
PropertyValue
deploymentStatedeployed
deploymentStateundeployed

UpstreamAuth​

{
"auth": {
"type": "api-key",
"policyName": "string",
"policyVersion": "string",
"policyParams": {},
"header": "string",
"value": "string"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
authobjectfalsenonenone
typestringtruenoneAuth mechanism to attach: api-key, oauth2, other, or none.
policyNamestringfalsenonePolicy to attach. Optional for api-key/oauth2 (built-in default); required for other.
policyVersionstringfalsenoneMajor version of policyName to attach (e.g. "v1"). Defaults to the highest version loaded.
policyParamsobjectfalsenoneParameters passed to the attached policy. Required for oauth2 and other.
headerstringfalsedeprecatedDEPRECATED - use policyParams. Request header to set when type is api-key.
valuestringfalsewrite-only, deprecatedDEPRECATED - use policyParams. Upstream credential when type is api-key.
Enumerated Values​
PropertyValue
typeapi-key
typeoauth2
typeother
typenone

LLMUpstreamAuth​

{
"type": "api-key",
"policyName": "string",
"policyVersion": "string",
"policyParams": {},
"header": "string",
"value": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
typestringtruenoneAuth mechanism to attach: api-key, oauth2, other, or none.
policyNamestringfalsenonePolicy to attach. Optional for api-key/oauth2 (built-in default); required for other.
policyVersionstringfalsenoneMajor version of policyName to attach (e.g. "v1"). Defaults to the highest version loaded.
policyParamsobjectfalsenoneParameters passed to the attached policy. Required for oauth2 and other.
headerstringfalsedeprecatedDEPRECATED - use policyParams. Request header to set when type is api-key.
valuestringfalsewrite-only, deprecatedDEPRECATED - use policyParams. Upstream credential when type is api-key.
Enumerated Values​
PropertyValue
typeapi-key
typeoauth2
typeother
typenone

LLMProxyProvider​

{
"id": "wso2-openai-provider",
"auth": {
"type": "api-key",
"header": "string",
"value": "string"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneUnique id of a deployed llm provider
authLLMUpstreamAuthfalsenonenone

LLMProxyAdditionalProvider​

{
"id": "anthropic-provider",
"as": "anthropic-upstream",
"auth": {
"type": "api-key",
"header": "string",
"value": "string"
},
"transformer": {
"type": "openai-to-anthropic",
"version": "v1",
"params": {}
}
}

Additional LLM provider attached to this proxy as a selectable upstream. Policies route to it by referring to the as name (defaults to id). Optional auth config is used by the proxy when calling a protected LlmProvider over the internal loopback route.

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneUnique id of a deployed llm provider
asstringfalsenoneLogical LLM Provider name used by policies to select this provider. Must be unique within the proxy. Defaults to id when omitted.
authLLMUpstreamAuthfalsenonenone
transformerLLMProxyTransformerfalsenoneRequest/response translator applied when this provider is the selected upstream. The proxy injects the translator as a conditional policy whose execution condition matches this provider, so it runs only when the provider is selected. The provider's as name (defaults to id) is passed to the translator as its target upstream.

LLMProxyTransformer​

{
"type": "openai-to-anthropic",
"version": "v1",
"params": {}
}

Request/response translator applied when this provider is the selected upstream. The proxy injects the translator as a conditional policy whose execution condition matches this provider, so it runs only when the provider is selected. The provider's as name (defaults to id) is passed to the translator as its target upstream.

Properties​

NameTypeRequiredRestrictionsDescription
typestringtruenoneTranslator policy name (for example openai-to-anthropic).
versionstringtruenoneMajor-only translator policy version (for example v1). The Gateway Controller resolves it to the installed full version.
paramsobjectfalsenoneTranslator-specific parameters (for example model, apiVersion).

LLMAccessControl​

{
"mode": "deny_all",
"exceptions": [
{
"path": "/chat/completions",
"methods": [
"GET"
]
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
modestringtruenoneAccess control mode
exceptions[RouteException]falsenonePath exceptions to the access control mode
Enumerated Values​
PropertyValue
modeallow_all
modedeny_all

RouteException​

{
"path": "/chat/completions",
"methods": [
"GET"
]
}

Properties​

NameTypeRequiredRestrictionsDescription
pathstringtruenonePath pattern
methods[string]truenoneHTTP methods

LLMPolicy​

{
"name": "llm-cost-based-ratelimit",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
versionstringtruenonenone
paths[LLMPolicyPath]truenonenone

LLMPolicyPath​

{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
pathstringtruenonenone
methods[string]truenonenone
paramsobjecttruenoneJSON Schema describing the parameters accepted by this policy. This itself is a JSON Schema document.

OperationPolicy​

{
"name": "token-based-ratelimit",
"version": "v1",
"executionCondition": "string",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
versionstringtruenonenone
executionConditionstringfalsenoneExpression controlling conditional execution of the policy
paths[OperationPolicyPath]truenonenone

OperationPolicyPath​

{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
pathstringtruenonenone
methods[string]truenonenone
paramsobjecttruenoneJSON Schema describing the parameters accepted by this policy. This itself is a JSON Schema document.

LLMProxyConfigurationRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "LlmProxy",
"metadata": {
"name": "openai-proxy"
},
"spec": {
"displayName": "OpenAI Proxy",
"version": "v1.0",
"context": "/openai-proxy",
"provider": {
"id": "wso2-openai-provider"
},
"policies": []
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneProxy specification version
kindstringtruenoneProxy kind
metadataMetadatatruenonenone
specLLMProxyConfigDatatruenonenone
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindLlmProxy

LLMProxyConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "LlmProxy",
"metadata": {
"name": "openai-proxy"
},
"spec": {
"displayName": "OpenAI Proxy",
"version": "v1.0",
"context": "/openai-proxy",
"provider": {
"id": "wso2-openai-provider"
},
"policies": []
},
"status": {
"id": "openai-proxy",
"state": "deployed",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z",
"deployedAt": "2026-04-24T07:21:13Z"
}
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousLLMProxyConfigurationRequestfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.

LLMProxyConfigData​

{
"displayName": "OpenAI Proxy",
"version": "v1.0",
"context": "/openai",
"vhost": "api.openai.com",
"provider": {
"id": "wso2-openai-provider",
"auth": {
"type": "api-key",
"header": "string",
"value": "string"
}
},
"globalPolicies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"operationPolicies": [
{
"name": "token-based-ratelimit",
"version": "v1",
"executionCondition": "string",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"additionalProviders": [
{
"id": "anthropic-provider",
"as": "anthropic-upstream",
"auth": {
"type": "api-key",
"header": "string",
"value": "string"
},
"transformer": {
"type": "openai-to-anthropic",
"version": "v1",
"params": {}
}
}
],
"policies": [
{
"name": "llm-cost-based-ratelimit",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"deploymentState": "deployed",
"resilience": {
"timeout": "15s",
"idleTimeout": "0s"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable LLM proxy name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
versionstringtruenoneSemantic version of the LLM proxy
contextstringfalsenoneBase path for all API routes (must start with /, no trailing slash)
vhoststringfalsenoneVirtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
providerLLMProxyProvidertruenonenone
globalPolicies[Policy]falsenoneGlobal (api-level) policies applied across ALL operations as one shared scope, evaluated before operation-level policies.
operationPolicies[OperationPolicy]falsenoneOperation-level policies scoped to specific paths/methods, evaluated after global policies.
additionalProviders[LLMProxyAdditionalProvider]falsenoneOptional list of additional LLM providers attached to this proxy as selectable upstreams. Policies (e.g. an OpenAI translator) can route requests to any of these by setting the upstream name. The primary provider field above remains the default upstream and the FK target.
policies[LLMPolicy]falsenoneDEPRECATED - use operationPolicies. Still honoured (treated identically to operationPolicies).
deploymentStatestringfalsenoneDesired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the LLM Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
resilienceResiliencefalsenoneAPI-level backend/route timeout configuration. Applies to all routes generated for this LLM Proxy (the routes that forward traffic upstream). Supported at the API level only - LLM routes are synthesized by the gateway, so there is no operation-level override.
Enumerated Values​
PropertyValue
deploymentStatedeployed
deploymentStateundeployed

SecretConfigurationRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Secret",
"metadata": {
"name": "database-password"
},
"spec": {
"displayName": "Database Password",
"description": "PostgreSQL main database password",
"value": "sup3rs3cr3t!"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneSecret specification version
kindstringtruenoneSecret resource kind
metadataMetadatatruenonenone
specSecretConfigDatatruenonenone
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindSecret

SecretConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Secret",
"metadata": {
"name": "database-password"
},
"spec": {
"displayName": "Database Password",
"description": "PostgreSQL main database password",
"value": "sup3rs3cr3t!"
},
"status": {
"id": "database-password",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z"
}
}

Composite of request fields plus a generic k8s-style status for documentation. For actual HTTP response shapes, use SecretConfigurationResponseCreateUpdate, SecretConfigurationResponseRetrieved, or SecretListItem (see SecretResourceServiceStatus for the id/timestamp-only status on secret APIs).

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousSecretConfigurationRequestfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Populated on responses.

SecretConfigData​

{
"displayName": "Database Password",
"description": "PostgreSQL main database password",
"value": "sup3rs3cr3t!"
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable secret name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
descriptionstringfalsenoneDescription of the secret
valuestring(password)truenoneSecret value (stored encrypted)

SecretConfigListData​

{
"displayName": "Database Password",
"description": "PostgreSQL main database password"
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable secret name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
descriptionstringfalsenoneDescription of the secret, if the server includes it

SecretListItem​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Secret",
"metadata": {
"name": "database-password"
},
"spec": {
"displayName": "Database Password"
},
"status": {
"id": "database-password",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneSecret specification version
kindstringtruenoneSecret resource kind
metadataMetadatatruenonenone
specSecretConfigListDatatruenonenone
statusResourceStatusfalseread-onlyServer-managed lifecycle fields. Omitted in list items may vary; the secret value is never included here.
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindSecret

CertificateUploadRequest​

{
"name": "my-custom-ca",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIDXTCCAkWgAwIBAgIJAKL0UG+mRKtjMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\n...\n-----END CERTIFICATE-----\n"
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneUnique name for the certificate. Must be unique across all certificates.
certificatestringtruenonePEM-encoded X.509 certificate(s). Can contain multiple certificates.

CertificateResponse​

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-custom-ca",
"subject": "CN=My CA,O=My Organization,C=US",
"issuer": "CN=My CA,O=My Organization,C=US",
"notAfter": "2026-11-26 06:07:26",
"count": 1,
"message": "Certificate uploaded and SDS updated successfully",
"status": "success"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique identifier (UUID) for the certificate
namestringfalsenoneName of the certificate
subjectstringfalsenoneCertificate subject DN (for first cert if bundle)
issuerstringfalsenoneCertificate issuer DN (for first cert if bundle)
notAfterstring(date-time)falsenoneCertificate expiration date (for first cert if bundle)
countintegerfalsenoneNumber of certificates in the file
messagestringfalsenoneSuccess or informational message
statusstringfalsenonenone
Enumerated Values​
PropertyValue
statussuccess
statuserror

CertificateListResponse​

{
"certificates": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-custom-ca",
"subject": "CN=My CA,O=My Organization,C=US",
"issuer": "CN=My CA,O=My Organization,C=US",
"notAfter": "2026-11-26 06:07:26",
"count": 1,
"message": "Certificate uploaded and SDS updated successfully",
"status": "success"
}
],
"totalCount": 3,
"totalBytes": 221599,
"status": "success"
}

Properties​

NameTypeRequiredRestrictionsDescription
certificates[CertificateResponse]falsenonenone
totalCountintegerfalsenoneTotal number of certificate files
totalBytesintegerfalsenoneTotal bytes of all certificate files
statusstringfalsenonenone

APIKeyListResponse​

{
"apiKeys": [
{
"name": "my-production-key",
"displayName": "My Production Key",
"apiKey": "apip_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"apiId": "reading-list-api-v1.0",
"status": "active",
"createdAt": "2026-04-01T10:30:00Z",
"createdBy": "admin",
"expiresAt": null,
"source": "local"
}
],
"totalCount": 3,
"status": "success"
}

Properties​

NameTypeRequiredRestrictionsDescription
apiKeys[APIKey]falsenone[Details of an API key]
totalCountintegerfalsenoneTotal number of API keys
statusstringfalsenonenone

SecretListResponse​

{
"status": "success",
"count": 5,
"secrets": [
{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Secret",
"metadata": {
"name": "database-password"
},
"spec": {
"displayName": "Database Password"
},
"status": {
"id": "database-password",
"createdAt": "2026-04-24T07:21:13Z",
"updatedAt": "2026-04-24T07:21:13Z"
}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringfalsenonenone
countintegerfalsenoneTotal number of secrets
secrets[SecretListItem]falsenoneList of secrets. For security, the spec.value field is omitted for every item in the list; retrieve a single secret by id to obtain the decrypted value.

SecretResourceServiceStatus​

{
"id": "database-password",
"createdAt": "2026-01-05T10:30:00Z",
"updatedAt": "2026-01-05T10:30:00Z"
}

Id and optional timestamps. Not the full ResourceStatus model (no state or deployedAt).

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneSame as metadata.name / secret handle
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone

SecretConfigurationResponseCreateUpdate​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Secret",
"metadata": {
"name": "database-password"
},
"spec": {
"displayName": "Database Password",
"description": "PostgreSQL main database password"
},
"status": {
"id": "database-password",
"createdAt": "2026-01-05T10:30:00Z",
"updatedAt": "2026-01-05T10:30:00Z"
}
}

POST/PUT /secrets response. spec.value is not returned; see SecretConfigurationRequest for create/update request bodies.

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenonenone
kindstringtruenonenone
metadataMetadatatruenonenone
specSecretConfigListDatatruenonenone
statusSecretResourceServiceStatustruenoneId and optional timestamps. Not the full ResourceStatus model (no state or
deployedAt).
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindSecret

SecretConfigurationResponseRetrieved​

{
"apiVersion": "gateway.api-platform.wso2.com/v1",
"kind": "Secret",
"metadata": {
"name": "database-password"
},
"spec": {
"displayName": "Database Password",
"description": "PostgreSQL main database password",
"value": "sup3rs3cr3t!"
},
"status": {
"id": "database-password",
"createdAt": "2026-01-05T10:30:00Z",
"updatedAt": "2026-01-05T10:30:00Z"
}
}

GET /secrets/{id} response including decrypted spec.value.

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenonenone
kindstringtruenonenone
metadataMetadatatruenonenone
specSecretConfigDatatruenonenone
statusSecretResourceServiceStatustruenoneId and optional timestamps. Not the full ResourceStatus model (no state or
deployedAt).
Enumerated Values​
PropertyValue
apiVersiongateway.api-platform.wso2.com/v1
kindSecret

Was this page helpful?