After you have created an API using Design Center or any other application, you can then manage that API in API Manager by adding an API instance. API instances remain under management until you delete them.
Use Flex Gateway for any APIs that need a flexible and performant API gateway that works with distributed and microservices environments and fits into your CI/CD environments.
Use Flex Gateway to protect MCP servers that need a flexible and performant gateway that works with distributed and microservices environments and fits into your CI/CD environments.
Use Flex Gateway for any A2A servers that need a flexible and performant gateway that works with distributed and microservices environments and fits into your CI/CD environments.
Use Mule Gateway if you have APIs on Mule Runtime that need an API gateway to manage, observe, and secure your APIs.
Use Anypoint Service Mesh to extend Anypoint Platform API Management capabilities to your Istio service mesh through the deployment of a Mule Adapter.
The following diagram shows the server instance’s upstream and downstream configurations. In this configuration, the downstream service is the service making requests that are completed by the upstream server. These terms represent the direction of dependency, not the direction of information.
There are three options for adding an API instance:
-
Add a new API: Select this option to add a completely new instance of an API.
-
Promote API from environment: Select this option if you have an API instance in a different environment, for instance the sandbox environment, and you want to promote it to the current or production environment.
-
Import API from zip file: Select this option if you have exported an API instance from a different Anypoint Platform instance.
When you are promoting or importing an API instance, you do not have options to alter the configuration. However, when you add a new API instance, you need to the downstream and the upstream configuration settings.
The following diagram shows the relationship of the upstream and downstream configurations settings to your upstream service and the downstream consumer application. In this configuration, the downstream service is the service making API requests that are completed by the upstream service. These terms represent the direction of dependency, not the direction of information. A downstream service could make a POST request where it provides information to the upstream service. However, the downstream service is still dependent on the upstream service to complete the request.
-
Navigate to Anypoint Platform > API Manager.
-
In API Administration, click Add API and select Add new API.
-
Select Mule Gateway as your runtime.
-
Select Deploy a proxy application for Proxy type.
-
If you selected to deploy a proxy application, select the Target type from the following options:
-
CloudHub 2.0: Select this option if you want to use the Mule runtime hosted by MuleSoft in a container-based cloud infrastructure. The CloudHub 2.0 proxy includes a CPU with 0.1 vCores by default.
-
Select a space.
To learn more about spaces, see cloudhub-2::ch2-shared-space-about.adoc and cloudhub-2::ch2-private-space-about.adoc.
-
In Runtime version:
-
Select the Runtime Channel.
-
Select the Version for Mule runtime.
-
Select the Java version.
-
-
Enter a Proxy app name.
-
-
CloudHub: Select this option if you want to use the Mule runtime hosted on the cloud by MuleSoft. The CloudHub proxy includes a CPU with 0.1 vCores and a memory of 500 MB, by default.
-
In Runtime version:
-
Select the Runtime Channel.
-
Select the Version for Mule runtime.
-
Select the Java version.
-
-
Enter a Proxy app name.
-
-
Hybrid: Select this option if you want to use a Mule runtime instance running on an on-premises server that is registered in Runtime Manager.
See Register a server in Runtime Manager for more information.
-
Select a target from the list or click Add server.
-
Enter a Proxy app name.
-
-
Self-managed Server: Select this option if you want to create a JAR file to deploy an API proxy to a Mule runtime instance running on an on-premises server that is not registered in Runtime Manager. For more information, see mule-runtime::mule-deployment-model.adoc.
-
Deploying an API proxy to a self-managed server in API Manager doesn’t deploy the proxy to your on-premises server. After you deploy the proxy in API Manager, deploy the proxy to your on-premises server: . Download your new API proxy JAR file. . Deploy the JAR file to your on-premises server.
-
Runtime Fabric: Select Runtime Fabric if you want to deploy API Proxies to a Mule runtime engine that is managed on Runtime Fabric. See Deploying API Proxies to Runtime Fabric for more information.
-
Select a target from the list.
-
In Runtime version:
-
Select the Runtime Channel.
-
Select the Version for Mule runtime.
-
Select the Java version.
-
-
Enter a Proxy app name.
-
-
Select Hybrid for Target Type, then select the target server.
-
Click Next.
-
Select an API from the following options:
-
Click Select API from Exchange if you have an API shared with you through Exchange that you want to manage.
-
Click the API from the list under Select API. You can search for a specific API if needed.
-
Update the Asset type, API version, and Asset version if you are not using the latest version.
For more information about versions in Exchange, see exchange::asset-versions.adoc.
-
If you chose a RAML/OAS asset type, view the Conformance Status of the API to ensure the API is conformant. If the Conformance Status is nonconformant, after deployment, view the Governance Report to find and fix the conformance issues. For more information about the Governance Report, see govern-api-instances.adoc.
-
-
Click Create new API:
-
Enter a Name for the new API asset.
-
-
-
Select the Asset type from the following options:
-
REST API: Select this option if you have an OAS API definition file you want to include for your asset.
Upload an OAS file for your REST API. Versions 2.0.0 and later are the recommended versions for OAS specs, because these versions add native OAS support. If you upload an OAS API specification to an API proxy version 1.0 or earlier, your API specification is translated to RAML.
-
HTTP API: Select this option if you do not have an API definition file you want to include for your asset.
-
-
Update the Asset type, API version, and Asset version if you are not using the latest version.
For more information about versions in Exchange, see exchange::asset-versions.adoc.
-
If you chose a RAML/OAS asset type, view the Conformance Status of the API to ensure the API is conformant. If the Conformance Status is nonconformant, after deployment, view the Governance Report to find and fix the conformance issues. For more information about the Governance Report, see govern-api-instances.adoc.
-
Click Next.
-
-
Select the Asset type from the following options:
-
REST API: Select this option if you have a RAML or OAS API definition file you want to include for your asset.
Upload either a RAML or OAS file for your REST API. Versions 2.0.0 and later are the recommended versions for OAS or RAML specs, because these versions add native OAS support. If you upload an OAS API specification to an API proxy version 1.0 or earlier, your API specification is translated to RAML.
-
HTTP API: Select this option if you do not have an API definition file you want to include for your asset.
-
SOAP API: Select this option if you have a WSDL API definition file or an external link to the file.
Upload a WSDL file for your SOAP API or add the link to the file.
This option is not available for Flex Gateway runtime at this time.
-
-
Update the Asset type, API version, and Asset version if you are not using the latest version.
For more information about versions in Exchange, see exchange::asset-versions.adoc.
-
If you chose a RAML/OAS asset type, view the Conformance Status of the API to ensure the API is conformant. If the Conformance Status is nonconformant, after deployment, view the Governance Report to find and fix the conformance issues. For more information about the Governance Report, see govern-api-instances.adoc.
-
Click Next.
-
-
Select REST API as the Asset type.
-
Upload either a RAML or OAS file for your REST API.
NoteAnypoint API Manager supports OpenAPI Specification (OAS) 3.0, with the exception of the callback feature. To work around this issue, handle the callback outside of the Mule runtime engine domain or use an OAS 3.0 specification that does not use callbacks. -
Update the Asset type, API version, and Asset version if you are not using the latest version.
For more information about versions in Exchange, see exchange::asset-versions.adoc.
-
View the Conformance Status of the API to ensure the API is conformant. If the Conformance Status is nonconformant, after deployment, view the Governance Report to find and fix the conformance issues. For more information about the Governance Report, see govern-api-instances.adoc
-
Click Next.
-
-
Select SOAP API as the Asset type.
-
Select either Upload a WSDL or Use an external link as the method.
-
Update the Asset type, API version, and Asset version if needed.
-
Click Next.
-
-
Configure the downstream configuration settings:
Expand for configuration settings.
-
Click Next.
-
Configure the downstream configuration settings:
Expand for configuration settings.
NoteTo configure an HTTPS Proxy, you must select HTTPS and configure an Inbound TLS context. -
Click Next.
-
Configure the upstream configuration settings:
Expand for configuration settings.
-
Click Next.
-
Review your selections and edit them if necessary.
-
If you are ready to deploy, click Save & Deploy. Otherwise, you can select Save, to save the API instance and deploy it at a later time.

