Skip to main content

Platform API: Schemas

APIKeyItem​

{
"id": "string",
"displayName": "string",
"maskedApiKey": "string",
"status": "active",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "john.doe",
"updatedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"issuer": "api-platform-devportal",
"allowedTargets": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneURL-safe handle (identifier) of the API key (generated from displayName when not supplied)
displayNamestringtruenoneHuman-readable display name of the API key
maskedApiKeystringtruenoneMasked representation of the API key for display purposes
statusstringtruenoneCurrent status of the key
createdAtstring(date-time)truenoneTimestamp when the key was created
createdBystringtrueread-onlyUser identifier of the user who created this resource
updatedAtstring(date-time)truenoneTimestamp when the key was last updated
expiresAtstring(date-time)falsenoneOptional expiration timestamp
issuerstringfalsenoneOptional identifier of the API Portal that provisioned this key
allowedTargetsstringtruenoneComma-separated list of allowed gateways; 'ALL' means unrestricted
Enumerated Values​
PropertyValue
statusactive
statusrevoked
statusexpired

UserAPIKeyItem​

{
"id": "string",
"displayName": "string",
"maskedApiKey": "string",
"status": "active",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "john.doe",
"updatedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"issuer": "api-platform-devportal",
"allowedTargets": "string",
"artifactId": "wso2-openai-provider",
"artifactType": "RestApi"
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousAPIKeyItemfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
artifactIdstringtruenoneHandle (ID) of the artifact this key belongs to
artifactTypestringtruenoneType of the artifact this key belongs to
Enumerated Values​
PropertyValue
artifactTypeRestApi
artifactTypeLlmProvider
artifactTypeLlmProxy

UserAPIKeyListResponse​

{
"list": [
{
"id": "string",
"displayName": "string",
"maskedApiKey": "string",
"status": "active",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "john.doe",
"updatedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"issuer": "api-platform-devportal",
"allowedTargets": "string",
"artifactId": "wso2-openai-provider",
"artifactType": "RestApi"
}
],
"count": 0,
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
list[UserAPIKeyItem]truenoneList of API keys
countintegertruenoneNumber of API keys in current response
paginationPaginationtruenonenone

LLMProviderAPIKeyListResponse​

{
"list": [
{
"id": "string",
"displayName": "string",
"maskedApiKey": "string",
"status": "active",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "john.doe",
"updatedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"issuer": "api-platform-devportal",
"allowedTargets": "string"
}
],
"count": 0,
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
list[APIKeyItem]truenoneList of API keys
countintegertruenoneNumber of API keys in current response
paginationPaginationtruenonenone

LLMProxyAPIKeyListResponse​

{
"list": [
{
"id": "string",
"displayName": "string",
"maskedApiKey": "string",
"status": "active",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "john.doe",
"updatedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"issuer": "api-platform-devportal",
"allowedTargets": "string"
}
],
"count": 0,
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
list[APIKeyItem]truenoneList of API keys
countintegertruenoneNumber of API keys in current response
paginationPaginationtruenonenone

Organization​

{
"id": "acme",
"displayName": "Acme Corporation",
"region": "us",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtrueread-onlyHandle (URL-friendly slug) for the organization
displayNamestringtruenoneHuman-readable name for the organization
regionstringtruenoneGeographic region where the organization operates
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource
createdAtstring(date-time)falseread-onlyTimestamp when the organization was created
updatedAtstring(date-time)falseread-onlyTimestamp when the organization was last updated

CreateProjectRequest​

{
"id": "default-project",
"displayName": "Default Project",
"description": "This is the default project for development"
}

Request body for creating a project. Organization ID is automatically extracted from the JWT token and does not need to be provided.

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneHandle (URL-friendly slug) for the project. Auto-generated from displayName if not provided.
displayNamestringtruenoneHuman-readable name for the project
descriptionstringfalsenoneDescription of the project

Project​

{
"id": "default-project",
"displayName": "Default Project",
"description": "This is the default project for development",
"organizationId": "acme",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtrueread-onlyHandle (URL-friendly slug) for the project
displayNamestringtruenoneHuman-readable name for the project
descriptionstringfalsenoneDescription of the project
organizationIdstringtrueread-onlyHandle (URL-friendly slug) of the organization this project belongs to
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /projects/{projectId}), omitted from list responses.
createdAtstring(date-time)falseread-onlyTimestamp when the project was created
updatedAtstring(date-time)falseread-onlyTimestamp when the project was last updated

ApplicationType​

"genai"

Type of the application

Properties​

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenoneType of the application
Enumerated Values​
PropertyValue
anonymousgenai

CreateApplicationRequest​

{
"id": "my-app-handle",
"displayName": "GenAI Demo App",
"projectId": "default-project",
"type": "genai",
"description": "Sample GenAI application"
}

Request body for creating an application.

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle/identifier for the application. Can be provided during creation or auto-generated.
displayNamestringtruenoneHuman-readable name for the application
projectIdstringtruenoneHandle (URL-friendly slug) of the project this application belongs to.
typeApplicationTypetruenoneType of the application
descriptionstringfalsenoneDescription of the application

Application​

{
"id": "my-app-handle",
"displayName": "GenAI Demo App",
"projectId": "default-project",
"type": "genai",
"description": "Sample GenAI application",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2025-11-15T10:30:00Z",
"updatedAt": "2025-11-15T11:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneApplication handle/identifier
displayNamestringtruenoneHuman-readable name for the application
projectIdstringtruenoneHandle (URL-friendly slug) of the project this application belongs to
typeApplicationTypetruenoneType of the application
descriptionstringfalsenoneDescription of the application
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /applications/{appId}), omitted from list responses.
createdAtstring(date-time)falseread-onlynone
updatedAtstring(date-time)falseread-onlynone

ApplicationListResponse​

{
"count": 2,
"list": [
{
"id": "my-app-handle",
"displayName": "GenAI Demo App",
"projectId": "default-project",
"type": "genai",
"description": "Sample GenAI application",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2025-11-15T10:30:00Z",
"updatedAt": "2025-11-15T11:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[Application]truenonenone
paginationPaginationtruenonenone

AddApplicationAPIKeysRequest​

{
"apiKeys": [
{
"keyId": "client-key-1",
"associatedEntity": {
"id": "pizza-api"
}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
apiKeys[APIKeyMappingSelector]truenoneList of API key selectors to add to the application mappings

AddApplicationAssociationsRequest​

{
"associations": [
{
"id": "provider-handle",
"kind": "LlmProvider"
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
associations[ApplicationAssociationSelector]truenoneList of association selectors to add to the application

ApplicationAssociationSelector​

{
"id": "provider-handle",
"kind": "LlmProvider"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneID or handle of the association target
kindstringtruenoneType of the association target
Enumerated Values​
PropertyValue
kindLlmProvider
kindLlmProxy

ApplicationAssociation​

{
"id": "provider-handle",
"displayName": "OpenAI Provider",
"version": "v1.0",
"kind": "LlmProvider",
"createdAt": "2025-11-15T10:30:00Z",
"updatedAt": "2025-11-15T11:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneHandle/ID of the associated target
displayNamestringtruenoneHuman-readable name for the associated target
versionstringtruenoneVersion of the associated target
kindstringtruenoneType of associated target
createdAtstring(date-time)falsenoneTimestamp when the association was created
updatedAtstring(date-time)falsenoneTimestamp when the association was updated

ApplicationAssociationListResponse​

{
"count": 2,
"list": [
{
"id": "provider-handle",
"displayName": "OpenAI Provider",
"version": "v1.0",
"kind": "LlmProvider",
"createdAt": "2025-11-15T10:30:00Z",
"updatedAt": "2025-11-15T11:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[ApplicationAssociation]truenonenone
paginationPaginationtruenonenone

APIKeyMappingSelector​

{
"keyId": "client-key-1",
"associatedEntity": {
"id": "pizza-api"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
keyIdstringtruenoneAPI key name
associatedEntityAPIKeyMappingAssociatedEntitytruenonenone

APIKeyMappingAssociatedEntity​

{
"id": "pizza-api"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneID of the entity that owns the API key

AssociatedEntity​

{
"id": "pizza-api",
"kind": "RestApi"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneID of the associated entity
kindstringtruenoneType of the associated entity

MappedAPIKey​

{
"keyId": "client-key-1",
"associatedEntity": {
"id": "pizza-api",
"kind": "RestApi"
},
"status": "ACTIVE",
"userId": "john.doe",
"createdAt": "2025-11-15T10:30:00Z",
"updatedAt": "2025-11-15T11:30:00Z",
"expiresAt": "2026-11-15T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
keyIdstringtruenoneName of the API key
associatedEntityAssociatedEntitytruenonenone
statusstringfalsenoneStatus of the API key
userIdstringfalseread-onlyUser identifier of the user who created this resource
createdAtstring(date-time)falsenoneTimestamp when the API key was created
updatedAtstring(date-time)falsenoneTimestamp when the API key was updated
expiresAtstring(date-time)falsenoneExpiration timestamp of the API key

MappedAPIKeyListResponse​

{
"count": 2,
"list": [
{
"keyId": "client-key-1",
"associatedEntity": {
"id": "pizza-api",
"kind": "RestApi"
},
"status": "ACTIVE",
"userId": "john.doe",
"createdAt": "2025-11-15T10:30:00Z",
"updatedAt": "2025-11-15T11:30:00Z",
"expiresAt": "2026-11-15T10:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[MappedAPIKey]truenonenone
paginationPaginationtruenonenone

RESTAPI​

{
"id": "my-rest-api-handle",
"displayName": "PizzaShackAPI",
"description": "This is a simple API for Pizza Shack online pizza delivery store",
"context": "/pizza",
"version": "1.0.0",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"projectId": "default-project",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z",
"readOnly": false,
"upstream": {
"main": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}
},
"lifeCycleStatus": "CREATED",
"kind": "RestApi",
"transport": [
"http",
"https"
],
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
],
"operations": [
{
"name": "getPetById",
"description": "Find pet by ID",
"request": {
"method": "GET",
"path": "/pet/{petId}",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}
],
"channels": [
{
"name": "issues",
"description": "Channel for order events",
"request": {
"method": "SUB",
"name": "issues",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}
],
"subscriptionPlans": [
"Gold",
"Silver"
]
}

API object

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle/identifier for the API. Can be provided during creation or auto-generated. On update (PUT), if provided must match the path parameter — returns 400 if they differ.
displayNamestringtruenoneHuman-readable name for the API
descriptionstringfalsenonenone
contextstringtruenonenone
versionstringtruenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /rest-apis/{apiId}), omitted from list responses.
projectIdstringtruenoneHandle (URL-friendly slug) of the project this API belongs to
createdAtstring(date-time)falseread-onlyTimestamp when the api was created
updatedAtstring(date-time)falseread-onlyTimestamp when the api was last updated
readOnlybooleanfalseread-onlyTrue if the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane; false for control-plane created artifacts.
upstreamUpstreamtruenoneUpstream backend configuration with main and sandbox endpoints
lifeCycleStatusstringfalsenoneCurrent lifecycle status of the API
kindstringfalsenoneKind of the API based on its communication protocol or architectural style
transport[string]falsenoneSupported transports for the API (http and/or https)
policies[Policy]falsenoneList of policies to be applied on the API
operations[Operation]falsenoneList of operations exposed by this API
channels[Channel]falsenoneList of channels exposed by this API
subscriptionPlans[string]falsenoneList of subscription plan names enabled for this API (e.g. Gold, Silver).
When set, only these plans can be used when subscribing to the API.
Enumerated Values​
PropertyValue
lifeCycleStatusSTAGED
lifeCycleStatusCREATED
lifeCycleStatusPUBLISHED
lifeCycleStatusDEPRECATED
lifeCycleStatusRETIRED
lifeCycleStatusBLOCKED

SecurityConfig​

{
"enabled": true,
"apiKey": {
"enabled": true,
"key": "X-API-Key",
"valuePrefix": "Bearer",
"in": "header"
}
}

Security Configuration

Properties​

NameTypeRequiredRestrictionsDescription
enabledbooleanfalsenoneWhether security is enabled
apiKeyAPIKeySecurityfalsenoneConfiguration for API key based authentication

APIKeySecurity​

{
"enabled": true,
"key": "X-API-Key",
"valuePrefix": "Bearer",
"in": "header"
}

API Key Security

Properties​

NameTypeRequiredRestrictionsDescription
enabledbooleanfalsenoneWhether API key authentication is enabled
keystringfalsenoneName of the header or query parameter to be used for the API key
valuePrefixstringfalsenoneOptional prefix to strip from the inbound API key value before validation, for example "Bearer"
instringfalsenoneLocation of the API key (header or query)
Enumerated Values​
PropertyValue
inheader
inquery

Operation​

{
"name": "getPetById",
"description": "Find pet by ID",
"request": {
"method": "GET",
"path": "/pet/{petId}",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}

API Operation

Properties​

NameTypeRequiredRestrictionsDescription
namestringfalsenoneName of the operation
descriptionstringfalsenoneDescription of the operation
requestOperationRequesttruenoneRequest details for an API operation

Channel​

{
"name": "issues",
"description": "Channel for order events",
"request": {
"method": "SUB",
"name": "issues",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}

Async API Channel

Properties​

NameTypeRequiredRestrictionsDescription
namestringfalsenoneName of the channel
descriptionstringfalsenoneDescription of the channel
requestChannelRequesttruenoneRequest details for a channel within the Async API

OperationRequest​

{
"method": "GET",
"path": "/pet/{petId}",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}

Operation Request

Properties​

NameTypeRequiredRestrictionsDescription
methodstringtruenoneHTTP method for the operation
pathstringtruenoneResource path for the operation
policies[Policy]falsenoneList of policies to be applied on the operation
Enumerated Values​
PropertyValue
methodGET
methodPOST
methodPUT
methodDELETE
methodPATCH
methodHEAD
methodOPTIONS

ChannelRequest​

{
"method": "SUB",
"name": "issues",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}

Channel Request

Properties​

NameTypeRequiredRestrictionsDescription
methodstringtruenoneAsync method for the channel
namestringtruenoneChannel name for the event
policies[Policy]falsenoneList of policies to be applied on the operation
Enumerated Values​
PropertyValue
methodSUB

Policy​

{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}

Policy Configuration

Properties​

NameTypeRequiredRestrictionsDescription
executionConditionstringfalsenoneConditional expression that determines when this policy executes
namestringtruenoneName of the policy to apply
paramsobjectfalsenoneKey-value pairs of parameters for 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.

AddGatewayToRESTAPIRequest​

{
"gatewayId": "prod-gateway-01"
}

AddGatewayToAPIRequest object with basic gateway details

Properties​

NameTypeRequiredRestrictionsDescription
gatewayIdstringtruenoneHandle (URL-friendly slug) of the gateway to associate with the REST API

RESTAPIGatewayListResponse​

{
"count": 3,
"list": [
{
"id": "prod-gateway-01",
"organizationId": "acme",
"displayName": "Production Gateway 01",
"description": "Production gateway for handling API traffic",
"properties": {
"region": "us-west",
"tier": "premium"
},
"endpoints": [
"https://api.example.com:8443/api/v1",
"wss://events.example.com:8444"
],
"isCritical": true,
"functionalityType": "regular",
"version": "1.0",
"isActive": true,
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2025-10-14T10:30:00Z",
"updatedAt": "2025-10-14T10:30:00Z",
"associatedAt": "2025-10-15T10:30:00Z",
"isDeployed": true,
"deployment": {
"status": "CREATED",
"deployedAt": "2025-10-15T11:00:00Z"
}
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of gateways in current response
list[RESTAPIGatewayResponse]truenoneList of gateways associated with the API, including deployment details when deployed
paginationPaginationtruenonenone

RESTAPIGatewayResponse​

{
"id": "prod-gateway-01",
"organizationId": "acme",
"displayName": "Production Gateway 01",
"description": "Production gateway for handling API traffic",
"properties": {
"region": "us-west",
"tier": "premium"
},
"endpoints": [
"https://api.example.com:8443/api/v1",
"wss://events.example.com:8444"
],
"isCritical": true,
"functionalityType": "regular",
"version": "1.0",
"isActive": true,
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2025-10-14T10:30:00Z",
"updatedAt": "2025-10-14T10:30:00Z",
"associatedAt": "2025-10-15T10:30:00Z",
"isDeployed": true,
"deployment": {
"status": "CREATED",
"deployedAt": "2025-10-15T11:00:00Z"
}
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousGatewayResponsefalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
associatedAtstring(date-time)truenoneTimestamp when the gateway was associated with the API
isDeployedbooleantruenoneWhether the API is currently deployed to this gateway
deploymentRESTAPIDeploymentDetailsfalsenoneDeployment details (only present when isDeployed is true)

RESTAPIDeploymentDetails​

{
"status": "CREATED",
"deployedAt": "2025-10-15T11:00:00Z"
}

Details about API deployment to a specific gateway

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenoneCurrent deployment status
deployedAtstring(date-time)truenoneTimestamp when the API was deployed
Enumerated Values​
PropertyValue
statusCREATED
statusAPPROVED
statusREJECTED

CreateGatewayRequest​

{
"id": "prod-gateway-01",
"displayName": "Production Gateway 01",
"description": "Production gateway for handling API traffic",
"endpoints": [
"https://api.example.com:8443/api/v1",
"wss://events.example.com:8444"
],
"isCritical": true,
"functionalityType": "regular",
"properties": {
"region": "us-west",
"tier": "premium"
},
"version": "1.0"
}

Request body for creating a gateway. Organization ID is automatically extracted from the JWT token and does not need to be provided.

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneHandle (URL-friendly slug) for the gateway. Immutable after creation.
displayNamestringtruenoneHuman-readable gateway name
descriptionstringfalsenoneDescription of the gateway
endpoints[string]truenoneNetwork endpoints exposed by this gateway, each as a full URL string
isCriticalbooleanfalsenoneWhether the gateway is critical for production
functionalityTypestringtruenoneType of gateway functionality
propertiesobjectfalsenoneCustom key-value properties for the gateway
versionstringfalsenoneGateway version in major.minor format (e.g. 1.0) or CalVer YYYY.MM.DD format (e.g. 2026.05.13). Defaults to 1.0 if not provided.
Enumerated Values​
PropertyValue
functionalityTyperegular
functionalityTypeai
functionalityTypeevent

CustomPolicyResponse​

{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"organizationUuid": "bc554ded-7e40-44a7-b397-48480793ad03",
"name": "rate-limit-custom",
"version": "1.0.0",
"description": "Custom rate limiting policy",
"policyDefinition": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

A custom policy stored in the platform's custom policy registry.

Properties​

NameTypeRequiredRestrictionsDescription
uuidstring(uuid)truenoneUnique identifier of the custom policy record
organizationUuidstring(uuid)truenoneOrganization this policy belongs to
namestringtruenonePolicy name
versionstringtruenonePolicy version
descriptionstringfalsenoneHuman-readable description of the policy
policyDefinitionobjecttruenoneThe full policy schema as declared in the policy's policy-definition.yaml.
Contains parameters and systemParameters JSON Schema documents.
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone

GatewayPolicyDefinition​

{
"name": "set-wso2-headers",
"version": "v0.8.0",
"description": "Sets WSO2-specific headers in the request and response.",
"isCustomPolicy": true,
"policyDefinition": {}
}

A policy installed on a gateway controller.

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneUnique policy name
versionstringtruenoneSemantic version of the policy
descriptionstringfalsenoneHuman-readable description of the policy
isCustomPolicybooleantruenoneWhether this is a user-installed custom policy.
policyDefinitionobjectfalsenoneThe full policy schema as declared in the policy's policy-definition.yaml.
Contains parameters and systemParameters JSON Schema documents.
Only present for custom policies.

ManifestSyncResponse​

{
"policies": [
{
"name": "set-wso2-headers",
"version": "v0.8.0",
"description": "Sets WSO2-specific headers in the request and response.",
"isCustomPolicy": true,
"policyDefinition": {}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
policies[GatewayPolicyDefinition]falsenoneAll policies installed on the gateway. Each entry includes name, version, and isCustomPolicy.
Custom policies additionally include policyDefinition with their parameters and systemParameters schemas.

GatewayResponse​

{
"id": "prod-gateway-01",
"organizationId": "acme",
"displayName": "Production Gateway 01",
"description": "Production gateway for handling API traffic",
"properties": {
"region": "us-west",
"tier": "premium"
},
"endpoints": [
"https://api.example.com:8443/api/v1",
"wss://events.example.com:8444"
],
"isCritical": true,
"functionalityType": "regular",
"version": "1.0",
"isActive": true,
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2025-10-14T10:30:00Z",
"updatedAt": "2025-10-14T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalseread-onlyHandle (URL-friendly slug) for the gateway
organizationIdstringfalsenoneHandle (URL-friendly slug) of the organization this gateway belongs to
displayNamestringtruenoneHuman-readable gateway name
descriptionstringfalsenoneDescription of the gateway
propertiesobjectfalsenoneCustom key-value properties for the gateway
endpoints[string]falsenoneNetwork endpoints exposed by this gateway, each as a full URL string
isCriticalbooleanfalsenoneWhether the gateway is critical for production
functionalityTypestringfalsenoneType of gateway functionality
versionstringfalsenoneGateway version in major.minor format (e.g. 1.0) or CalVer YYYY.MM.DD format (e.g. 2026.05.13)
isActivebooleanfalsenoneIndicates if the gateway is currently connected to the platform via WebSocket
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /gateways/{gatewayId}), omitted from list responses.
createdAtstring(date-time)falsenoneTimestamp when gateway was registered
updatedAtstring(date-time)falsenoneTimestamp when gateway was last updated
Enumerated Values​
PropertyValue
functionalityTyperegular
functionalityTypeai
functionalityTypeevent

Pagination​

{
"total": 10,
"offset": 0,
"limit": 10
}

Properties​

NameTypeRequiredRestrictionsDescription
totalintegertruenoneTotal number of items available across all pages
offsetintegertruenoneZero-based index of first item in current response
limitintegertruenoneMaximum number of items returned per page

GatewayListResponse​

{
"count": 2,
"list": [
{
"id": "prod-gateway-01",
"organizationId": "acme",
"displayName": "Production Gateway 01",
"description": "Production gateway for handling API traffic",
"properties": {
"region": "us-west",
"tier": "premium"
},
"endpoints": [
"https://api.example.com:8443/api/v1",
"wss://events.example.com:8444"
],
"isCritical": true,
"functionalityType": "regular",
"version": "1.0",
"isActive": true,
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2025-10-14T10:30:00Z",
"updatedAt": "2025-10-14T10:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

GatewayListResponse for paginated gateway results

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[GatewayResponse]truenonenone
paginationPaginationtruenonenone

GatewayStatusResponse​

{
"id": "prod-gateway-01",
"isActive": true,
"isCritical": true
}

Lightweight gateway status information optimized for frequent polling

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalseread-onlyHandle (URL-friendly slug) for the gateway
isActivebooleanfalsenoneIndicates if the gateway is currently connected to the platform via WebSocket
isCriticalbooleanfalsenoneWhether the gateway is critical for production

GatewayStatusListResponse​

{
"count": 2,
"list": [
{
"id": "prod-gateway-01",
"isActive": true,
"isCritical": true
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

List of gateway status information for polling

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[GatewayStatusResponse]truenone[Lightweight gateway status information optimized for frequent polling]
paginationPaginationtruenonenone

ProjectListResponse​

{
"count": 2,
"list": [
{
"id": "default-project",
"displayName": "Default Project",
"description": "This is the default project for development",
"organizationId": "acme",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[Project]truenonenone
paginationPaginationtruenonenone

OrganizationListResponse​

{
"count": 2,
"list": [
{
"id": "acme",
"displayName": "Acme Corporation",
"region": "us",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[Organization]truenonenone
paginationPaginationtruenonenone

RESTAPIListResponse​

{
"count": 2,
"list": [
{
"id": "my-rest-api-handle",
"displayName": "PizzaShackAPI",
"description": "This is a simple API for Pizza Shack online pizza delivery store",
"context": "/pizza",
"version": "1.0.0",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"projectId": "default-project",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z",
"readOnly": false,
"upstream": {
"main": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}
},
"lifeCycleStatus": "CREATED",
"kind": "RestApi",
"transport": [
"http",
"https"
],
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
],
"operations": [
{
"name": "getPetById",
"description": "Find pet by ID",
"request": {
"method": "GET",
"path": "/pet/{petId}",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}
],
"channels": [
{
"name": "issues",
"description": "Channel for order events",
"request": {
"method": "SUB",
"name": "issues",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}
],
"subscriptionPlans": [
"Gold",
"Silver"
]
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of items in current response
list[RESTAPI]truenonenone
paginationPaginationtruenonenone

TokenRotationResponse​

{
"id": "def45678-g901-23hi-j456-789012klmnop",
"token": "REDACTED_TOKEN",
"createdAt": "2025-10-15T14:20:00Z",
"message": "New token generated successfully. Old token remains active until revoked."
}

Properties​

NameTypeRequiredRestrictionsDescription
idstring(uuid)falsenoneID of the newly generated token
tokenstringfalsenonePlain-text new authentication token (only exposed once during rotation). The example value is a non-functional placeholder.
createdAtstring(date-time)falsenoneTimestamp when new token was created
messagestringfalsenoneInformational message about token rotation

TokenInfoResponse​

{
"id": "abc12345-f678-90de-f123-456789abcdef",
"status": "active",
"createdAt": "2025-10-14T10:30:00Z",
"revokedAt": null
}

Properties​

NameTypeRequiredRestrictionsDescription
idstring(uuid)falsenoneToken UUID
statusstringfalsenoneCurrent token status
createdAtstring(date-time)falsenoneTimestamp when token was created
revokedAtstring(date-time)¦nullfalsenoneTimestamp when token was revoked (null if active)
Enumerated Values​
PropertyValue
statusactive
statusrevoked

CreateRESTAPIRequest​

{
"id": "my-rest-api-handle",
"displayName": "PizzaShackAPI",
"description": "This is a simple API for Pizza Shack online pizza delivery store",
"context": "/pizza",
"version": "1.0.0",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"projectId": "default-project",
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z",
"readOnly": false,
"upstream": {
"main": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}
},
"lifeCycleStatus": "CREATED",
"kind": "RestApi",
"transport": [
"http",
"https"
],
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
],
"operations": [
{
"name": "getPetById",
"description": "Find pet by ID",
"request": {
"method": "GET",
"path": "/pet/{petId}",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}
],
"channels": [
{
"name": "issues",
"description": "Channel for order events",
"request": {
"method": "SUB",
"name": "issues",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
]
}
}
],
"subscriptionPlans": [
"Gold",
"Silver"
]
}

Properties​

allOf

NameTypeRequiredRestrictionsDescription
anonymousRESTAPIfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

TimeUnit​

"days"

Time unit for API key expiration duration

Properties​

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenoneTime unit for API key expiration duration
Enumerated Values​
PropertyValue
anonymousseconds
anonymousminutes
anonymoushours
anonymousdays
anonymousweeks
anonymousmonths

ExpirationDuration​

{
"duration": 30,
"unit": "days"
}

Properties​

NameTypeRequiredRestrictionsDescription
durationintegertruenoneDuration value (must be positive)
unitTimeUnittruenoneTime unit for API key expiration duration

CreateAPIKeyRequest​

{
"id": "production-key-01",
"displayName": "Production API Key",
"apiKey": "sk_example_1234567890abcdef",
"externalRefId": "ext-ref-12345",
"expiresAt": "2026-12-31T23:59:59Z",
"expiresIn": {
"duration": 30,
"unit": "days"
},
"issuer": "api-platform-devportal"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique identifier for this API key within the API (optional; if omitted,
generated from displayName)
displayNamestringtruenoneHuman-readable name for the API key
apiKeystringtruenoneThe plain text API key value that will be hashed before storage
externalRefIdstring¦nullfalsenoneOptional reference ID for tracing purposes (from external platforms)
expiresAtstring(date-time)¦nullfalsenoneOptional expiration time in ISO 8601 format
expiresInExpirationDurationfalsenoneOptional expiration duration
issuerstring¦nullfalsenoneIdentifier of the API Portal that provisioned this API key. Null if not provided.

CreateAPIKeyResponse​

{
"status": "success",
"message": "API key created and broadcasted to gateways successfully",
"keyId": "production-key-01"
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenoneStatus of the operation
messagestringtruenoneAdditional details about the operation result
keyIdstringfalsenoneThe internal ID generated for tracking
Enumerated Values​
PropertyValue
statussuccess
statuserror

UpdateAPIKeyRequest​

{
"name": "production-key-01",
"displayName": "Production API Key (Updated)",
"apiKey": "sk_example_new1234567890abcdef",
"externalRefId": "ext-ref-12345",
"expiresAt": "2027-12-31T23:59:59Z",
"expiresIn": {
"duration": 30,
"unit": "days"
},
"issuer": "api-platform-devportal"
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringfalsenoneUnique identifier for this API key within the API (optional; if omitted, generated from displayName)
displayNamestringtruenoneHuman-readable name for the API key
apiKeystringtruenoneThe new plain text API key value that will be hashed before storage
externalRefIdstring¦nullfalsenoneOptional reference ID for tracing purposes (from external platforms)
expiresAtstring(date-time)¦nullfalsenoneOptional expiration time in ISO 8601 format
expiresInExpirationDurationfalsenoneOptional expiration duration
issuerstringfalsenoneIdentifies the portal that created this key

UpdateAPIKeyResponse​

{
"status": "success",
"message": "API key updated and broadcasted to gateways successfully",
"keyId": "production-key-01"
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenoneStatus of the operation
messagestringtruenoneAdditional details about the operation result
keyIdstringfalsenoneThe internal ID of the updated key
Enumerated Values​
PropertyValue
statussuccess
statuserror

SubscriptionPlanLimit​

{
"limitType": "REQUEST_COUNT",
"timeUnit": "HOUR",
"timeAmount": 1,
"limitCount": 10000,
"limitCountUnit": "string",
"stopOnQuotaReach": true
}

Properties​

NameTypeRequiredRestrictionsDescription
limitTypestringfalsenoneKind of quota this limit enforces. Only REQUEST_COUNT is currently enforced; other values are accepted by the schema for forward compatibility but are rejected by the API today.
timeUnitstringtruenoneThrottle window unit
timeAmountintegerfalsenoneNumber of timeUnit windows the limit applies over (e.g. 2 with timeUnit=HOUR means "per 2 hours")
limitCountintegertruenoneNumber of requests (or units, for BANDWIDTH/TOTAL_TOKEN_COUNT) allowed in the throttle window
limitCountUnitstringfalsenoneUnit for limitCount when limitType is BANDWIDTH (e.g. MB, GB)
stopOnQuotaReachbooleanfalsenoneWhether to block requests when this limit's quota is exhausted
Enumerated Values​
PropertyValue
limitTypeREQUEST_COUNT
limitTypeBANDWIDTH
limitTypeTOTAL_TOKEN_COUNT
timeUnitMINUTE
timeUnitHOUR
timeUnitDAY
timeUnitMONTH

CreateSubscriptionPlanRequest​

{
"id": "gold",
"displayName": "Gold",
"limits": [
{
"limitType": "REQUEST_COUNT",
"timeUnit": "HOUR",
"timeAmount": 1,
"limitCount": 10000,
"limitCountUnit": "string",
"stopOnQuotaReach": true
}
],
"expiryTime": "2019-08-24T14:15:22Z",
"status": "ACTIVE"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneHandle (URL-friendly slug) for the plan. Immutable after creation.
displayNamestringtruenoneHuman-readable name for the subscription plan
limits[SubscriptionPlanLimit]falsenoneThrottling limits for the plan (e.g. requests per hour, requests per month). The table backing this API already supports multiple limits per plan, but the platform-api currently only persists and enforces the first entry in this array; any additional entries are accepted but ignored.
expiryTimestring(date-time)falsenoneOptional plan expiry time (RFC3339)
statusstringfalsenonenone
Enumerated Values​
PropertyValue
statusACTIVE
statusINACTIVE

SubscriptionPlan​

{
"id": "string",
"displayName": "string",
"limits": [
{
"limitType": "REQUEST_COUNT",
"timeUnit": "HOUR",
"timeAmount": 1,
"limitCount": 10000,
"limitCountUnit": "string",
"stopOnQuotaReach": true
}
],
"expiryTime": "2019-08-24T14:15:22Z",
"organizationId": "acme",
"status": "ACTIVE",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneHandle (slug) for the subscription plan
displayNamestringtruenoneHuman-readable name for the subscription plan
limits[SubscriptionPlanLimit]falsenoneThrottling limits configured for the plan. Only one entry is currently supported and returned, even though the underlying storage allows multiple.
expiryTimestring(date-time)falsenonenone
organizationIdstringfalsenoneHandle (URL-friendly slug) of the organization this plan belongs to
statusstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /subscription-plans/{planId}), omitted from list responses.
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
Enumerated Values​
PropertyValue
statusACTIVE
statusINACTIVE

SubscriptionPlanListResponse​

{
"list": [
{
"id": "string",
"displayName": "string",
"limits": [
{
"limitType": "REQUEST_COUNT",
"timeUnit": "HOUR",
"timeAmount": 1,
"limitCount": 10000,
"limitCountUnit": "string",
"stopOnQuotaReach": true
}
],
"expiryTime": "2019-08-24T14:15:22Z",
"organizationId": "acme",
"status": "ACTIVE",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"count": 0,
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
list[SubscriptionPlan]truenoneList of subscription plans in current response
countintegertruenoneNumber of subscription plans in current response
paginationPaginationtruenonenone

CreateSubscriptionRequest​

{
"artifactId": "my-rest-api",
"kind": "RestApi",
"subscriberId": "user-123",
"applicationId": "my-app-handle",
"subscriptionPlanId": "gold",
"status": "ACTIVE"
}

Properties​

NameTypeRequiredRestrictionsDescription
artifactIdstringtruenoneHandle (ID) of the artifact to subscribe to. Resolved against the table for the given kind.
kindstringtruenoneType of the artifact identified by artifactId. Determines which artifact table artifactId is resolved against.
subscriberIdstringtruenoneUnique subscriber identifier for the subscription (required)
applicationIdstringfalsenoneHandle (ID) of the application this subscription belongs to. Optional in token-based subscriptions.
subscriptionPlanIdstringfalsenoneHandle (slug) of the subscription plan. Links the subscription to rate limit and billing configuration.
statusstringfalsenoneSubscription status (default ACTIVE)
Enumerated Values​
PropertyValue
kindRestApi
kindLlmProvider
kindLlmProxy
kindMcp
statusACTIVE
statusINACTIVE
statusREVOKED

Subscription​

{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"artifactId": "my-rest-api",
"kind": "RestApi",
"subscriberId": "string",
"applicationId": "my-app-handle",
"subscriptionToken": "string",
"subscriptionPlanId": "gold",
"subscriptionPlanName": "string",
"organizationId": "acme",
"status": "ACTIVE",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstring(uuid)falsenoneSubscription ID
artifactIdstringfalsenoneHandle (ID) of the subscribed artifact
kindstringfalsenoneType of the subscribed artifact
subscriberIdstringfalsenoneUnique subscriber identifier for this API (required)
applicationIdstringfalsenoneHandle (ID) of the application this subscription belongs to (optional for token-based subscriptions)
subscriptionTokenstringfalsenoneOpaque subscription token for API invocation via Subscription-Key header
subscriptionPlanIdstringfalsenoneHandle (slug) of the subscription plan
subscriptionPlanNamestringfalsenoneSubscription plan display name (e.g. Bronze, Gold)
organizationIdstringfalsenoneHandle (URL-friendly slug) of the organization this subscription belongs to
statusstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /subscriptions/{subscriptionId}), omitted from list responses.
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
Enumerated Values​
PropertyValue
kindRestApi
kindLlmProvider
kindLlmProxy
kindMcp
statusACTIVE
statusINACTIVE
statusREVOKED

SubscriptionListResponse​

{
"list": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"artifactId": "my-rest-api",
"kind": "RestApi",
"subscriberId": "string",
"applicationId": "my-app-handle",
"subscriptionToken": "string",
"subscriptionPlanId": "gold",
"subscriptionPlanName": "string",
"organizationId": "acme",
"status": "ACTIVE",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"count": 0,
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
list[Subscription]truenoneList of subscriptions in current response
countintegertruenoneNumber of subscriptions in current response
paginationPaginationtruenonenone

Error​

{
"status": "error",
"code": "REST_API_NOT_FOUND",
"message": "The requested REST API could not be found.",
"errors": [
{
"field": "<name of the offending field>",
"message": "must start with /"
}
],
"details": {},
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}

Standard error response

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenoneAlways the literal "error".
codestringtruenoneStable, machine-readable error code from the error catalog, in the form <DOMAIN>_<REASON> (e.g. REST_API_NOT_FOUND). Clients and agents should branch on this, not on the HTTP status.
messagestringtruenoneHuman-readable description of the error.
errors[FieldError]falsenonePer-field validation failures. Present when the error is a validation failure.
detailsobjectfalsenoneOptional structured metadata specific to this error condition (e.g. the resources referencing a secret that blocked its deletion). Shape varies by code; absent when not applicable.
trackingIdstring(uuid)falsenoneCorrelation ID for server-side failures. Present only on 5xx responses; quote it when reporting the error so operators can find the corresponding server log entry.
Enumerated Values​
PropertyValue
statuserror

FieldError​

{
"field": "<name of the offending field>",
"message": "must start with /"
}

Field-level validation error

Properties​

NameTypeRequiredRestrictionsDescription
fieldstringtruenonePath of the offending field.
messagestringtruenoneWhy the field failed validation.

DeployRequest​

{
"name": "v1.0-production",
"base": "current",
"gatewayId": "prod-gateway-01",
"metadata": {}
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenoneName/label for this deployment (e.g., "v1.0-prod", "hotfix-2024-01-15")
basestringtruenoneThe source for the API definition. Can be "current" (latest working copy) or a deploymentId (existing deployment)
gatewayIdstringtruenoneHandle (URL-friendly slug) of the target gateway for this deployment
metadataobjectfalsenoneOptional metadata for the deployment. Supported keys include endpointUrl, vhostMain, and vhostSandbox.

DeploymentResponse​

{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "DEPLOYED",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"statusReason": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
deploymentIdstring(uuid)truenoneUnique identifier for the deployment
namestringtruenoneName/label for this deployment
gatewayIdstringtruenoneHandle (URL-friendly slug) of the gateway
statusstringtruenoneCurrent deployment lifecycle state:
- DEPLOYED: Currently active on the gateway
- UNDEPLOYED: Suspended but can be rolled back
- DEPLOYING: Deployment in progress, waiting for gateway acknowledgement
- UNDEPLOYING: Undeployment in progress, waiting for gateway acknowledgement
- FAILED: Deployment or undeployment failed (see statusReason for error code)
- ARCHIVED: Historical deployment, can be rolled back
baseDeploymentIdstring(uuid)¦nullfalsenoneUUID of the base deployment this was created from
metadataobjectfalsenoneMetadata associated with the deployment
createdAtstring(date-time)truenoneTimestamp when the deployment artifact was created
statusReasonstring¦nullfalsenoneError code explaining the failure reason. Null unless status is FAILED (e.g. DEPLOYMENT_TIMEOUT, GATEWAY_PROCESSING_ERROR)
updatedAtstring(date-time)¦nullfalsenoneTimestamp when the deployment status last changed (null for ARCHIVED deployments)
Enumerated Values​
PropertyValue
statusDEPLOYED
statusUNDEPLOYED
statusDEPLOYING
statusUNDEPLOYING
statusFAILED
statusARCHIVED

DeploymentListResponse​

{
"count": 0,
"list": [
{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "DEPLOYED",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"statusReason": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of deployments in current response
list[DeploymentResponse]truenoneList of deployments
paginationPaginationtruenonenone

Upstream​

{
"main": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}
}

Upstream backend configuration with main and sandbox endpoints

Properties​

NameTypeRequiredRestrictionsDescription
mainUpstreamDefinitiontruenoneUpstream endpoint configuration. Provide exactly one of url (a direct backend URL) or
ref (a reference to a predefined upstream definition) — never both.
sandboxUpstreamDefinitionfalsenoneUpstream endpoint configuration. Provide exactly one of url (a direct backend URL) or
ref (a reference to a predefined upstream definition) — never both.

UpstreamDefinition​

{
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}

Upstream endpoint configuration. Provide exactly one of url (a direct backend URL) or ref (a reference to a predefined upstream definition) — never both.

Properties​

NameTypeRequiredRestrictionsDescription
urlstring(uri)falsenoneDirect backend URL to route traffic to. Mutually exclusive with ref.
refstringfalsenoneReference to a predefined upstreamDefinition. Mutually exclusive with url.
authUpstreamAuthfalsenoneAuthentication configuration for upstream endpoints

oneOf

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

xor

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

UpstreamAuth​

{
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}

Authentication configuration for upstream endpoints

Properties​

NameTypeRequiredRestrictionsDescription
typestringfalsenoneAuthentication type
headerstringfalsenoneHeader name for api-key authentication (e.g., 'Authorization' for bearer/basic, custom header for api-key)
valuestring(password)falsewrite-onlyAuthentication value (API key, Bearer token, or Base64 encoded credentials for basic auth)
Enumerated Values​
PropertyValue
typebasic
typebearer
typeapi-key
typeother
typenone

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

LLMProviderTemplateAuth​

{
"type": "bearer",
"header": "Authorization",
"valuePrefix": "Bearer "
}

Properties​

NameTypeRequiredRestrictionsDescription
typestringfalsenoneAuthentication type used by the LLM provider template
headerstringfalsenoneHeader name to send the auth value
valuePrefixstringfalsenonePrefix to attach before the auth value

LLMProviderTemplateMetadata​

{
"endpointUrl": "https://api.openai.com",
"auth": {
"type": "bearer",
"header": "Authorization",
"valuePrefix": "Bearer "
},
"logoUrl": "https://cdn.example.com/logos/openai.svg",
"openapiSpecUrl": "https://api.openai.com/openapi.json"
}

Properties​

NameTypeRequiredRestrictionsDescription
endpointUrlstring(uri)falsenoneDefault endpoint URL for the template
authLLMProviderTemplateAuthfalsenonenone
logoUrlstring(uri)falsenoneURL of the provider logo
openapiSpecUrlstring(uri)falsenoneURL to the OpenAPI specification for the provider

LLMProviderTemplateResourceMapping​

{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.outputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.totalTokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
resourcestringtruenoneResource path pattern this mapping applies to (for example /responses or /chat/*)
promptTokensExtractionIdentifierfalsenonenone
completionTokensExtractionIdentifierfalsenonenone
totalTokensExtractionIdentifierfalsenonenone
remainingTokensExtractionIdentifierfalsenonenone
requestModelExtractionIdentifierfalsenonenone
responseModelExtractionIdentifierfalsenonenone

LLMProviderTemplateResourceMappings​

{
"resources": [
{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.outputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.totalTokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
resources[LLMProviderTemplateResourceMapping]falsenonenone

LLMProviderTemplate​

{
"id": "openai",
"groupId": "openai",
"displayName": "OpenAI",
"managedBy": "wso2",
"description": "Default OpenAI template",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"readOnly": false,
"version": "v1.0",
"isLatest": true,
"enabled": true,
"openapi": "openapi: 3.0.3\ninfo:\n title: Provider API\n version: v1.0\npaths: {}\n",
"metadata": {
"endpointUrl": "https://api.openai.com",
"auth": {
"type": "bearer",
"header": "Authorization",
"valuePrefix": "Bearer "
},
"logoUrl": "https://cdn.example.com/logos/openai.svg",
"openapiSpecUrl": "https://api.openai.com/openapi.json"
},
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.outputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.totalTokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
},
"resourceMappings": {
"resources": [
{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.outputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.totalTokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
}
}
]
},
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle for the template
groupIdstringfalseread-onlyStable identifier shared by every version of a template family.
displayNamestringtruenoneHuman-readable LLM Template name
managedBystringfalsenoneIdentifies who manages the template. Built-in templates use 'wso2';
custom templates default to 'organization' and may be set to any value.
descriptionstringfalsenoneDescription of the LLM provider template
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource
readOnlybooleanfalseread-onlyTrue if the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane; false for control-plane created artifacts.
versionstringtruenoneContent version, matching the v<major>.<minor> pattern (e.g. v1.0, v2.0).
Must be unique for this template.
isLatestbooleanfalseread-onlyWhether this is the latest version of the template.
enabledbooleanfalseread-onlyWhether this version is offered when creating providers. If false, the
template version is hidden from the provider creation UI and API.
openapistringfalsenoneOpenAPI specification content (JSON or YAML) for the provider, when
uploaded/pasted. Use metadata.openapiSpecUrl instead to reference the
spec by URL.
metadataLLMProviderTemplateMetadatafalsenonenone
promptTokensExtractionIdentifierfalsenonenone
completionTokensExtractionIdentifierfalsenonenone
totalTokensExtractionIdentifierfalsenonenone
remainingTokensExtractionIdentifierfalsenonenone
requestModelExtractionIdentifierfalsenonenone
responseModelExtractionIdentifierfalsenonenone
resourceMappingsLLMProviderTemplateResourceMappingsfalsenonenone
createdAtstring(date-time)falseread-onlyTimestamp when the resource was created
updatedAtstring(date-time)falseread-onlyTimestamp when the resource was last updated

CreateLLMProviderTemplateVersionRequest​

{
"displayName": "OpenAI",
"version": "v2.0",
"managedBy": "organization",
"description": "Default OpenAI template",
"openapi": "string",
"metadata": {
"endpointUrl": "https://api.openai.com",
"auth": {
"type": "bearer",
"header": "Authorization",
"valuePrefix": "Bearer "
},
"logoUrl": "https://cdn.example.com/logos/openai.svg",
"openapiSpecUrl": "https://api.openai.com/openapi.json"
},
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.outputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.totalTokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
},
"resourceMappings": {
"resources": [
{
"resource": "/responses",
"promptTokens": {
"location": "payload",
"identifier": "$.usage.inputTokens"
},
"completionTokens": {
"location": "payload",
"identifier": "$.usage.outputTokens"
},
"totalTokens": {
"location": "payload",
"identifier": "$.usage.totalTokens"
},
"remainingTokens": {
"location": "header",
"identifier": "x-ratelimit-remaining-tokens"
},
"requestModel": {
"location": "payload",
"identifier": "$.model"
},
"responseModel": {
"location": "payload",
"identifier": "$.model"
}
}
]
}
}

Properties​

NameTypeRequiredRestrictionsDescription
displayNamestringfalsenoneHuman-readable LLM Template name. Optional — when omitted, the new
version inherits the family's existing name. Supplying a different
value renames the template family.
versionstringtruenoneNew version identifier, e.g. v2.0. Must be unique for this template.
managedBystringfalsenoneIdentifies who manages the template. Custom templates default to 'organization'.
descriptionstringfalsenoneDescription of the LLM provider template
openapistringfalsenoneOpenAPI specification content (JSON or YAML) for the provider, when
uploaded/pasted. Use metadata.openapiSpecUrl instead to reference the
spec by URL.
metadataLLMProviderTemplateMetadatafalsenonenone
promptTokensExtractionIdentifierfalsenonenone
completionTokensExtractionIdentifierfalsenonenone
totalTokensExtractionIdentifierfalsenonenone
remainingTokensExtractionIdentifierfalsenonenone
requestModelExtractionIdentifierfalsenonenone
responseModelExtractionIdentifierfalsenonenone
resourceMappingsLLMProviderTemplateResourceMappingsfalsenonenone

LLMProviderTemplateListItem​

{
"id": "openai",
"groupId": "openai",
"displayName": "OpenAI",
"managedBy": "wso2",
"description": "Default OpenAI template",
"createdBy": "john.doe",
"version": "v1.0",
"isLatest": true,
"enabled": true,
"logoUrl": "https://cdn.example.com/logos/openai.svg",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z",
"readOnly": false
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle for this specific template version.
groupIdstringfalseread-onlyStable identifier shared by every version of a template family
(defaults to the first version's handle). Read-only.
displayNamestringtruenoneHuman-readable name for the LLM provider template
managedBystringfalsenoneWho manages the template ('wso2' for built-in, otherwise custom-defined).
descriptionstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
versionstringfalsenoneContent version, matching the v<major>.<minor> pattern (e.g. v1.0, v2.0).
isLatestbooleanfalsenoneWhether this is the latest version of the template.
enabledbooleanfalsenoneWhether this version is offered when creating providers.
logoUrlstring(uri)falsenoneURL of the provider logo
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
readOnlybooleanfalsenoneTrue when the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane.

LLMProviderTemplateListResponse​

{
"count": 5,
"list": [
{
"id": "openai",
"groupId": "openai",
"displayName": "OpenAI",
"managedBy": "wso2",
"description": "Default OpenAI template",
"createdBy": "john.doe",
"version": "v1.0",
"isLatest": true,
"enabled": true,
"logoUrl": "https://cdn.example.com/logos/openai.svg",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z",
"readOnly": false
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenonenone
list[LLMProviderTemplateListItem]truenonenone
paginationPaginationtruenonenone

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": "budgetControl",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
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.
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
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.
executionConditionstringfalsenoneOptional per-request CEL expression controlling whether the policy runs
paths[OperationPolicyPath]truenonenone

OperationPolicyPath​

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

Properties​

NameTypeRequiredRestrictionsDescription
pathstringtruenonenone
methods[string]truenonenone
paramsobjecttruenonePolicy parameters

LLMRateLimitingConfig​

{
"providerLevel": {
"global": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 1,
"unit": "month"
}
}
}
},
"consumerLevel": {
"resourceWise": {
"default": {
"request": {
"enabled": true,
"count": 50,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 100,
"reset": {
"duration": 1,
"unit": "month"
}
}
},
"resources": [
{
"resource": "/models",
"limit": {
"request": {
"enabled": true,
"count": 200,
"reset": {
"duration": 1,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 100000,
"reset": {
"duration": 1,
"unit": "month"
}
}
}
},
{
"resource": "/chat/completions",
"limit": {
"request": {
"enabled": true,
"count": 25,
"reset": {
"duration": 1,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 10,
"reset": {
"duration": 1,
"unit": "month"
}
}
}
}
]
}
}
}

Rate limiting configuration for an LLM provider at provider and consumer levels.

Properties​

NameTypeRequiredRestrictionsDescription
providerLevelRateLimitingScopeConfigfalsenoneRate limiting configuration for a scope (provider or consumer). Either global or resource-wise limits can be defined.
consumerLevelRateLimitingScopeConfigfalsenoneRate limiting configuration for a scope (provider or consumer). Either global or resource-wise limits can be defined.

RateLimitingScopeConfig​

{
"global": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
},
"resourceWise": {
"default": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
},
"resources": [
{
"resource": "/chat/completions",
"limit": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
}
}
]
}
}

Rate limiting configuration for a scope (provider or consumer). Either global or resource-wise limits can be defined.

Properties​

NameTypeRequiredRestrictionsDescription
globalRateLimitingLimitConfigfalsenoneLimit definition with independent request/token/cost dimensions. If all dimensions are disabled (or absent), rate limiting is off for that scope.
resourceWiseResourceWiseRateLimitingConfigfalsenoneResource-specific limits with a required default limit.

oneOf

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

xor

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

ResourceWiseRateLimitingConfig​

{
"default": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
},
"resources": [
{
"resource": "/chat/completions",
"limit": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
}
}
]
}

Resource-specific limits with a required default limit.

Properties​

NameTypeRequiredRestrictionsDescription
defaultRateLimitingLimitConfigtruenoneLimit definition with independent request/token/cost dimensions. If all dimensions are disabled (or absent), rate limiting is off for that scope.
resources[RateLimitingResourceLimit]truenoneExplicit resource limits that override the default limit.

RateLimitingResourceLimit​

{
"resource": "/chat/completions",
"limit": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
}
}

Properties​

NameTypeRequiredRestrictionsDescription
resourcestringtruenoneExplicit resource path to apply the limit to.
limitRateLimitingLimitConfigtruenoneLimit definition with independent request/token/cost dimensions. If all dimensions are disabled (or absent), rate limiting is off for that scope.

RateLimitResetWindow​

{
"duration": 2,
"unit": "week"
}

Properties​

NameTypeRequiredRestrictionsDescription
durationintegertruenoneReset duration for the limit window.
unitstringtruenoneReset time unit for the limit window.
Enumerated Values​
PropertyValue
unitminute
unithour
unitday
unitweek
unitmonth

RequestRateLimitDimension​

{
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
enabledbooleanfalsenoneEnable request-count based limiting.
countintegerfalsenoneMaximum number of requests in the reset window.
resetRateLimitResetWindowfalsenonenone

TokenRateLimitDimension​

{
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
enabledbooleanfalsenoneEnable token-count based limiting.
countintegerfalsenoneMaximum number of tokens in the reset window.
resetRateLimitResetWindowfalsenonenone

CostRateLimitDimension​

{
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
enabledbooleanfalsenoneEnable cost-based limiting.
amountnumber(float)falsenoneMaximum cost in the reset window.
resetRateLimitResetWindowfalsenonenone

RateLimitingLimitConfig​

{
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 1000,
"reset": {
"duration": 2,
"unit": "week"
}
}
}

Limit definition with independent request/token/cost dimensions. If all dimensions are disabled (or absent), rate limiting is off for that scope.

Properties​

NameTypeRequiredRestrictionsDescription
requestRequestRateLimitDimensionfalsenonenone
tokenTokenRateLimitDimensionfalsenonenone
costCostRateLimitDimensionfalsenonenone

LLMProvider​

{
"id": "wso2-openai-provider",
"displayName": "WSO2 OpenAI Provider",
"description": "Primary OpenAI provider",
"createdBy": "john.doe",
"readOnly": false,
"updatedBy": "john.doe",
"version": "v1.0",
"context": "/openai",
"vhost": "api.openai.com",
"template": "openai",
"openapi": "openapi: 3.0.3\ninfo:\n title: Provider API\n version: v1.0\npaths: {}\n",
"modelProviders": [
{
"id": "claude",
"displayName": "Claude",
"models": [
{
"id": "claude-3-5-sonnet",
"displayName": "Claude 3.5 Sonnet",
"description": "High-quality reasoning model"
}
]
}
],
"upstream": {
"main": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}
},
"accessControl": {
"mode": "deny_all",
"exceptions": [
{
"path": "/chat/completions",
"methods": [
"GET"
]
}
]
},
"rateLimiting": {
"providerLevel": {
"global": {
"request": {
"enabled": true,
"count": 1500,
"reset": {
"duration": 2,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 1000000,
"reset": {
"duration": 1,
"unit": "month"
}
}
}
},
"consumerLevel": {
"resourceWise": {
"default": {
"request": {
"enabled": true,
"count": 50,
"reset": {
"duration": 2,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 100,
"reset": {
"duration": 1,
"unit": "month"
}
}
},
"resources": [
{
"resource": "/models",
"limit": {
"request": {
"enabled": true,
"count": 200,
"reset": {
"duration": 1,
"unit": "week"
}
},
"token": {
"enabled": true,
"count": 100000,
"reset": {
"duration": 1,
"unit": "month"
}
}
}
},
{
"resource": "/chat/completions",
"limit": {
"request": {
"enabled": true,
"count": 25,
"reset": {
"duration": 1,
"unit": "week"
}
},
"cost": {
"enabled": true,
"amount": 10,
"reset": {
"duration": 1,
"unit": "month"
}
}
}
}
]
}
}
},
"globalPolicies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
],
"operationPolicies": [
{
"name": "token-based-ratelimit",
"version": "v1",
"executionCondition": "string",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"policies": [
{
"name": "budgetControl",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"security": {
"enabled": true,
"apiKey": {
"enabled": true,
"key": "X-API-Key",
"valuePrefix": "Bearer",
"in": "header"
}
},
"associatedGateways": [
{
"id": "prod-eu",
"configurations": {
"host": "prod-eu.platform-gw.local"
}
},
{
"id": "prod-us",
"configurations": {
"host": "prod-us.platform-gw.local"
}
}
],
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle for the provider
displayNamestringtruenoneHuman-readable LLM Provider name
descriptionstringfalsenoneDescription of the LLM provider
createdBystringfalseread-onlyUser identifier of the user who created this resource
readOnlybooleanfalseread-onlyTrue if the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane; false for control-plane created artifacts.
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /llm-providers/{id}), omitted from list responses.
versionstringtruenoneSemantic version of the LLM Provider
contextstringfalsenoneBase path for all routes exposed by this provider. Must start with / and carry no trailing slash; the single exception is the root path "/", which is the default.
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
openapistringfalsenoneOpenAPI specification (JSON or YAML) for the provider endpoint
modelProviders[LLMModelProvider]falsenoneList of model providers and their models supported by this provider. For non-aggregator templates, only a single model provider is allowed (aggregator templates: awsbedrock, azureaifoundry).
upstreamUpstreamtruenoneUpstream backend configuration with main and sandbox endpoints
accessControlLLMAccessControltruenonenone
rateLimitingLLMRateLimitingConfigfalsenoneRate limiting configuration for an LLM provider at provider and consumer levels.
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).
securitySecurityConfigfalsenoneDefines security mechanisms (API key, OAuth2) applicable to the API
associatedGateways[AssociatedGateway]falsenoneOptional list of gateways this LLM provider can be deployed to, along with per-gateway configuration overrides. This field is optional; omitting it does not change existing behaviour.
createdAtstring(date-time)falseread-onlyTimestamp when the resource was created
updatedAtstring(date-time)falseread-onlyTimestamp when the resource was last updated

AssociatedGateway​

{
"id": "prod-eu",
"configurations": {
"someKey": "someValue"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneHandle of the gateway this artifact can be deployed to
configurationsobjectfalsenonePer-gateway configuration overrides for this artifact. This is a free-form object; the supported keys depend on the deployed artifact type.

LLMProviderListItem​

{
"id": "wso2-openai-provider",
"displayName": "WSO2 OpenAI Provider",
"description": "Primary OpenAI provider",
"createdBy": "john.doe",
"readOnly": false,
"version": "v1.0",
"template": "openai",
"status": "deployed",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
displayNamestringtruenoneHuman-readable name for the LLM provider
descriptionstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
readOnlybooleanfalsenoneTrue when the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane.
versionstringfalsenonenone
templatestringfalsenonenone
statusstringfalsenonenone
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
Enumerated Values​
PropertyValue
statuspending
statusdeployed
statusfailed

LLMModelProvider​

{
"id": "claude",
"displayName": "Claude",
"models": [
{
"id": "claude-3-5-sonnet",
"displayName": "Claude 3.5 Sonnet",
"description": "High-quality reasoning model"
}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique model provider identifier
displayNamestringtruenoneHuman-readable model provider name
models[LLMModel]falsenoneModels under this model provider

LLMModel​

{
"id": "claude-3-5-sonnet",
"displayName": "Claude 3.5 Sonnet",
"description": "High-quality reasoning model"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique model identifier
displayNamestringtruenoneHuman-readable model name
descriptionstringfalsenoneModel description

LLMProviderListResponse​

{
"count": 2,
"list": [
{
"id": "wso2-openai-provider",
"displayName": "WSO2 OpenAI Provider",
"description": "Primary OpenAI provider",
"createdBy": "john.doe",
"readOnly": false,
"version": "v1.0",
"template": "openai",
"status": "deployed",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenonenone
list[LLMProviderListItem]truenonenone
paginationPaginationtruenonenone

LLMProxy​

{
"id": "wso2-con-assistant",
"displayName": "WSO2 Con Assistant",
"description": "Customer support assistant",
"createdBy": "john.doe",
"readOnly": false,
"updatedBy": "john.doe",
"version": "v1.0",
"projectId": "default-project",
"context": "/openai",
"vhost": "api.openai.com",
"provider": {
"id": "wso2-openai-provider",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"additionalProviders": [
{
"id": "anthropic-provider",
"as": "anthropic-upstream",
"transformer": {
"type": "openai-to-anthropic",
"version": "v1",
"params": {}
}
}
],
"openapi": "openapi: 3.0.3\ninfo:\n title: Proxy API\n version: v1.0\npaths: {}\n",
"globalPolicies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
],
"operationPolicies": [
{
"name": "token-based-ratelimit",
"version": "v1",
"executionCondition": "string",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"policies": [
{
"name": "budgetControl",
"version": "v1",
"paths": [
{
"path": "/chat/completions",
"methods": [
"GET"
],
"params": {}
}
]
}
],
"security": {
"enabled": true,
"apiKey": {
"enabled": true,
"key": "X-API-Key",
"valuePrefix": "Bearer",
"in": "header"
}
},
"associatedGateways": [
{
"id": "prod-eu"
},
{
"id": "prod-us"
}
],
"createdAt": "2023-10-12T10:30:00Z",
"updatedAt": "2023-10-12T10:30:00Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle for the proxy
displayNamestringtruenoneHuman-readable LLM proxy name
descriptionstringfalsenoneDescription of the LLM proxy
createdBystringfalseread-onlyUser identifier of the user who created this resource
readOnlybooleanfalseread-onlyTrue if the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane; false for control-plane created artifacts.
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /llm-proxies/{id}), omitted from list responses.
versionstringtruenoneSemantic version of the LLM proxy
projectIdstringtruenoneHandle (URL-friendly slug) of the project this proxy belongs to
contextstringfalsenoneBase path for all routes exposed by this proxy. Must start with / and carry no trailing slash; the single exception is the root path "/", which is the default.
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
additionalProviders[LLMProxyAdditionalProvider]falsenoneOptional list of additional LLM providers attached to this proxy as selectable upstreams. Policies route requests to any of these by setting the upstream name. The primary provider field above remains the default upstream and the FK target.
openapistringfalsenoneOpenAPI specification (JSON or YAML) for the proxy endpoint
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).
securitySecurityConfigfalsenoneDefines security mechanisms (API key, OAuth2) applicable to the API
associatedGateways[AssociatedGateway]falsenoneOptional list of gateways this LLM proxy can be deployed to, along with per-gateway configuration overrides. This field is optional; omitting it does not change existing behaviour.
createdAtstring(date-time)falseread-onlyTimestamp when the resource was created
updatedAtstring(date-time)falseread-onlyTimestamp when the resource was last updated

LLMProxyListItem​

{
"id": "wso2-con-assistant",
"displayName": "WSO2 Con Assistant",
"description": "Customer support assistant",
"createdBy": "john.doe",
"context": "/wso2-con-assistant",
"version": "v1.0",
"projectId": "default-project",
"provider": "wso2-openai-provider",
"status": "deployed",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z",
"readOnly": false
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
displayNamestringtruenoneHuman-readable name for the LLM proxy
descriptionstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
contextstringfalsenoneContext path where the proxy is exposed
versionstringfalsenonenone
projectIdstringfalsenoneHandle (URL-friendly slug) of the project this proxy belongs to
providerstringfalsenoneUnique id of a deployed llm provider
statusstringfalsenonenone
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
readOnlybooleanfalsenoneTrue when the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane.
Enumerated Values​
PropertyValue
statuspending
statusdeployed
statusfailed

LLMProxyListResponse​

{
"count": 2,
"list": [
{
"id": "wso2-con-assistant",
"displayName": "WSO2 Con Assistant",
"description": "Customer support assistant",
"createdBy": "john.doe",
"context": "/wso2-con-assistant",
"version": "v1.0",
"projectId": "default-project",
"provider": "wso2-openai-provider",
"status": "deployed",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z",
"readOnly": false
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenonenone
list[LLMProxyListItem]truenonenone
paginationPaginationtruenonenone

LLMProxyProvider​

{
"id": "wso2-openai-provider",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringtruenoneUnique id of a deployed llm provider
authUpstreamAuthfalsenoneAuthentication configuration for upstream endpoints

LLMProxyAdditionalProvider​

{
"id": "anthropic-provider",
"as": "anthropic-upstream",
"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).

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.
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).

CreateLLMProviderAPIKeyRequest​

{
"id": "production-key",
"displayName": "Production Key",
"expiresAt": "2026-12-31T23:59:59Z",
"issuer": "api-platform-devportal",
"allowedTargets": "dev_gateway,test_gateway"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique identifier for the API key within the LLM provider. If not provided, generated from displayName.
displayNamestringtruenoneHuman-readable name for the API key
expiresAtstring(date-time)falsenoneOptional expiration time in ISO 8601 format
issuerstring¦nullfalsenoneIdentifier of the API Portal that provisioned this API key. Null if not provided.
allowedTargetsstring¦nullfalsenoneComma-separated list of gateways this key is valid for.
Use 'ALL' to allow all targets (default).

CreateLLMProviderAPIKeyResponse​

{
"status": "success",
"message": "API key created and broadcasted to gateways successfully",
"id": "production-key",
"apiKey": "REDACTED_API_KEY"
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenoneStatus of the operation
messagestringtruenoneDetailed message about the operation result
idstringtruenoneUnique identifier of the generated key
apiKeystringtruenoneThe generated API key value — 64 hexadecimal characters, returned only in this creation response and never retrievable afterwards. The example value is a non-functional placeholder.

CreateLLMProxyAPIKeyRequest​

{
"id": "production-key",
"displayName": "Production Key",
"expiresAt": "2026-12-31T23:59:59Z",
"issuer": "api-platform-devportal",
"allowedTargets": "dev_gateway,test_gateway"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique identifier for the API key within the LLM proxy. If not provided, generated from displayName.
displayNamestringtruenoneHuman-readable name for the API key
expiresAtstring(date-time)falsenoneOptional expiration time in ISO 8601 format
issuerstring¦nullfalsenoneIdentifier of the API Portal that provisioned this API key. Null if not provided.
allowedTargetsstring¦nullfalsenoneComma-separated list of gateways this key is valid for.
Use 'ALL' to allow all targets (default).

CreateLLMProxyAPIKeyResponse​

{
"status": "success",
"message": "API key created and broadcasted to gateways successfully",
"id": "production-key",
"apiKey": "REDACTED_API_KEY"
}

Properties​

NameTypeRequiredRestrictionsDescription
statusstringtruenoneStatus of the operation
messagestringtruenoneDetailed message about the operation result
idstringtruenoneUnique identifier of the generated key
apiKeystringtruenoneThe generated API key value — 64 hexadecimal characters, returned only in this creation response and never retrievable afterwards. The example value is a non-functional placeholder.

MCPProxy​

{
"id": "weather-mcp-proxy",
"displayName": "Weather Server",
"description": "An MCP server which provides weather information",
"createdBy": "john.doe",
"readOnly": false,
"updatedBy": "john.doe",
"version": "v1.0",
"projectId": "default-project",
"context": "/",
"vhost": "mcp.gw.com",
"upstream": {
"main": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
},
"sandbox": {
"url": "http://prod-backend:5000/api/v2",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}
},
"mcpSpecVersion": "2025-06-18",
"policies": [
{
"executionCondition": "request.header.x-custom == 'enabled'",
"name": "SET_HEADER",
"params": {
"key": "MyHeader",
"value": "MyValue"
},
"version": "v1"
}
],
"kind": "Mcp",
"capabilities": {
"tools": [
{}
],
"resources": [
{}
],
"prompts": [
{}
]
},
"associatedGateways": [
{
"id": "prod-eu"
},
{
"id": "prod-us"
}
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneUnique handle for the proxy
displayNamestringtruenoneHuman-readable MCP proxy name
descriptionstringfalsenoneDescription of the MCP proxy
createdBystringfalseread-onlyUser identifier of the user who created this resource
readOnlybooleanfalseread-onlyTrue if the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane; false for control-plane created artifacts.
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource. Only present in the detail response (GET /mcp-proxies/{id}), omitted from list responses.
versionstringtruenoneSemantic version of the MCP proxy
projectIdstringfalsenoneHandle (URL-friendly slug) of the project this proxy belongs to
contextstringfalsenoneBase path for all routes exposed by this proxy. Must start with / and carry no trailing slash; the single exception is the root path "/", which is the default.
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).
upstreamUpstreamtruenoneUpstream backend configuration with main and sandbox endpoints
mcpSpecVersionstringfalsenoneMCP specification version supported by this proxy
policies[Policy]falsenoneList of policies to be applied
kindstringfalsenoneKind of the API based on its communication protocol or architectural style
capabilitiesMCPProxyCapabilitiesfalsenoneList of capabilities supported by this proxy. This will be stored as-is and can be used in the future if we need this for governance purposes
associatedGateways[AssociatedGateway]falsenoneOptional list of gateways this MCP proxy can be deployed to, along with per-gateway configuration overrides. This field is optional; omitting it does not change existing behaviour.
createdAtstring(date-time)falseread-onlyTimestamp when the resource was created
updatedAtstring(date-time)falseread-onlyTimestamp when the resource was last updated
Enumerated Values​
PropertyValue
mcpSpecVersion2025-06-18
mcpSpecVersion2025-11-25

MCPProxyListItem​

{
"id": "weather-mcp-proxy",
"displayName": "Weather Server",
"description": "An MCP server which provides weather information",
"createdBy": "john.doe",
"context": "/weather-mcp-proxy",
"version": "v1.0",
"projectId": "default-project",
"status": "deployed",
"mcpSpecVersion": "2025-11-25",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z",
"readOnly": false
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
displayNamestringtruenoneHuman-readable name for the MCP proxy
descriptionstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
contextstringfalsenoneContext path where the proxy is exposed
versionstringfalsenonenone
projectIdstringfalsenoneHandle (URL-friendly slug) of the project this proxy belongs to
statusstringfalsenonenone
mcpSpecVersionstringfalsenonenone
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
readOnlybooleanfalsenoneTrue when the artifact originated from a data-plane gateway (origin gateway_api) and is read-only in the control plane.
Enumerated Values​
PropertyValue
statuspending
statusdeployed
statusfailed

MCPProxyListResponse​

{
"count": 2,
"list": [
{
"id": "weather-mcp-proxy",
"displayName": "Weather Server",
"description": "An MCP server which provides weather information",
"createdBy": "john.doe",
"context": "/weather-mcp-proxy",
"version": "v1.0",
"projectId": "default-project",
"status": "deployed",
"mcpSpecVersion": "2025-11-25",
"createdAt": "2025-11-25T10:30:00Z",
"updatedAt": "2025-11-25T10:30:00Z",
"readOnly": false
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenonenone
list[MCPProxyListItem]truenonenone
paginationPaginationtruenonenone

MCPServerInfoFetchRequest​

{
"url": "https://mcp.server.com/mcp",
"proxyId": "my-mcp-proxy",
"auth": {
"type": "api-key",
"header": "X-API-Key",
"value": "my-api-key-value"
}
}

Target MCP server to introspect, and the credentials to introspect it with. At least one of url/proxyId must be provided

Properties​

NameTypeRequiredRestrictionsDescription
urlstring(uri)falsenoneEndpoint URL of the MCP server to fetch information from. Required unless
proxyId is given. When sent together with proxyId it overrides that proxy's
stored upstream URL, while the proxy's stored credentials are still used — this
validates an unsaved endpoint edit without re-sending a write-only secret.
proxyIdstringfalsenoneMCP proxy handle (identifier) for refresh operations. The stored credentials of
this proxy are used for the fetch, and its stored upstream URL too unless url
overrides it. Required unless url is given.
authUpstreamAuthfalsenoneAuthentication configuration for the fetch request. Allowed only when proxyId
is absent (initial creation flow); sending it with proxyId is rejected, as the
stored auth is used whenever a proxy is referenced.

anyOf

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

or

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

not

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

MCPServerInfoFetchResponse​

{
"serverInfo": {},
"tools": [
{}
],
"resources": [
{}
],
"prompts": [
{}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
serverInfoobjectfalsenonenone
tools[object]falsenonenone
resources[object]falsenonenone
prompts[object]falsenonenone

MCPProxyCapabilities​

{
"tools": [
{}
],
"resources": [
{}
],
"prompts": [
{}
]
}

Properties​

NameTypeRequiredRestrictionsDescription
tools[object]falsenoneList of tool capabilities supported by this proxy
resources[object]falsenoneList of resource capabilities supported by this proxy
prompts[object]falsenoneList of prompt capabilities supported by this proxy

SecretCreateRequest​

{
"id": "wso2-openai-key",
"displayName": "WSO2 OpenAI API Key",
"description": "Primary API key for WSO2 OpenAI integration",
"value": "sk-xxx",
"type": "GENERIC"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneHandle (slug) used in {{ secret "id" }} placeholders. Immutable after creation.
displayNamestringtruenoneHuman-readable name for the secret
descriptionstringfalsenonenone
valuestringtruewrite-onlyPlaintext secret value — encrypted at rest, never returned in any response
typestringfalsenonenone
Enumerated Values​
PropertyValue
typeGENERIC
typeCERTIFICATE

SecretUpdateRequest​

{
"id": "wso2-openai-key",
"displayName": "string",
"description": "string",
"value": "string"
}

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenoneSecret handle — if provided, must match the path parameter; returns 400 if they differ. The handle is immutable and cannot be changed via update.
displayNamestringtruenoneHuman-readable name for the secret
descriptionstringfalsenonenone
valuestringtruewrite-onlyNew plaintext secret value — re-encrypted at rest

SecretResponse​

{
"id": "wso2-openai-key",
"displayName": "WSO2 OpenAI API Key",
"createdBy": "john.doe",
"updatedBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Returned on create (201) and rotate (200). The plaintext value is never included.

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
displayNamestringtruenoneHuman-readable name for the secret
createdBystringfalseread-onlyUser identifier of the user who created this resource
updatedBystringfalseread-onlyUser identifier of the user who last updated this resource
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone

SecretSummary​

{
"id": "wso2-openai-key",
"displayName": "WSO2 OpenAI API Key",
"description": "string",
"type": "GENERIC",
"provider": "IN_BUILT",
"status": "ACTIVE",
"hash": "hmac-sha256:b94d27b9934d3e08a52e52d7da7dabfac484efe04294e576d4b3d4c57e3f428a",
"createdBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Secret metadata — never includes the plaintext value.

Properties​

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
displayNamestringtruenoneHuman-readable name for the secret
descriptionstringfalsenonenone
typestringfalsenonenone
providerstringfalsenonenone
statusstringfalsenonenone
hashstringfalsenonenone
createdBystringfalseread-onlyUser identifier of the user who created this resource
createdAtstring(date-time)falsenonenone
updatedAtstring(date-time)falsenonenone
Enumerated Values​
PropertyValue
typeGENERIC
typeCERTIFICATE
providerIN_BUILT
statusACTIVE
statusDEPRECATED

SecretListResponse​

{
"count": 0,
"list": [
{
"id": "wso2-openai-key",
"displayName": "WSO2 OpenAI API Key",
"description": "string",
"type": "GENERIC",
"provider": "IN_BUILT",
"status": "ACTIVE",
"hash": "hmac-sha256:b94d27b9934d3e08a52e52d7da7dabfac484efe04294e576d4b3d4c57e3f428a",
"createdBy": "john.doe",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of secrets in current response
list[SecretSummary]truenone[Secret metadata — never includes the plaintext value.]
paginationPaginationtruenonenone

GatewayTokenListResponse​

{
"count": 0,
"list": [
{
"id": "abc12345-f678-90de-f123-456789abcdef",
"status": "active",
"createdAt": "2025-10-14T10:30:00Z",
"revokedAt": null
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of tokens in current response
list[TokenInfoResponse]truenoneList of active tokens
paginationPaginationtruenonenone

CustomPolicyListResponse​

{
"count": 0,
"list": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"organizationUuid": "bc554ded-7e40-44a7-b397-48480793ad03",
"name": "rate-limit-custom",
"version": "1.0.0",
"description": "Custom rate limiting policy",
"policyDefinition": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}

Properties​

NameTypeRequiredRestrictionsDescription
countintegertruenoneNumber of custom policies in current response
list[CustomPolicyResponse]truenoneList of custom policies
paginationPaginationtruenonenone

Was this page helpful?