To set up an API to be used during MoEngage campaigns, perform the following steps:
- Navigate to the MoEngage Dashboard > Settings > Advanced Settings.
- Click Content API.
- Click + Add content API. The Add content API screen pops up.
- Fill in the following details:
Field Description API name Add the name for the content API here. Method The following methods are supported for Content APIs:
- GET
- POST
- PUT
Select the HTTP Request method of the content API being configured.
Note: The POST option will be enabled on request. Contact your CSM or the MoEngage Support team to enable it.
OAuth If the content API being configured supports OAuth, enable this toggle. To learn more, see FAQs.
Note: The OAuth option will be enabled on request. Contact your CSM or the MoEngage Support team to enable it.
URL Add the URL of the Content API to which the request will be sent. URL Parameters Add the URL parameters to be passed in the request. Click +KV pair if more than one URL parameter is required. Headers Add the Headers to be added to the request. Click +KV pair if more than one header is required. Dynamic values Provide a sample value for the parameters to ensure that the API is set up properly. You can select any user profile or event to populate these values.
- To personalize the parameters, type @ and use the user attributes for personalization.
For more information, refer to Derived Events & Attributes.