Skip to main content

Management API Schemas

You're reading API Gateway 1.1.0. 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/v1alpha1",
"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/v1alpha1
kindRestApi

RestAPI​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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.

WebSubAPIRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"kind": "WebSubApi",
"metadata": {
"name": "github-events-v1.0"
},
"spec": {
"displayName": "GitHub Events",
"version": "v1.0",
"context": "/github-events/$version",
"channels": [
{
"name": "issues",
"method": "SUB"
},
{
"name": "pull_requests",
"method": "SUB"
}
]
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneAPI specification version
kindstringtruenoneAPI type
metadataMetadatatruenonenone
specWebhookAPIDatatruenonenone

Enumerated Values​

PropertyValue
apiVersiongateway.api-platform.wso2.com/v1alpha1
kindWebSubApi

WebSubAPI​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"kind": "WebSubApi",
"metadata": {
"name": "github-events-v1.0"
},
"spec": {
"displayName": "GitHub Events",
"version": "v1.0",
"context": "/github-events/$version",
"channels": [
{
"name": "issues",
"method": "SUB"
},
{
"name": "pull_requests",
"method": "SUB"
}
]
},
"status": {
"id": "github-events-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
anonymousWebSubAPIRequestfalsenonenone

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",
"sandbox": "sandbox-api.example.com"
},
"subscriptionPlans": [
"Gold",
"Silver"
],
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
],
"operations": [
{
"method": "GET",
"path": "/books/{id}",
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
],
"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/domain for production traffic
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
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.
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)
weightintegerfalsenoneWeight for load balancing (optional, default 100)

UpstreamTimeout​

{
"connect": "5s"
}

Timeout configuration for upstream requests

Properties​

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

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}",
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
methodstringtruenoneHTTP method
pathstringtruenoneRoute path with optional {param} placeholders
policies[Policy]falsenoneList of policies applied only to this operation (overrides or adds to API-level policies)

Enumerated Values​

PropertyValue
methodGET
methodPOST
methodPUT
methodDELETE
methodPATCH
methodHEAD
methodOPTIONS

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)

WebhookAPIData​

{
"displayName": "reading-list-api",
"version": "v1.0",
"context": "/weather",
"vhosts": {
"main": "api.example.com",
"sandbox": "sandbox-api.example.com"
},
"allChannels": {
"on_subscription": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_unsubscription": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_message_received": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_message_delivery": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
},
"channels": {
"property1": {
"on_subscription": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_unsubscription": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_message_received": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_message_delivery": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
},
"property2": {
"on_subscription": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_unsubscription": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_message_received": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_message_delivery": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
}
},
"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)
vhostsobjectfalsenoneCustom virtual hosts/domains for the API
mainstringtruenoneCustom virtual host/domain for production traffic
sandboxstringfalsenoneCustom virtual host/domain for sandbox traffic
allChannelsWebSubAllChannelPoliciesfalsenonePolicies applied to all channels, organized by event type.
channelsobjectfalsenonePer-channel configuration keyed by channel name. Each key is a channel name and defines policies applied only to that channel.
additionalPropertiesWebSubChannelfalsenoneA single channel definition with optional per-channel policy overrides.
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

WebSubChannel​

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

A single channel definition with optional per-channel policy overrides.

Properties​

NameTypeRequiredRestrictionsDescription
on_subscriptionWebSubEventPoliciesfalsenonePolicies for a single event type.
on_unsubscriptionWebSubEventPoliciesfalsenonePolicies for a single event type.
on_message_receivedWebSubEventPoliciesfalsenonePolicies for a single event type.
on_message_deliveryWebSubEventPoliciesfalsenonePolicies for a single event type.

WebSubEventPolicies​

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

Policies for a single event type.

Properties​

NameTypeRequiredRestrictionsDescription
policies[Policy]falsenoneList of policies applied for this event type.

WebSubAllChannelPolicies​

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

Policies applied to all channels, organized by event type.

Properties​

NameTypeRequiredRestrictionsDescription
on_subscriptionWebSubEventPoliciesfalsenonePolicies for a single event type.
on_unsubscriptionWebSubEventPoliciesfalsenonePolicies for a single event type.
on_message_receivedWebSubEventPoliciesfalsenonePolicies for a single event type.
on_message_deliveryWebSubEventPoliciesfalsenonePolicies for a single event type.

WebSubChannelPolicies​

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

Policies applied to a specific channel, organized by event type.

Properties​

NameTypeRequiredRestrictionsDescription
on_subscription[Policy]falsenonePolicies applied when a client subscribes to this channel (e.g., rbac)
on_unsubscription[Policy]falsenonePolicies applied when a client unsubscribes from this channel
on_message_received[Policy]falsenonePolicies applied when a message is received for this channel
on_message_delivery[Policy]falsenonePolicies applied when delivering a message for this channel

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

WebBrokerApiRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"kind": "WebBrokerApi",
"metadata": {
"name": "stock-trading-v1.0"
},
"spec": {
"displayName": "Stock Trading WebBroker API",
"version": "v1.0",
"context": "/stock-trading/$version",
"receiver": {
"name": "websocket-receiver",
"type": "websocket"
},
"broker": {
"name": "kafka-driver",
"type": "kafka",
"properties": {
"brokers": [
"kafka-broker-1:9092",
"kafka-broker-2:9092"
]
}
},
"allChannels": {
"on_connection_init": {
"policies": []
},
"on_produce": {
"policies": []
},
"on_consume": {
"policies": []
}
},
"channels": {
"prices": {
"produceTo": {
"topic": "stock.prices"
},
"consumeFrom": {
"topic": "stock.prices"
},
"on_connection_init": {
"policies": []
},
"on_produce": {
"policies": []
},
"on_consume": {
"policies": []
}
}
}
}
}

Properties​

NameTypeRequiredRestrictionsDescription
apiVersionstringtruenoneAPI specification version
kindstringtruenoneAPI type
metadataMetadatatruenonenone
specWebBrokerApiDatatruenonenone

Enumerated Values​

PropertyValue
apiVersiongateway.api-platform.wso2.com/v1alpha1
kindWebBrokerApi

WebBrokerApi​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"kind": "WebBrokerApi",
"metadata": {
"name": "stock-trading-v1.0"
},
"spec": {
"displayName": "Stock Trading WebBroker API",
"version": "v1.0",
"context": "/stock-trading/$version",
"receiver": {
"name": "websocket-receiver",
"type": "websocket"
},
"broker": {
"name": "kafka-driver",
"type": "kafka",
"properties": {
"brokers": [
"kafka-broker-1:9092",
"kafka-broker-2:9092"
]
}
},
"allChannels": {
"on_connection_init": {
"policies": []
},
"on_produce": {
"policies": []
},
"on_consume": {
"policies": []
}
},
"channels": {
"prices": {
"produceTo": {
"topic": "stock.prices"
},
"consumeFrom": {
"topic": "stock.prices"
},
"on_connection_init": {
"policies": []
},
"on_produce": {
"policies": []
},
"on_consume": {
"policies": []
}
}
}
},
"status": {
"id": "stock-trading-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
anonymousWebBrokerApiRequestfalsenonenone

and

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

WebBrokerApiData​

{
"displayName": "Stock Trading WebBroker API",
"version": "v1.0",
"context": "/stock-trading",
"receiver": {
"name": "websocket-receiver",
"type": "websocket",
"properties": {}
},
"broker": {
"name": "kafka-driver",
"type": "kafka",
"properties": {
"brokers": [
"kafka-broker-1:9092",
"kafka-broker-2:9092"
]
}
},
"allChannels": {
"on_connection_init": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_produce": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_consume": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
},
"channels": {
"property1": {
"produceTo": {
"topic": "stock.prices"
},
"consumeFrom": {
"topic": "stock.prices"
},
"on_connection_init": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_produce": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_consume": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
},
"property2": {
"produceTo": {
"topic": "stock.prices"
},
"consumeFrom": {
"topic": "stock.prices"
},
"on_connection_init": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_produce": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_consume": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
}
},
"vhosts": {
"main": "api.example.com",
"sandbox": "sandbox-api.example.com"
},
"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)
receiverWebBrokerApiReceivertruenoneWebSocket receiver configuration
brokerWebBrokerApiBrokertruenoneMessage broker driver configuration
allChannelsWebBrokerApiAllChannelPoliciesfalsenoneProtocol mediation policies applied to all channels
channelsobjecttruenoneMap of WebSocket channels for bidirectional streaming with Kafka (key is channel name)
additionalPropertiesWebBrokerApiChannelfalsenoneWebSocket channel configuration with Kafka topic mapping
vhostsobjectfalsenoneCustom virtual hosts/domains for the API
mainstringtruenoneCustom virtual host/domain for production traffic
sandboxstringfalsenoneCustom virtual host/domain for sandbox traffic
deploymentStatestringfalsenoneDesired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the API is removed from router traffic but configuration and policies are preserved for potential redeployment.

Enumerated Values​

PropertyValue
deploymentStatedeployed
deploymentStateundeployed

WebBrokerApiReceiver​

{
"name": "websocket-receiver",
"type": "websocket",
"properties": {}
}

WebSocket receiver configuration

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneReceiver name
typestringtruenoneReceiver type
propertiesobjectfalsenoneAdditional receiver properties

WebBrokerApiBroker​

{
"name": "kafka-driver",
"type": "kafka",
"properties": {
"brokers": [
"kafka-broker-1:9092",
"kafka-broker-2:9092"
]
}
}

Message broker driver configuration

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneBroker driver name
typestringtruenoneBroker driver type
propertiesobjecttruenoneBroker driver properties (e.g., bootstrap servers)

WebBrokerApiAllChannelPolicies​

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

Protocol mediation policies applied to all channels

Properties​

NameTypeRequiredRestrictionsDescription
on_connection_initWebBrokerApiPolicyGroupfalsenoneGroup of policies
on_produceWebBrokerApiPolicyGroupfalsenoneGroup of policies
on_consumeWebBrokerApiPolicyGroupfalsenoneGroup of policies

WebBrokerApiPolicyGroup​

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

Group of policies

Properties​

NameTypeRequiredRestrictionsDescription
policies[Policy]falsenoneList of policies to apply

WebBrokerApiChannel​

{
"produceTo": {
"topic": "stock.prices"
},
"consumeFrom": {
"topic": "stock.prices"
},
"on_connection_init": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_produce": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
},
"on_consume": {
"policies": [
{
"name": "cors",
"version": "v1",
"executionCondition": "request.metadata[authenticated] != true",
"params": {}
}
]
}
}

WebSocket channel configuration with Kafka topic mapping

Properties​

NameTypeRequiredRestrictionsDescription
produceToWebBrokerApiProduceConfigfalsenoneConfiguration for producing messages from WebSocket to Kafka
consumeFromWebBrokerApiConsumeConfigfalsenoneConfiguration for consuming messages from Kafka to WebSocket
on_connection_initWebBrokerApiPolicyGroupfalsenoneGroup of policies
on_produceWebBrokerApiPolicyGroupfalsenoneGroup of policies
on_consumeWebBrokerApiPolicyGroupfalsenoneGroup of policies

WebBrokerApiProduceConfig​

{
"topic": "stock.prices"
}

Configuration for producing messages from WebSocket to Kafka

Properties​

NameTypeRequiredRestrictionsDescription
topicstringtruenoneKafka topic to produce messages to

WebBrokerApiConsumeConfig​

{
"topic": "stock.prices"
}

Configuration for consuming messages from Kafka to WebSocket

Properties​

NameTypeRequiredRestrictionsDescription
topicstringtruenoneKafka topic to consume messages from

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/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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/v1alpha1
kindMcp

MCPProxyConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"kind": "Mcp",
"metadata": {
"name": "everything-mcp-v1.0"
},
"spec": {
"displayName": "Everything",
"version": "v1.0",
"context": "/everything",
"specVersion": "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",
"specVersion": "2025-06-18",
"vhost": "mcp1.example.com",
"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"
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringtruenoneHuman-readable MCP Proxy display name
versionstringtruenoneMCP Proxy version
contextstringfalsenoneMCP Proxy context path
specVersionstringfalsenoneMCP specification version
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).
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.

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/v1alpha1",
"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/v1alpha1
kindLlmProviderTemplate

LLMProviderTemplate​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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",
"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
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/v1alpha1",
"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/v1alpha1
kindLlmProvider

LLMProviderConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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"
]
}
]
}
},
"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",
"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"
]
}
]
},
"policies": [
{
"name": "llm-cost-based-ratelimit",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"deploymentState": "deployed"
}

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
upstreamanytruenonenone

allOf

NameTypeRequiredRestrictionsDescription
anonymousUpstreamfalsenoneUpstream backend configuration (single target or reference)

and

NameTypeRequiredRestrictionsDescription
anonymousUpstreamAuthfalsenonenone

continued

NameTypeRequiredRestrictionsDescription
accessControlLLMAccessControltruenonenone
policies[LLMPolicy]falsenoneList of policies applied only to this operation (overrides or adds to API-level policies)
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.

Enumerated Values​

PropertyValue
deploymentStatedeployed
deploymentStateundeployed

UpstreamAuth​

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

Properties​

NameTypeRequiredRestrictionsDescription
authobjectfalsenonenone
typestringtruenonenone
headerstringfalsenonenone
valuestringfalsenonenone

Enumerated Values​

PropertyValue
typeapi-key

LLMUpstreamAuth​

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

Properties​

NameTypeRequiredRestrictionsDescription
typestringtruenonenone
headerstringfalsenonenone
valuestringfalsenonenone

Enumerated Values​

PropertyValue
typeapi-key

LLMProxyProvider​

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

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneUnique id of a deployed llm provider
authLLMUpstreamAuthfalsenonenone

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.

LLMProxyConfigurationRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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/v1alpha1
kindLlmProxy

LLMProxyConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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"
}
},
"policies": [
{
"name": "llm-cost-based-ratelimit",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"deploymentState": "deployed"
}

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
policies[LLMPolicy]falsenoneList of policies applied only to this operation (overrides or adds to API-level policies)
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.

Enumerated Values​

PropertyValue
deploymentStatedeployed
deploymentStateundeployed

SecretConfigurationRequest​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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/v1alpha1
kindSecret

SecretConfiguration​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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/v1alpha1",
"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/v1alpha1
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/v1alpha1",
"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/v1alpha1",
"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/v1alpha1
kindSecret

SecretConfigurationResponseRetrieved​

{
"apiVersion": "gateway.api-platform.wso2.com/v1alpha1",
"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/v1alpha1
kindSecret

Was this page helpful?