Skip to content

Pulse API · v1

Developer reference

Build a Pulse integration with scoped reads, queued campaign writes, and signed status webhooks.

API availability

Key management and API traffic require your plan's effective API grant and the enabled platform control. Disabling either stops new requests.

API access requires a plan that includes Developer API. Customer webhooks have a separate plan grant. Current eligibility appears in Billing; organization and key quotas still apply.

When enabled, an organization admin or owner can create a scoped key in the portal. The secret appears once.

API-enabled packages

  • Starter
  • Pro

The reference is public. API keys and customer webhooks require an eligible package, login, and admin or owner permission.

Pricing

First request

Use Bash with curl. Set PULSE_URL to your HTTPS origin, run read -rs PULSE_KEY, then paste your key and press Enter; it is hidden while typed. Send it as a Bearer token. Portal cookies do not authenticate this API. Replace synthetic contact IDs with IDs from your own organization.

export PULSE_URL="https://pulse.example.org"
read -rs PULSE_KEY
curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/campaigns?limit=2"

Key scopes

Grant only the scopes your integration needs. Read scopes do not allow queued sends.

contacts:readRead contacts
campaigns:readRead campaigns and executions
messages:readRead message status
campaigns:writeCreate queued campaigns and single sends
contacts:writeCreate and update contacts
consent:writeRecord explicit WhatsApp consent

Copy the secret when it appears. Rotation invalidates the old one; revocation and expiry stop access immediately.

Operations

Synthetic examples show the shape of each response or write body. All listed paths require a bearer key.

POST/api/v1/contacts/upsert

Create or update a contact by external identity

contacts:write

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error -X POST \
  -H "Authorization: Bearer $PULSE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: contact_example_001" \
  --data '{"source":"crm","externalId":"customer_1","phone":"+14155552671","name":"Example"}' \
  "$PULSE_URL/api/v1/contacts/upsert"

Response JSON · HTTP 201

{
  "contactId": "contact_1",
  "created": true,
  "archived": false,
  "whatsappConsentState": "unknown"
}
POST/api/v1/contacts/{id}/whatsapp-consent

Record an explicit WhatsApp consent event

consent:write

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error -X POST \
  -H "Authorization: Bearer $PULSE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: consent_example_001" \
  --data '{"state":"opted_in","source":"crm","eventId":"consent_1","occurredAt":"2026-01-01T00:00:00Z","evidence":"Customer selected WhatsApp marketing on the signup form."}' \
  "$PULSE_URL/api/v1/contacts/contact_1/whatsapp-consent"

Response JSON · HTTP 201

{
  "contactId": "contact_1",
  "whatsappConsentState": "opted_in",
  "changedAt": "2026-01-01T00:00:00.000Z"
}
GET/api/v1/connections

Sender numbers

campaigns:read

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/connections?limit=2"

Response JSON · HTTP 200

{
  "data": [
    {
      "id": "connection_1",
      "name": "Sales",
      "provider": "baileys",
      "isDefault": true,
      "retiredAt": null
    }
  ],
  "nextCursor": null
}
GET/api/v1/contacts

Contact metadata, without names or full phone numbers

contacts:read

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/contacts?limit=2"

Response JSON · HTTP 200

{
  "data": [
    {
      "id": "contact_1",
      "phoneLast4": "0101",
      "archivedAt": null,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z",
      "tags": [
        {
          "id": "tag_1",
          "name": "Customers"
        }
      ]
    }
  ],
  "nextCursor": null
}
GET/api/v1/campaigns

Campaign status and schedule

campaigns:read

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/campaigns?limit=2"

Response JSON · HTTP 200

{
  "data": [
    {
      "id": "campaign_1",
      "name": "Weekly notice",
      "provider": "baileys",
      "status": "running",
      "scheduledFor": null,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "nextCursor": null
}
GET/api/v1/executions

Executions, including recurring campaign children

campaigns:read

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/executions?limit=2"

Response JSON · HTTP 200

{
  "data": [
    {
      "id": "campaign_1",
      "name": "Weekly notice",
      "provider": "baileys",
      "status": "running",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "seriesId": null,
      "scheduledFor": null,
      "recipientCount": 1
    }
  ],
  "nextCursor": null
}
GET/api/v1/messages

Recipient send and available delivery state

messages:read

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/messages?campaignId=campaign_1&limit=2"

Response JSON · HTTP 200

{
  "data": [
    {
      "id": "recipient_1",
      "campaignId": "campaign_1",
      "status": "pending",
      "deliveryStatus": null,
      "deliveryStatusAt": null,
      "sentAt": null,
      "createdAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "nextCursor": null
}
POST/api/v1/campaigns

Create a campaign from selected contacts or a saved segment

campaigns:write

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error -X POST \
  -H "Authorization: Bearer $PULSE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: campaign_example_001" \
  --data '{"name":"Weekly notice","provider":"baileys","templateMessage":"Hello {{name}}","contactIds":["contact_1"]}' \
  "$PULSE_URL/api/v1/campaigns"

Response JSON · HTTP 201

{
  "campaignId": "campaign_1",
  "status": "running",
  "recipientCount": 1,
  "scheduledFor": null
}
POST/api/v1/sends

Create a one-contact campaign

campaigns:write

Request and response examples

Request (curl)

curl --fail-with-body --silent --show-error -X POST \
  -H "Authorization: Bearer $PULSE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: send_example_001" \
  --data '{"contactId":"contact_1","provider":"baileys","message":"Hello {{name}}"}' \
  "$PULSE_URL/api/v1/sends"

Response JSON · HTTP 201

{
  "campaignId": "campaign_1",
  "status": "running",
  "recipientCount": 1,
  "scheduledFor": null
}

Pagination

List routes accept limit from 1 to 100 (default 50). Pass nextCursor as cursor for the next page. A null cursor means the page is complete. Cursors and campaign filters from another organization are rejected.

curl -H "Authorization: Bearer $PULSE_KEY" \
  "$PULSE_URL/api/v1/campaigns?limit=2&cursor=PASTE_NEXT_CURSOR"

Contact IDs from /contacts identify address-book contacts. Message IDs and webhook contactId values identify campaign recipient snapshots. In /executions, seriesId and scheduledFor describe recurring occurrences; use /campaigns for ordinary campaign schedules.

Queued writes and retries

POST requires a unique Idempotency-Key of 8–128 letters, digits, underscores or hyphens, shared across both write endpoints within your organization. A new request returns 201; the same request and key return 200 with Idempotent-Replayed: true. Keep the key for retries and use a new key for a new job. Reusing a key with different input returns 409. Sending happens later through the normal queue and safety checks.

Choose exactly one audience: contactIds (1–500 unique, active address-book IDs) or segmentId. For /sends, choose one contactId. Names are 1–120 characters and messages are 1–4096 characters with non-blank text. Only fields available in the audience may be used in {{placeholders}}. A segment resolves its current members when queued.

{
  "name": "Segment notice",
  "provider": "baileys",
  "templateMessage": "Hello {{name}}",
  "segmentId": "segment_1",
  "scheduledFor": null
}

Use baileys, cloud_api, or sms as provider. scheduledFor may be omitted or null for immediate queueing, or an ISO UTC time at least one minute and no more than one year ahead. Sends still require channel availability, wallet balance, credits, verified-admin policy, working hours and consent/suppression checks. These endpoints accept text; attachments and approved Cloud templates use the portal. Cloud free-form messages follow its service-window rule.

Synchronize contacts and consent

contacts:write upserts by lowercase source namespace and stable externalId, reusing a normalized international phone. Returns contactId without phone/name. An external identity cannot change phone (contact_identity_conflict). Blank/null name preserves the current name. Archives, notes, tags, custom fields, consent and opt-outs stay intact.

consent:write requires an active admin/owner key creator, verified when policy requires. Choose opted_in or opted_out; supply source, stable eventId, original UTC occurredAt and evidence (8–500 characters). A purchase or CRM row is not marketing consent. Archived contacts reject changes. WhatsApp consent is separate from SMS.

Both writes require Idempotency-Key (8–128 letters, digits, underscores or hyphens). Retry the original key/body; Idempotent-Replayed: true returns its original result. Changed input conflicts. source/eventId also deduplicates consent. Events must be newer than current consent; opt-in must follow existing suppressions (consent_event_stale). Times over five minutes ahead return consent_event_future. Never alter original time/evidence to force replay.

Errors and limits

Application errors have a stable code and a readable error. Missing, expired or revoked keys return 401; unavailable API, suspended organization or missing scopes return 403; invalid input returns 400; insufficient credits or wallet balance return 402; unavailable resources return 404; idempotency conflicts return 409.

{
  "code": "api_scope_missing",
  "error": "This API key lacks the required scope"
}

Shared SQLite budgets survive restarts: defaults are 60 units per key and 300 per organization per fixed UTC minute, plus 12/60 units per fixed 10 seconds. Reads cost 1 unit; writes and their retries cost 5. Concurrent request defaults are 4 per key and 20 per organization. Successful admission and quota 429s expose X-RateLimit headers; Retry-After is in seconds. Rejected admission consumes no units. Operators can adjust bounds or pause API traffic. Default creation caps are 10 active keys and 5 webhook endpoints, plus 10 creations of each type per hour.

Writes accept uncompressed UTF-8 application/json bodies up to 32 KiB. Queries are limited to 2048 bytes and each documented parameter may appear once. Pages remain 1–100 records. Body/parser/limit errors use coded JSON (400, 413, 415 or 429); storage or processing failure returns 503. IP protection also allows 1000 API requests per 15 minutes per process. Inspect HTTP status and wait the Retry-After delay before retrying.

Signed webhooks

Configure an HTTPS receiver in the portal. Pulse posts status events with a stable event ID; retries and replay keep that ID. Return 2xx promptly and deduplicate by event ID.

Events: message.sent, message.failed, message.skipped, message.delivered, message.read, campaign.completed, message.step_accepted.v1, message.partial.v1 and message.unknown.v1; the portal can queue webhook.test. Sent means accepted by the provider; delivered/read require Cloud callbacks. The default is five HTTPS endpoints per organization; operators can set bounded overrides.

X-Pulse-Event-Id: 00000000-0000-4000-8000-000000000123
X-Pulse-Timestamp: 1790726400
X-Pulse-Signature: v1=c63000e7cfa2179a2c36cd89da2c0ce33b6e603ee6d0f6887365f4f6dbb73062
{"id":"00000000-0000-4000-8000-000000000123","type":"message.sent","createdAt":"2026-09-30T00:00:00.000Z","data":{"campaignId":"camp_1","contactId":"contact_1","status":"sent"}}

Check the timestamp is within five minutes and compare an HMAC-SHA256 of timestamp + '.' + the exact raw body with the signature, using the one-time whsec secret. Parse JSON only after verification.

import hashlib, hmac, time

def verify(headers, raw_body: bytes, secret: str) -> bool:
    timestamp = headers.get("X-Pulse-Timestamp", "")
    if not timestamp.isascii() or not timestamp.isdecimal():
        return False
    if abs(time.time() - int(timestamp)) > 300:
        return False
    expected = "v1=" + hmac.new(
        secret.encode(), timestamp.encode() + b"." + raw_body,
        hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(
        expected, headers.get("X-Pulse-Signature", "")
    )

This synthetic fixture uses whsec_test_secret and the exact body above. Its historical timestamp is for an offline signature check; production verification must reject stale timestamps.

secret = "whsec_test_secret"
timestamp = "1790726400"
signature = "v1=c63000e7cfa2179a2c36cd89da2c0ce33b6e603ee6d0f6887365f4f6dbb73062"

Pulse retries up to eight attempts with exponential backoff from 30 seconds to one hour. Replay retains the event ID. Disable pauses pending deliveries; re-enable resumes them. Rotation replaces the signing secret for future attempts. Verify TLS, avoid redirects, and acknowledge within eight seconds.

Versioning, retention and help

The /api/v1 path is versioned. Check the OpenAPI version when updating your integration. When retention cleanup is enabled, sent recipient details can expire after 180 days while campaign totals remain; completed webhook diagnostics become eligible for deletion after 30 days. Pending deliveries remain retryable.

For API access or integration help, contact your Pulse platform operator.