WSO2
November 25, 2026
In This Blog
Most API Manager upgrades we run for clients are routine. Version 4.7 deserves more attention, because several defaults change in ways that affect security reviews and existing automation.
The headline changes from the release notes:

Everything runs in one process in the all-in-one distribution used here. In production, 4.7 also ships the control plane, a Universal (classic) Gateway and the Traffic Manager as separate distributions, so you can scale the Gateway independently.
| Component | What it does | Where you use it |
| API Publisher | Design, secure, deploy and publish APIs | Steps 2 to 4 |
| Developer Portal | API discovery, subscriptions and keys | Step 5 |
| Admin Portal | Rate limiting policies, key managers, gateway environments | Hardening and next steps |
| Key Manager | Issues OAuth2 tokens; built-in, WSO2 Identity Server or Asgardeo | Steps 5 and 6 |
| API Gateway | Validates tokens, enforces policies and routes traffic | Step 6 |
| Traffic Manager | Counts traffic and coordinates rate limits across gateways | Production |
In 4.7, sensitive data is encrypted with a symmetric AES-256 key by default. If you start the server without one, it generates a random key and warns you, and replacing it later means running a key rotation. So set your own key before the very first start, as described in WSO2’s symmetric encryption guide:
# <APIM_HOME>/repository/conf/deployment.toml
# Generate once with: openssl rand -hex 32
[encryption]
key = "<your-64-character-hex-key>"
Keep this key in your secrets store and back it up. Every node in a cluster must use exactly the same key. Then point JAVA_HOME at JDK 21 or 25 and start the server from the bin directory. The portals open at https://localhost:9443/publisher and https://localhost:9443/devportal.
In the Publisher, choose Create API, then Start From Scratch, or import an OpenAPI definition if you have one. We recommend importing a definition whenever one exists: the contract becomes the source of truth instead of something rebuilt by hand. Set a name, the context /orders, the version 1.0.0 and your backend endpoint URL.
Add the resources, for example GET /items, and confirm that OAuth2 application-level security is enabled in the runtime settings. Then select at least one business plan (subscription policy) consumers can subscribe to. Plans are where rate limits begin; our guide to rate limiting covers how to size them.
Create a revision, deploy it to the default Gateway environment, then publish. Revisions give you a clean rollback point, so treat each deployment as a versioned release rather than an edit to a live API.
In the Developer Portal, create an application, subscribe it to the API on your chosen plan, and generate OAuth2 keys. Keep the consumer secret out of source control from day one.
# 1. Get an access token (client credentials grant)
curl -k -X POST https://localhost:9443/oauth2/token \
-u "<CONSUMER_KEY>:<CONSUMER_SECRET>" \
-d "grant_type=client_credentials"
# 2. Call the API through the Gateway with the token
curl -k https://localhost:8243/orders/1.0.0/items \
-H "Authorization: Bearer <ACCESS_TOKEN>"
# 3. Call it without a token: expect HTTP 401
curl -k -i https://localhost:8243/orders/1.0.0/items
The first call returns JSON with an access token. The second should return HTTP 200 with the backend’s response. The third should return HTTP 401, proving the Gateway rejects unauthenticated traffic. We always run the negative test: an API that answers without a token is the most expensive mistake to discover in production. The -k flag is only for the default self-signed certificate on a local machine.
Most upgrade issues we see come from defaults, not features. Before you move an existing environment to 4.7, check four things:
Rehearse the upgrade on a copy of production data first. It is the cheapest way to find the one default that matters to you.
Once your first API is live, the next steps we usually take with clients are rate limiting and throttling policies, an external identity provider as Key Manager, apictl-driven CI/CD, and, where it fits, a pilot of the API Platform Gateway. For backend services behind the Gateway, see our WSO2 Integrator 5.0 tutorial.
Tellestia’s WSO2 API Manager team plans, builds and runs API platforms for enterprises. Planning a 4.7 upgrade or a new API program? Talk to our WSO2 team, or explore our WSO2 Managed Services and API governance services.