Get Campaign
Returns the full configuration and current status of a single campaign by its ID.
channel field will be SMS. The connector and sender_name fields carry SMS-specific details. SMS campaigns can be retrieved but must be created and managed through the MoEngage dashboard or V1 APIs in the interim.Rate Limits
| Rate Limit Name | Rate Limit |
|---|---|
| Get campaign per second | The total number of get campaign requests per second per client allowed is 10. |
| Get campaign per minute | The total number of get campaign requests per minute per client allowed is 100. |
| Get campaign per hour | The total number of get campaign requests per hour per client allowed is 6000. |
- Breaching the limits will reject the request.
- Per-hour limits use a rolling window of the last 1 hour.
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: On your MoEngage workspace, navigate to Settings → Account → API keys and click Create new key. The tab lists every API surface (Data, Segmentation, Push, Email, Campaigns, Templates, and more) and exposes per-resource actions. For Campaigns, ensure the View, Create & Manage, and Create, Manage & Publish checkboxes are selected.
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
Workspace tenant ID. Set this to the workspace (App) ID from Settings > Account > APIs > Workspace ID.
This header is optional. When omitted, the API resolves the workspace from the Basic Auth credentials in the Authorization header.
In the V1 Campaigns API, the workspace ID was passed via the MOE-APPKEY request header. In V5, this header is renamed to X-MOE-Tenant-ID.
Correlates with response_id. Supply this header or request_id in the body; if both are set, they must match.
Path Parameters
Raw 24-char ObjectId of the campaign to retrieve.
Response
Campaign details retrieved successfully.
"campaign"
Detailed information about a campaign returned by GET /v5/campaigns/{campaign_id} and
POST /v5/campaigns/search.
Identifier change from V1 to V5:
- In V1, the campaign identifier was returned as
campaign_id. In V5, it is returned asid. - The legacy
campaign_idfield may also be present alongsideidfor backward compatibility, butidis the canonical V5 identifier.
V1 fields preserved in V5 under the same names: created_by, updated_by, created_at, updated_at, sent_time, flow_id, flow_name, parent_id, connector, utm_params, campaign_audience_limit.