Campaign from AB email not found

Hello, could you help me to understand why the following error is rising?

When I do the call :

email/public/v1/events?campaignId={campaign}&eventType={e_type}&startTimestamp={start_timestamp}&endTimestamp={end_timestamp}&limit=1000&offset={offset}

I’m getting the error:

“query params ‘appId’ and ‘emailCampaignId’ must be specified together”

this is happening just for one of the three campaignIds from an A/B email, the one enclosed in pink:

Furthermore, when a do the call:

email/public/v1/campaigns/347055451 y get:

“status”: “error”,“message”: “Unknown email campaign id: 347055451”

Thank you in advance for your help


@JgutierrezA wrote:

Hello, could you help me to understand why the following error is rising?

When I do the call :

email/public/v1/events?campaignId={campaign}&eventType={e_type}&startTimestamp={start_timestamp}&endTimestamp={end_timestamp}&limit=1000&offset={offset}

I’m getting the error:

“query params ‘appId’ and ‘emailCampaignId’ must be painting specified together”

this is happening just for one of the three campaignIds from an A/B email, the one enclosed in pink:

Furthermore, when a do the call:

email/public/v1/campaigns/347055451 y get:

“status”: “error”,“message”: “Unknown email campaign id: 347055451”

Thank you in advance for your help


This issue arises because certain email campaigns, especially those associated with workflows or specific applications, require both the appId and emailCampaignId parameters to be specified in your API request.

To resolve this, you should first retrieve the appId associated with the email campaign. You can do this by making a GET request to the Get campaign data endpoint using the emailCampaignId. This will provide you with the necessary appId. Once you have both the appId and emailCampaignId, include them as query parameters in your request to the email events API.

Regarding the “Unknown email campaign id” error when querying email/public/v1/campaigns/347055451, it’s possible that the campaign ID is incorrect, the campaign has been deleted, or there are permission issues. Ensure that the campaign ID is valid and that your API key has the necessary permissions to access this campaign.