The Test Connection API allows you to validate if the entered endpoint details are valid. The API verifies if the provided endpoint URL, workspace ID an data key is accessible and responds without any errors.
This authentication parameter, used for access control, must be passed along with the request. 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 Base64_ENCODED_WORKSPACEID_APIKEY=="}
The username and password details can be obtained from the MoEngage Dashboard. If you're using the API for the first time, follow these steps:
Use these details to authenticate the API requests.
This is your MoEngage account's data API keythat has to be passed along with the request. You can find it at Settings -> Account -> APIs -> API Keys -> Data.
"{MoEngage data API key}"
This authentication parameter, used for access control, must be passed along with the request. To generate the authentication header, refer to Authentication.
"Basic bmF2ZWVua3VtYXI6bW9lbmdhZ2U=="
Set the Content-Type header to application/json.
Success. This response is returned when the request is processed successfully.