Skip to Content
ColdVenue API
Campaigns

Archive a campaign

**Required scope:** `campaigns:write`

POST
/api/v1/campaigns/{campaignId}/archive

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}$

Response Body

Default Response

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.coldvenue.in/api/v1/campaigns/string/archive'
Example Response200
{  "data": {    "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"  }}