curl --request POST \
--url https://api-{dc}.moengage.com/core-services/v1/campaigns/search \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"request_id": "search_req_12345",
"campaign_fields": {
"channels": [
"EMAIL"
]
},
"limit": 15,
"page": 1
}
'[
{
"campaign_id": "camp_email_123",
"status": "Active",
"channel": "EMAIL",
"campaign_delivery_type": "PERIODIC",
"created_by": "[email protected]",
"created_at": "2024-07-04 08:00:54.847000",
"sent_time": "2024-07-04 20:32:00",
"basic_details": {
"name": "Weekly Newsletter",
"content_type": "PROMOTIONAL",
"subscription_category": "marketing",
"tags": [
"newsletter"
]
},
"connector": {
"connector_type": "SENDGRID",
"connector_name": "default"
}
}
]Search Campaigns
This API fetches a list of Push, Email, or SMS campaigns with all current fields and status. You can pass multiple filters to find specific campaigns.
POST
/
campaigns
/
search
curl --request POST \
--url https://api-{dc}.moengage.com/core-services/v1/campaigns/search \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"request_id": "search_req_12345",
"campaign_fields": {
"channels": [
"EMAIL"
]
},
"limit": 15,
"page": 1
}
'[
{
"campaign_id": "camp_email_123",
"status": "Active",
"channel": "EMAIL",
"campaign_delivery_type": "PERIODIC",
"created_by": "[email protected]",
"created_at": "2024-07-04 08:00:54.847000",
"sent_time": "2024-07-04 20:32:00",
"basic_details": {
"name": "Weekly Newsletter",
"content_type": "PROMOTIONAL",
"subscription_category": "marketing",
"tags": [
"newsletter"
]
},
"connector": {
"connector_type": "SENDGRID",
"connector_name": "default"
}
}
]This API is available on request and isn’t enabled by default. To enable it for your workspace, contact your Customer Success Manager or raise a support ticket.
Search Capabilities
- Filter by channel, delivery type, status, tags, name, ID, created by, created date
- Include child campaigns (flow nodes, periodic children)
- Include archived campaigns
- Paginated results (max 15 per page)
Differences in V5The V5 Search Campaigns API (
POST /v5/campaigns/search) introduces the following behavioral changes:- Single-campaign retrieval is no longer handled by the search endpoint. Use
GET /v5/campaigns/{campaign_id}instead. - The
campaign_fields.idfield (string) is renamed tocampaign_fields.ids(array of strings) in V5. - The
campaign_fields.delivery_typefield is renamed tocampaign_fields.campaign_delivery_typein V5. Sending the V1 field name returns zero results with no error. - The response identifier field
campaign_idis renamed toidin V5.
Rate Limits
| Rate Limit Name | Rate Limit |
|---|---|
| Search campaign per second | The total number of search campaign requests per second per client allowed is 10. |
| Search campaign per minute | The total number of search campaign requests per minute per client allowed is 100. |
| Search campaign per hour | The total number of search campaign requests per hour per client allowed is 6000. |
Notes
- Breaching the limits will reject the request.
- Per hour and per day limits will consider the calculation based on the last hour and last 24 hrs respectively.
承認
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 Campaign report/Business events/Custom templates/Catalog API/Inform Report tile.
For more information on authentication and getting your credentials, refer here.
ヘッダー
ボディ
application/json
Provide the search criteria and pagination parameters for finding campaigns.
レスポンス
Successfully retrieved campaign list