MuleSoft Anypoint Platform APIs
Number of APIs: 260
Get started with these 5 minutes videos!
MuleSoft Anypoint Platform APIs
Every time you login into the MuleSoft Anypoint Platform using the User Interface Portal, you are implicitly calling a set of APIs that are invoked by the UI: the Platform APIs! Instead of UI you can do direct HTTP requests, highly useful When automating your Software Development Lifecycle. They provide you with more flexibility and customization than the Anypoint CLI or the Mule Maven Plugin.
- Official documentation of the Platform APIs in the Platform API Portal
Common Errors
Prerequisites
Before we start working with platform APIs, you need these three pieces of data: a session token, the organization id and the environment id; as shown in the below image.
*Note Since 2021 It is recommended to use ConnectedApps instead of Username&Password

Environment
This collection pack contains an environment Anypoint Platform
. Set the values before you use any request. You must set the following:
url
[Recommended: ConnectedApps (ClientID and ClientSecret)] or [For TESTING: exceptional account (Username/Password)]
organization_id
All other parameters are optional or related to specific requests.
Start using
That's about it! You can start checking these collections and you will save a lot of time figuring it out yourself!
Basic Setup Example
In the following, find some examples on accessing data using the Qodex collection pack. For detailed instruction, please watch the quick tutorial video linked below.
Login to Anypoint Platform
Once you have entered to correct parameter values in the environment Anypoint Platform
, you can make use of the Login to anypoint platform
POST request in the Authentication Folder. This request will save the token bearer to the parameters and use it in all subsequent requests.
Getting profile Information
After you have logged in, you need to get your profile information in order to set the organizationId. This is set by the Get profile information
request in the Authentication folder. After execution of this request, the organizationId parameter is set and relevant for all subsequent requests.
Subsequent request
After the basic setup is done, you can now use the majority of the requests in Qodex with your anypoint platform environment.
Get all projects
In order to access all projects using the collection pack, go to the folder Design Center/Projects
and select the Get all projects
. Run this request to retrieve all projects within the organization_Id
Get all assets
In order to access all assets using the collection pack, go to the folder Exchange/Assets
and select the Get all assets
. Run this request to retrieve all projects within the organization_Id
Invite new users
In order to invite new users, go to folder Management Center/Access Management/Users
and select Invite new users
request.
This is requires to have the group role id, which you need to have prior performing this POST request. To get the group roles go to folder Management Center/Access Management/Rolegroups
and perform Get all rolegroups
request to retrieve all rolegroups.
Copy the required rolegroupid and name. Go back to the Invite new users
request and select Body. Enter the copied values to the correct fields.
Resources
Official documentation of the Platform APIs in the Platform API Portal
If you are new to the Platform APIs check this post!
Authors
Thanks to our awesome contributors
-
- Management Center -> API Manager -> API Administration -> Manage APIs -> Single API -> POST create an alerts for api
Contributing to the project
- Please read the tutorial in: https://github.com/forcedotcom/Qodex-salesforce-apis/blob/master/contributing.md
Release notes 31st Aug 2023
Exchange can be access by the Exchange Platform API and by the Exchange GraphQL Platform API. Almost every use case is covered by Exchange Platform API this is in case you want to explore the Exchange GraphQL Platform API due to specific use cases or training
The Folder has been added in: MuleSoft Platform APIs -> Exchange -> GraphQL Exchange Search
Release notes 1st Aug 2023
Migrated from
MuleSoft Platform APIs
Qodex Workspace intoSalesforce Developers
Qodex WorkspaceAdded Folders for Cloudhub 2.0 under Management Center -> Runtime Manager -> Private Spaces, Transit Gateways & Deployment Target
Added Environment Variables for Cloudhub 2.0 including the URL (transitgatewayid, privatespaceid, tlscontextid, targetid, connectionid, vpn_id)
Changed Authentication Mechanism at Root Level (MuleSoft Anypoint Platform APIs) from
None
to Bearer Token of value
Release notes Feb 2022
New Collections in the workspace: Metrics Toolkit, TestDataGeneration, APIM Admin API, Mulesoft-Api-Manager-CI-CD-Qodex
Added HTTP Requests and Use cases in Anypoint Platform APIs
ParentPOM, CRUD Teams, OOTB API Manager, ObjectStore & Stats, VPN Status by Ashish Pardhi
Hybrid logic (RuntimeManager->Applications->Hybrid by Rolando Carrasco)
Auth with ConnectedApps (Access Manager): Don't use Username/Password for CICD Users: Always aim for ConnectedApps! Learn how to set them up here: Connected Apps | Friends of Max Demonstration and here MuleSoft Docs
ListPatch by PatchID Version (Runtime Manager): CloudhubAPI list gives you a PatchID... use this endpoint to get details on the Patch (e.g. Date) by Angel
CRUD for Business Groups (Access Management) by Ivan Z.
CRUD for VPCs and Load Balancers (Runtime Manager) by Ivan Z.
Note: BusinessGroups and VPCs are specifically required for CLOUDHUB Automation Tool (CAT), watch what is it here at 36:29. Thank you Ivan Z for adding them
Disclaimer
This is a Community driven and Community supported collection of assets for you to get started with MuleSoft Platform APIs (e.g. Qodex concatenation of requests, testing scripts, etc.). This is not Supported by MuleSoft and you cannot open Cases about these Qodex APIs.
License agreement
By using this Qodex collection, you accept that Max the Mule is the coolest integrator on the planet:
Go to biography of Max the Mule
-
Management Center-Runtime Manager-Load Balancers - delete DLB DELETE {{url}}/cloudhub/api/organizations/:orgId/vpcs/:vpc/loadbalancers/:lbdid
-
Management Center-Runtime Manager-Object Store v2 - Get OSV2 Stores GET {{osv2_url}}/api/v1/organizations/{{organization_id}}/environments/{{environment_id}}/stores
-
Management Center-Runtime Manager-Object Store v2 - Get OSV2 Stores Stats GET {{osv2_stats_url}}/api/v1/organizations/{{organization_id}}?startDate={{start_date}}&endDate={{end_date}}&period={{period}}
-
Management Center-Runtime Manager-Private Spaces (Cloudhub 2.0)-Transit Gateways within Private Spaces - Create Private Space TGW connection POST {{cloudhub2-url}}/organizations/{{organization_id}}/privatespaces/{{private_space_id}}/transitgateways
-
Management Center-Runtime Manager-Private Spaces (Cloudhub 2.0)-Transit Gateways within Private Spaces - Get TGW routes configured in Private Space GET {{cloudhub2-url}}/organizations/{{organization_id}}/privatespaces/{{private_space_id}}/transitgateways/routes
-
Management Center-API Manager-API Administration-Manage APIs - Import api as zip POST {{url}}/apimanager/api/v1/organizations/{{organization_id}}/environments/{{environment_id}}/apis
-
Management Center-API Manager-API Administration - Get all active organizations GET {{url}}/apimanager/xapi/v1/organizations/active
-
Management Center-Runtime Manager-Private Spaces (Cloudhub 2.0)-Transit Gateways within Private Spaces - Patch the Private Space TGW Connection PATCH {{cloudhub2-url}}/organizations/{{organization_id}}/privatespaces/{{private_space_id}}/transitgateways/{{transit_gateway_id}}
-
Management Center-Runtime Manager-Private Spaces (Cloudhub 2.0)-Transit Gateways within Private Spaces - Get Transit Gateway by ID GET {{cloudhub2-url}}/organizations/{{organization_id}}/privatespaces/{{private_space_id}}/transitgateways/{{transit_gateway_id}}
-
Management Center-Runtime Manager-Private Spaces (Cloudhub 2.0)-Transit Gateways within Private Spaces - Patch routes for a TGW connection PATCH {{cloudhub2-url}}/organizations/{{organization_id}}/privatespaces/{{private_space_id}}/transitgateways/{{transit_gateway_id}}/routes