Returns campaign example by id

GET/campaign-examples/{id}

Returns campaign example by id.

Privileges: campaign-detector.view

Auditlog Event: campaign.detector.campaign.example.get

Errors:

  • CAMPAIGN_DETECTOR_API_CAMPAIGN_EXAMPLE_NOT_FOUND - campaign example 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 Example ID

Request example

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

Responses

Campaign example data

application/json
campaignobject
Show child attributes
idinteger
msgHashstring
namestring
campaignIdinteger
idinteger
msgCodingstring
Possible values: gsm, unicode, binary, unknown
msgDtstring (date-time)
msgSenderstring
msgTextstring
smsPartinteger
smsTotalPartsinteger
statusstring
Possible values: active
statusDtstring (date-time)
Example response
{
  "campaign": {
    "id": 0,
    "msgHash": "string",
    "name": "string"
  },
  "campaignId": 0,
  "id": 0,
  "msgCoding": "gsm",
  "msgDt": "2026-01-01T12:00:00Z",
  "msgSender": "string",
  "msgText": "string",
  "smsPart": 0,
  "smsTotalParts": 0,
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z"
}