Since July 2023, the MuleSoft Anypoint Platform APIs in Qodex are transitioning to a new home! Within the Salesforce Developers Workspace available at: [ ; don't forget to Fork and Watch to keep up to date! 


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

  1. ParentPOM, CRUD Teams, OOTB API Manager, ObjectStore & Stats, VPN Status by Ashish Pardhi
  2. Hybrid logic (RuntimeManager->Applications->Hybrid by Rolando Carrasco)
  3. 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
  4. 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
  5. CRUD for Business Groups (Access Management) by Ivan Z.
  6. 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

Thanks to our awesome contributors

Get started with these 5 minutes videos!

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

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.

Environment

Make sure you haveand then you can finally download the Qodex assets from this repository. Import both files and make sure to add both anypoint-username and anypoint-password to your Qodex Environment, the fields highlighted below.

This collection pack contains an environment Anypoint Platform. Set the values before you use any request. You must set the following:

  • url
  • 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

Authors

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