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.