Fetch Experience Metadata
The Metadata API is used to fetch a list of currently Active, Scheduled and Paused experiences within a workspace.
Authorizations
The API request will be authenticated through Basic Authentication. Basic Authentication sends a Base64-encoded string containing your username and password with every API request. It encodes a 'username:password' string in Base64 and appends the encoded string with 'Basic '. This string is included in the authorization header as shown below:
{"Authorization":"Basic bmF2ZWVua3VtYXI6bW9lbmdhZ2U="}
The username and password details can be obtained from the MoEngage Dashboard.
- Navigate to Settings -> Account -> APIs.
- Click the Copy icon in the Personalize tile in the API Keys section to copy the API Key.
- Use the Workspace ID as the username and the Personalize API Key as the password to generate the authentication header.
Headers
This is the Workspace ID of your MoEngage account, and it needs to be passed along with the request. You can find your MoEngage Workspace ID in the MoEngage Dashboard API Settings. For more information, refer to Authentication.
"Workspace ID"
Query Parameters
You can also fetch experiences that are in a specific state - Only Active or only Active + Paused - by using the query parameter status.
"Active,Paused"
Response
Successful retrieval