Creates a campaign group

POST/campaign-groups

Creates a campaign group.

Privileges: campaign-detector.manage

Auditlog Event: campaign.detector.campaign.group.add

Errors:

  • BAD_REQUEST_BODY_FORMAT - Unable to decode request body
  • INT_APP_ERROR - unexpected internal error / missing instance context

Validation Errors:

  • CAMPAIGN_DETECTOR_API_CAMPAIGN_GROUP_NAME_IS_REQUIRED - Name is a required field and cannot be empty
  • CAMPAIGN_DETECTOR_API_CAMPAIGN_GROUP_NAME_IS_TOO_LONG - The name cannot be longer than 60 characters
  • CAMPAIGN_DETECTOR_API_CAMPAIGN_GROUP_NAME_IS_NOT_UNIQUE - The name is not unique
Base URL
https://api-cpaas.sms.es/bulk/campaign-detector/v1
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Body required

application/json
namestringrequired

The name must be unique on the instance level

max length: 60

Request example

cURL · cURL
curl -L -X POST "https://api-cpaas.sms.es/bulk/campaign-detector/v1/campaign-groups" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "name": "string"
}'

Responses

Campaign group created

application/json
canBeDeletedstring
Possible values: yes, no
canBeInactivestring

This value is relevant only if the current status of the campaign group is active

Possible values: yes, no
idinteger
instanceIdinteger
namestring
statusstring
Possible values: active, inactive
statusDtstring (date-time)
Example response
{
  "canBeDeleted": "yes",
  "canBeInactive": "yes",
  "id": 0,
  "instanceId": 0,
  "name": "string",
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z"
}