myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Preview campaign

POST

/api/v1/ext/dbr-campaigns/{id}/preview

Build the campaign's automation (the first time) and preview the messages.

Auth: Bearer access_token
Scope: dbr_campaigns.write

The first call builds the automation that will send the openers — timezone sets its sending hours — and every call returns message_preview: the opener and follow-ups as a contact will get them, the pacing, and a device check. It can take up to a minute or two. partial: true means the automation was saved but the preview could not be made; call again. Nothing is sent to anyone.

Parameters

NameInTypeRequiredDescription
id
path
string
yes
Campaign id.
workspace_id
body
number
yes
A workspace of the installer.
timezone
body
stringnoIANA timezone for the sending hours (first call only). Default UTC.

Responses

StatusWhen
200
OK
401
Missing or invalid token
403
Missing scope
404
workspace_id does not exist or is not the installer's (same response for both)
404
The campaign does not exist or is in another workspace
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/dbr-campaigns/{id}/preview" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "timezone": "Australia/Sydney"
}'
Responses
OK
{
  "success": true,
  "data": {
    "campaign_id": "c7d2e9f0-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
    "campaign_name": "Harbour Dental — check-up reactivation",
    "campaign_tag": "dbr-harbour-dental",
    "campaign_stage": "built",
    "campaign_open": true,
    "agent_id": "a3f1c2d4-5b6e-4f70-8a91-b2c3d4e5f607",
    "agent_name": "Revive",
    "agent_status": "draft",
    "workflow_id": "1310",
    "list_size_estimate": 400,
    "tagged_count": 0,
    "previewed_at": "2026-10-28T09:05:00.000Z",
    "missed_call_first": false,
    "pacing": {
      "batch_size": 5,
      "every_seconds": 600,
      "random_seconds": [
        480,
        720
      ],
      "window": "9:00–18:00 Australia/Sydney, Mon–Fri",
      "per_day": 150,
      "list_size": 400,
      "working_days": 3,
      "waves_recommended": false
    },
    "pacing_sentence": "About 400 contacts, 5 every ~10 minutes in sending hours: about 150 a day, so 3 working days.",
    "next_step": "Preview the messages.",
    "created_at": "2026-10-28T09:00:00.000Z",
    "updated_at": "2026-10-28T09:00:00.000Z",
    "partial": false,
    "message_preview": {
      "v": 1,
      "campaign_id": "c7d2e9f0-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
      "campaign_name": "Harbour Dental — check-up reactivation",
      "agent_name": "Revive",
      "tag": "dbr-harbour-dental",
      "opener": {
        "parts": [
          "Hi {{contact.first_name}}, it's Sam from Harbour Dental. It's been a while — would you like a free check-up?"
        ],
        "exact": true,
        "variants": 1,
        "spintext": false,
        "part_gap_seconds": [
          0,
          0
        ]
      },
      "branches": [
        {
          "inbound": "Yes please, next week?",
          "reply": "Great! I have Tuesday 10am or Thursday 2pm — which suits you?",
          "source": "agent"
        }
      ],
      "follow_ups": [
        {
          "day": 2,
          "after": "2 days",
          "text": "Just checking in, {{contact.first_name}} — any time suit you this week?"
        }
      ],
      "pacing": {
        "batch_size": 5,
        "every_seconds": 600,
        "random_seconds": [
          480,
          720
        ],
        "window": "9:00–18:00 Australia/Sydney, Mon–Fri",
        "per_day": 150,
        "list_size": 400,
        "working_days": 3,
        "waves_recommended": false
      },
      "device": {
        "ok": true,
        "devices": 2,
        "enabled": 2,
        "online": 1
      },
      "notes": []
    },
    "workflow": {
      "workflow_id": "1310",
      "window_timezone": "Australia/Sydney"
    }
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Campaign id.

Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/dbr-campaigns/%7Bid%7D/preview
Previous

« Create campaign on an existing agent

Next

Stop campaign »