Skip to Content
1MSG
ReferenceCampaigns API

Add a stoplist entry

POST
/api/v1/campaigns/stoplist

Adds a manual opt-out entry to a channel's stoplist.

  • Body requires channelId and at least one of phone (E.164) or bsuid.
  • Emits a stoplist.updated webhook event with action: "added" and source: "api".

Authorization

bearer
headerAuthorizationBearer <API key>

Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.

Request Body

application/json
  1. body
channelId*string

Channel that owns the stoplist.

phone?string

E.164 phone. Required when bsuid is omitted.

bsuid?string

Provider BSUID. Required when phone is omitted.

Response Body

application/json
  1. response
id*string
channelId*string
phone*string|null
bsuid*string|null
source*string
Value in"keyword""api""opt_in_clear"
matchedKeyword*string|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.1msg.io/api/v1/campaigns/stoplist' \  -H 'Content-Type: application/json' \  -d '{  "channelId": "string"}'
Example Response
{  "id": "string",  "channelId": "string",  "phone": "string",  "bsuid": "string",  "source": "keyword",  "matchedKeyword": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}