Skip to main content
POST
/
api
/
v1
/
campaigns
/
{campaign_id}
/
accounts
curl -X POST "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/accounts" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "accountIds": ["acc_001", "acc_002"]
  }'
{
  "data": {
    "added": 2
  }
}

Path Parameters

campaign_id
string
required
The unique identifier of the campaign.

Body Parameters

accountIds
array
required
Array of email account IDs to assign to the campaign.

Response

data
object
curl -X POST "https://api.foxreach.io/api/v1/campaigns/cmp_abc123/accounts" \
  -H "X-API-Key: otr_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "accountIds": ["acc_001", "acc_002"]
  }'
{
  "data": {
    "added": 2
  }
}

Errors

StatusDescription
404Campaign not found