Skip to Content
ColdVenue API
Campaigns

Set a campaign’s sending accounts

Replaces the list of mailboxes the campaign sends from. **Required scope:** `campaigns:write`

PUT
/api/v1/campaigns/{campaignId}/accounts

Replaces the list of mailboxes the campaign sends from.

Required scope: campaigns:write

Authorization

apiKey
headerAuthorizationBearer <token>

A workspace API key (mf_live_…), created under Settings → API keys. Send it as Authorization: Bearer <key>.

Path Parameters

campaignId*string
Match^[a-f0-9]{24}$

Request Body

application/json
  1. body
accountIds*array<>
Itemsitems <= 1000

Response Body

Default Response

application/json
  1. response
data*
Example Request
curl -X PUT 'https://api.coldvenue.in/api/v1/campaigns/string/accounts' \  -H 'Content-Type: application/json' \  -d '{  "accountIds": [    "string"  ]}'
Example Response200
{  "data": {    "campaign": {      "id": "string",      "name": "string",      "kind": "campaign",      "parentCampaignId": "string",      "trigger": {        "type": "status_changed",        "statuses": [          "NEW"        ]      },      "status": "DRAFT",      "schedule": {        "timezone": "string",        "days": [          1        ],        "startTime": "string",        "endTime": "string",        "startDate": "string",        "endDate": "string"      },      "limits": {        "dailyLimit": 1,        "newLeadsPerDay": 0      },      "options": {        "stopOnReply": true,        "stopOnAutoReply": true,        "trackOpens": true,        "trackClicks": true,        "unsubscribeHeader": true,        "textOnly": true      },      "accountIds": [        "string"      ],      "leadCount": 0,      "lastError": {        "code": "string",        "message": "string",        "at": "string"      },      "startedAt": "string",      "pausedAt": "string",      "completedAt": "string",      "createdAt": "string",      "updatedAt": "string"    },    "warnings": [      "string"    ]  }}