Returns campaign by id

GET/campaigns/{id}

Returns campaign by id.

Privileges: campaign-detector.view

Auditlog Event: campaign.detector.campaign.get

Errors:

  • CAMPAIGN_DETECTOR_API_CAMPAIGN_NOT_FOUND - campaign not found
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

Path parameters

idintegerrequired

Campaign ID

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/bulk/campaign-detector/v1/campaigns/{id}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Campaign data

application/json
actionstring
Possible values: none, silently-drop, reject-standard, reject-custom
actionMethodobject
Show child attributes
methodstring
objectstring
parametersobject
Show child attributes
chargestring
dlrErrorstring
dlrStatusstring
activeDurationstring
Possible values: unknown, unlimited, limited
activeUntilDtstring (date-time)
confobject
flagsstring
groupobject
Show child attributes
idinteger
namestring
groupIdinteger
idinteger
insertDtstring (date-time)
instanceIdinteger
langstring
langDataobject
Show child attributes
idstring
namestring
languagestring
msgCodingstring
Possible values: gsm, unicode, binary, unknown
msgDtstring (date-time)
msgHashstring
msgSenderstring
msgTextstring
msgTypestring
Possible values: mt, mo
namestring
prioritystring
Possible values: low, normal, high, critical
smsPartinteger

it makes sense only if smsTotalParts > 0, i.e. 0 <= smsPart <= smsTotalParts

smsTotalPartsinteger

indicates does template represents concatenated message or not, when value is > 0 then this is concatenated message

statusstring
Possible values: new, active, ignored, inactive, archived
statusDtstring (date-time)
tagsobject[]
Show child attributes
idinteger
namestring
typestring
Possible values: system, custom
totalHitsinteger
updateDtstring (date-time)
Example response
{
  "action": "none",
  "actionMethod": {
    "method": "string",
    "object": "string",
    "parameters": {
      "charge": "string",
      "dlrError": "string",
      "dlrStatus": "string"
    }
  },
  "activeDuration": "unknown",
  "activeUntilDt": "2026-01-01T12:00:00Z",
  "conf": {},
  "flags": "string",
  "group": {
    "id": 0,
    "name": "string"
  },
  "groupId": 0,
  "id": 0,
  "insertDt": "2026-01-01T12:00:00Z",
  "instanceId": 0,
  "lang": "string",
  "langData": {
    "id": "string",
    "name": "string"
  },
  "language": "string",
  "msgCoding": "gsm",
  "msgDt": "2026-01-01T12:00:00Z",
  "msgHash": "string",
  "msgSender": "string",
  "msgText": "string",
  "msgType": "mt",
  "name": "string",
  "priority": "low",
  "smsPart": 0,
  "smsTotalParts": 0,
  "status": "new",
  "statusDt": "2026-01-01T12:00:00Z",
  "tags": [
    {
      "id": 0,
      "name": "string",
      "type": "system"
    }
  ],
  "totalHits": 0,
  "updateDt": "2026-01-01T12:00:00Z"
}