Getting started Community Training Tutorials Documentation APIs, AI & Tools
-
Exchange: Exchange Viewer
-
Exchange: Exchange Contributor
-
Exchange: Exchange Administrator
Use the API playground to explore an API’s endpoints, configure and send requests, and inspect responses from the service detail page. Instead of copying paths into an external tool such as Postman, you exercise the API in the enhanced experience and see the results next to its documentation.
Before getting started, make sure you have:
An Anypoint Platform account.
One of these permissions:
Exchange: Exchange Viewer
Exchange: Exchange Contributor
Exchange: Exchange Administrator
For more information, see Enhanced Experience Permissions.
The API playground is available only for REST APIs that have at least one instance deployed. To find a compatible API, filter the catalog by REST API or select a REST API you know.
In Portfolio, open the APIs catalog and select the REST API you want to test.
On the service detail page, select the Playground tab.
The playground shows the endpoint list on the left. Each endpoint has its own required parameters and configuration.
In the endpoint list, select the endpoint you want to test (for example, a POST endpoint that creates a new record).
Select the version and instance to choose the environment you want to test against.
Before sending a request, authenticate to the API. The available methods depend on what the API owner enabled.
In the authentication section, select an authentication method. If the API owner enabled only one method (for example, API key), use that method.
Enter the required values, such as the API key.
After authenticating, configure the details of the request:
Configure the request body in the format the endpoint expects, such as JSON, XML, form, or multipart. Multipart supports file upload.
Add and configure request parameters.
Add and configure request headers.
After configuring the request, select Send.
Review the response:
Status code, along with the response size and speed.
Response body.
Response headers, which you can copy.