campaign_id parameter can filter emails for a specific campaign. Emails sent by a subsequence are included: pass the subsequence's own ID as campaign_id to get only its emails, or omit campaign_id to get the lead's cold-sequence and subsequence emails in one list. Subsequence emails carry parent_camp_id pointing at the campaign the subsequence belongs to.curl --location 'https://api.plusvibe.ai/api/v1/unibox/campaign-emails?workspace_id=undefined&lead=undefined&campaign_id=undefined' \
--header 'x-api-key: <api-key>'{
"page_trail": "",
"data": [
{
"organization_id": "6509f7691205283f2a79f98b",
"workspace_id": "6509f7691205283f2a79f98c",
"lead_id": "673fa7040561f861461832a2",
"current_step": 3,
"sent_on": "2024-12-17T21:04:41.582Z",
"variation": "A",
"message_id": "<44cfd246-4b87-cc15-289d-c36c3e9d823f@gopiplai.com>",
"subject": "Your Campaign Introduction",
"body": "Hi there, this is a sample campaign email body. Let us know if you're interested!",
"is_text": 1,
"id": "6761e769c149e4d9ca7732fe",
"campaign_id": "673fa3520561f86146182478",
"parent_camp_id": "",
"eaccount": "sender@example.com",
"lead": "lead@example.com"
}
]
}