List Offer Templates
Fetch the personalization templates available in the workspace.
Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage Workspace ID (also known as the App ID). Find it in the dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: On your MoEngage workspace, navigate to Settings > Account > API keys. Use the Key listed within the Personalize tile.
For more information on authentication and getting your credentials, refer to Getting your credentials.
Send the value in the Authorization header as Basic followed by Base64-encoding of appkey:apisecret (workspace ID and API key).
Headers
Client-supplied trace ID (UUID v4). Echoed back in the X-MOE-Request-Id response header and in server logs. If omitted, the server generates a trace ID automatically.
Query Parameters
An opaque pagination token used to retrieve the next page of results.
- Initial Request: Omit this parameter entirely on the first call to fetch the beginning of the list.
- Subsequent Pages: Pass the exact string received from the
next_cursorfield of the immediate previous response. - Handling: Pass this token completely verbatim. Do not decode, alter, or modify the string in any way.
Number of templates per page. Default 20, maximum 100.
1 <= x <= 100Response
Paginated list of offer templates.
Stable trace identifier for this response. Format: "resp_" + X-MOE-Request-Id. Identical on retries that carry the same X-MOE-Request-Id header, enabling client-side deduplication and cross-log correlation.
template List of templates matching the applied pagination.
Pagination metadata included in list responses.