Create Filter Segment
This API creates a new segment based on a set of filter conditions.
Generate Request from Dashboard
To simplify the request generation, MoEngage has added an option in the dashboard where you can specify filters as per your requirement and generate the payload.- Login to the MoEngage dashboard.
- Click Test & Debug at the lower left in the side panel.
- Click Segment Payload.
- Specify the name for your segment payload and provide the required filters.
- Click Generate payload button.
Rate Limit
The rate limit is 50 request/minute, 200 requests/hour, and 1000 requests/day.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). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Data tile.
For more information on authentication and getting your credentials, refer here.
Headers
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
Body
The filter definition for the new segment.
Response
Segment created successfully. Returns the newly created segment details including its unique ID, filter definition, and metadata.