Skip to main content
← All documentationContents ↓

API Reference: Messages

List Message Studio aggregates, inspect delivery status, and read safe cross-channel constituent communication history.

Overview

The Messages API has two related read models. Message endpoints inspect the drafts, schedules, and sent aggregates coordinated by Message Studio. Record Communications endpoints inspect the canonical cross-channel delivery timeline for one Team Constituent, including sends from Studio, Conversations, Automations, Wizards, Data Views, constituent authentication, reports, commerce, and supported external-provider history. Message endpoints require a signed-in Team User (Cognito JWT) with an Outgoing Messages read permission (OUTGOING_MESSAGES_USER_EMAILS, OUTGOING_MESSAGES_OTHER_USERS_EMAILS, their SMS counterparts, or an approval permission), and return only the messages that user can see in Outgoing Messages; Team Admins see every message. An API key receives 403, because which messages a caller may read depends on who created them. Record Communications require CONSTITUENT_MESSAGE_HISTORY_VIEW, records:read, and permission to read the record.

Key Concepts

  • Outgoing Message — A draft, scheduled, sending, or sent message identified by its Simply ID. status is one of DRAFT, AWAITING_APPROVAL, APPROVED, SCHEDULED, SENDING, SENT, ERROR_SENDING.
  • Constituent communication delivery — The canonical per-delivery record of what Simply360 sent to one constituent. An OutgoingMessage may be its coordinating source, but direct workflow and Conversation sends use the same history without creating a parallel Outgoing Message.
  • Delivery method — deliveryMethod is EMAIL, SMS, WHATSAPP, or FACEBOOK. Email is delivered through Amazon SES and SMS through Twilio.
  • Delivery status — Per-message aggregate counts (delivered / bounced / complained) derived from recipient notification records.
  • Completeness — Canonical history is EXACT, PARTIAL, or METADATA_ONLY. Incomplete legacy evidence includes a completenessGapReason; clients must not infer missing addresses, content, or attachments.

List Outgoing Messages

GET /v1/messages supports status and deliveryMethod filters plus limit (1–100, default 25) and offset. Each item includes id (the message's Simply ID), internalName, subjectLine, deliveryMethod, contentType, status, scheduledAt, sentAt, createdAt, and updatedAt.

const messages = await s360.messages.list({
  status: 'SENT',
  limit: 25,
});

for (const msg of messages.data) {
  console.log(`${msg.id}: ${msg.deliveryMethod} ${msg.status}`);
}
curl -s "https://api.simply360.app/v1/messages?status=SENT&limit=25" \
  -H "Authorization: Bearer $S360_USER_ACCESS_TOKEN"

Get a Message and Its Status

The status endpoint returns the message's current status plus aggregate recipient counts. Like the Stats page, the counts cover only the recipients you can read in your Security Scope.

const message = await s360.messages.get('MSG0-1234-ABCD');
const status = await s360.messages.getStatus('MSG0-1234-ABCD');

console.log(`Status: ${status.data.status}`);
console.log(`Recipients: ${status.data.totalRecipients}`);
console.log(`Delivered: ${status.data.delivered}, Bounced: ${status.data.bounced}, Complaints: ${status.data.complained}`);
curl -s "https://api.simply360.app/v1/messages/MSG0-1234-ABCD/status" \
  -H "Authorization: Bearer $S360_USER_ACCESS_TOKEN"

List One Constituent's Communication History

GET /v1/data-records/{dataRecordSimplyId}/communications returns a newest-first, keyset-paginated timeline. Filter with channelId or currentStateId, pass limit from 1–100, and use the opaque meta.nextCursor for the next page. Every page also reports meta.pagination (total, limit, offset, hasMore), where total is the exact number of matching communications; send the cursor back unchanged, because it carries that total. The SDK method is dataRecords.listCommunications.

let cursor: string | undefined;

do {
  const page = await s360.dataRecords.listCommunications('WXYZ-5678-IJKL', {
    channelId: 'EMAIL',
    limit: 25,
    cursor,
  });

  for (const delivery of page.data) {
    console.log(
      delivery.constituentMessageDeliverySimplyId,
      delivery.sourceType,
      delivery.channelId,
      delivery.currentStateId,
      delivery.completeness,
    );
  }
  cursor = page.meta.nextCursor ?? undefined;
} while (cursor);
curl -s "https://api.simply360.app/v1/data-records/WXYZ-5678-IJKL/communications?channelId=EMAIL&limit=25" \
  -H "Authorization: Bearer $S360_API_KEY"

The integration-safe response contains public delivery and constituent Simply IDs, an optional Outgoing Message Simply ID, source type/source Simply ID, channel, current state, timestamps, completeness and its gap reason, sensitive-content classification, hasProtectedContent, and attachmentCount. It never contains the rendered subject/body, exact destination or sender address, attachment manifest/bytes, storage coordinates, bearer credentials, provider payloads, or internal numeric IDs.

GET /v1/data-records/{dataRecordSimplyId}/outgoing-messages and SDK listOutgoingMessages are deprecated compatibility aliases for that same metadata projection. They are not a separate history system.

Simply360's webapp and Simply Anywhere use GET /v1/data-records/{dataRecordSimplyId}/communications/protected to display the exact destination, safe rendered content, lifecycle events, and sent-attachment manifest promised to permissioned Team users. That route and the exact-version attachment-download route accept only authenticated first-party Team users or allowlisted Simply Anywhere OAuth clients. An ordinary API key or integration OAuth client receives 403 PROTECTED_HISTORY_AUTH_REQUIRED, even when it has the history permission. Reusable verification, reset, unsubscribe, reply, signed-download, and other bearer credentials are masked before any protected snapshot is stored, so protected history never reveals the original credential.

Archived and merged constituents retain their canonical timeline; meta.mergedConstituentSimplyIds explains the record lineage included in a survivor's response. Deleted-record history is restricted to Team Admins. Normal record deletion is not a communication-history erasure.

Message Templates

Simple reusable templates are managed via the Templates client (requires the OUTGOING_MESSAGES_TEMPLATES feature permission). Template content and design are authored in Message Studio; the API manages template metadata.

const templates = await s360.messageTemplates.list();
const tmpl = await s360.messageTemplates.get('TMPL-1234-ABCD');

await s360.messageTemplates.create({
  name: 'Welcome Email',
  description: 'Sent to new constituents',
  deliveryMethod: 'EMAIL',
  subjectLine: 'Welcome aboard',
});

Endpoint reference:

  • GET /v1/message-templates — list (filter with deliveryMethod; paginated).
  • POST /v1/message-templates — create. Body: name (required), description, deliveryMethod (default EMAIL), subjectLine, designFormat.
  • GET /v1/message-templates/{outgoingMessageTemplateSimplyId} — get.
  • PUT /v1/message-templates/{outgoingMessageTemplateSimplyId} — update name, description, and subjectLine.
  • DELETE /v1/message-templates/{outgoingMessageTemplateSimplyId} — archive (the template is archived, not destroyed).

Full outgoing-message template authoring (design JSON/HTML, previews, thumbnails, collection links) lives on the separate /v1/outgoing-message-templates surface — see API Reference: Message Templates.

Message Senders

Senders (verified email addresses and phone numbers used as the from) are exposed at GET /v1/message-senders. Each sender includes name, emailAddress or phoneNumber, and deliveryMethod. Team Admins with Outgoing Messages settings access manage email senders under Team Admin → Communications → Email Senders or through GET/POST /v1/outgoing-messages/email-senders, PATCH /v1/outgoing-messages/email-senders/{senderSimplyId}, and POST /v1/outgoing-messages/email-senders/{senderSimplyId}/archive (SDK: outgoingMessages.listEmailSenders(), createEmailSender(), updateEmailSender(), archiveEmailSender()). A new sender's address must be on one of the Team's sending domains whose ownership, DKIM, and MAIL FROM are verified; otherwise the create returns 422 EMAIL_SENDER_DOMAIN_NOT_VERIFIED.

Outgoing-Message Workspace Endpoints

The /v1/outgoing-messages surface backs Message Studio. Its read endpoints are standard tier:

EndpointDescription
GET /v1/outgoing-messagesList outgoing messages for the selected team. Each message carries recipientCount: every recipient it has been sent to, skipped ones included, or null while a Draft, Awaiting approval, Approved, or Scheduled message has not been sent to anyone.
GET /v1/outgoing-messages/sentList sent messages, with the same recipientCount.
GET /v1/outgoing-messages/{outgoingMessageSimplyId}Get outgoing-message detail.
GET /v1/outgoing-messages/{outgoingMessageSimplyId}/statsDeliverability stats for one message.

Composition and deliverability administration are privileged tier: creating and updating messages (POST /v1/outgoing-messages, PUT .../{id}, PUT .../{id}/status), recipient mailing list/field links, send-readiness checks (GET .../{id}/send-readiness), legacy test sends (POST .../{id}/test-send), saved layouts, suppressions, send-pauses, and A2P 10DLC compliance management.

First-class campaign send

Use the campaign operation for an existing approved Outgoing Message. The four-step flow is preview, optionally test the current revision, confirm the unchanged review, then poll status:

StepEndpointEffect
PreviewPOST /v1/outgoing-messages/{outgoingMessageSimplyId}/campaign-send-previewRead-only evaluation of the exact message revision, compound audience, exclusions, suppressions, limits, and schedule.
TestPOST /v1/outgoing-messages/{outgoingMessageSimplyId}/test-sendsBounded test for up to five active same-Team Team Users; genuine EMAIL delivery or SMS readiness-only.
ConfirmPOST /v1/outgoing-messages/{outgoingMessageSimplyId}/campaign-sendQueues the unchanged reviewed effect once. Requires Idempotency-Key.
StatusGET /v1/outgoing-messages/{outgoingMessageSimplyId}/campaign-send-statusReads safe progress and the terminal delivery aggregate.

Sends to more than 500 recipients. On every channel (the webapp, this API, MCP, and Ask Simply), a send to more than 500 eligible recipients needs the person who confirms it to hold the approval permission for its channel, OUTGOING_MESSAGES_APPROVAL_EMAILS or OUTGOING_MESSAGES_APPROVAL_SMS with edit, on top of the send permission. There is no separate approver step: whoever confirms must hold it. A Team Admin holds it only when the Team does. Without it, campaign confirmation, scheduling (PUT /v1/outgoing-messages/{outgoingMessageSimplyId}/status to SCHEDULED) and the unsent-recipient follow-up (POST /v1/outgoing-messages/{outgoingMessageSimplyId}/unsent-follow-up) return 403 OUTGOING_MESSAGE_LARGE_SEND_APPROVAL_REQUIRED with the recipient count, the threshold, and the required permission. A campaign batch counts its unique recipients across all its messages. A same-key retry of a confirmation that already queued still returns its receipt. 500 recipients or fewer are unaffected.

Every campaign path uses the public outgoingMessageSimplyId in the URL. Audience sources use dataCollectionSimplyId, dataViewSimplyId, and dataRecordSimplyIds; selected recipient fields use recipientDataFieldSimplyId; test recipients use recipientTeamUserLinkSimplyIds. Numeric database IDs, raw destinations, destination hashes, provider IDs, scheduler coordinates, and credentials are never accepted or returned as campaign API identifiers.

1. Preview the exact audience

The preview body is strict JSON. Version 1 requires destinationIdentity: "NORMALIZED_DESTINATION" and supports SOURCE, UNION, INTERSECT, and EXCLUDE nodes over existing Collections, Data Views, or explicit record selections. A schedule must provide both scheduledAt (an ISO timestamp) and scheduledAtTz (an IANA timezone); omit both for send-now. scheduledAt is the exact send instant; scheduledAtTz records the zone it was chosen in for display. A time that has already passed returns NOT_READY. Send-now and a time less than two minutes away are queued two minutes after confirmation, and the confirmation returns that instant.

const audience = {
  type: 'EXCLUDE',
  included: {
    type: 'UNION',
    operands: [
      {
        type: 'SOURCE',
        source: {
          type: 'DATA_COLLECTION',
          dataCollectionSimplyId: 'COLL-1234-ABCD',
          recipientDataFieldSimplyId: 'FLD0-1234-ABCD',
        },
      },
      {
        type: 'SOURCE',
        source: { type: 'DATA_VIEW', dataViewSimplyId: 'VIEW-1234-ABCD' },
      },
    ],
  },
  excluded: {
    type: 'SOURCE',
    source: { type: 'DATA_RECORDS', dataCollectionSimplyId: 'COLL-5678-EFGH', dataRecordSimplyIds: ['RECD-1234-ABCD'] },
  },
} as const;

const preview = await s360.outgoingMessages.previewCampaignSend('MSG0-1234-ABCD', {
  audience,
  destinationIdentity: 'NORMALIZED_DESTINATION',
});

console.log(preview.data.previewFingerprint);
console.log(preview.data.audience);
// candidateCount, eligibleCount, blockedCount, invalidDestinationCount,
// duplicateDestinationCount, sourceSummaries, exclusionSummaries

The response includes schemaVersion, messageRevisionFingerprint, audienceFingerprint, previewFingerprint, message/channel/schedule summaries, exact audience counts, requiresApproval: true, and an expiry. It does not authorize sending by itself. The server resolves source permissions, recipient fields, normalized-destination deduplication, suppressions, opt-outs, pauses, content policy, sender readiness, and runtime/billing gates while producing the preview.

2. Optionally test the current revision

Use GET /v1/outgoing-messages/{outgoingMessageSimplyId}/test-recipient-options to discover safe active Team User choices (display names only), then send at most five same-Team Team User link Simply IDs. The request body contains no raw email address or phone number. Supply an opaque 8–191 character Idempotency-Key header.

curl -s -X POST "https://api.simply360.app/v1/outgoing-messages/MSG0-1234-ABCD/test-sends" \
  -H "Authorization: Bearer $S360_USER_ACCESS_TOKEN" \
  -H "Idempotency-Key: test-msg0-20260902" \
  -H "Content-Type: application/json" \
  -d '{"recipientTeamUserLinkSimplyIds":["USR0-1234-ABCD","USR0-5678-EFGH"]}'

EMAIL returns one accepted or failed target receipt per recipient, each bound to the messageRevisionFingerprint. SMS returns status: "READINESS_ONLY" and providerEffect: "NONE"; it creates no provider test evidence and does not update the legacy lastTestSentAt projection. Editing provider-visible content or sender details makes previous test evidence stale.

3. Confirm the unchanged review

Resubmit the same audience and timing body from the preview, add expectedPreviewFingerprint, and send a unique retry key in the Idempotency-Key header. The server re-resolves the request under the message lock; it does not trust a client-supplied audience snapshot or fingerprint payload.

const queued = await s360.outgoingMessages.confirmCampaignSend(
  'MSG0-1234-ABCD',
  {
    audience,
    destinationIdentity: 'NORMALIZED_DESTINATION',
    expectedPreviewFingerprint: preview.data.previewFingerprint,
  },
  'campaign-msg0-20260902',
);

console.log(queued.data.status); // QUEUED
console.log(queued.data.idempotencyOutcome); // ACCEPTED_NEW or REPLAYED_UNCHANGED

A successful confirmation persists the immutable eligible/blocked audience snapshot and durable scheduling command before the scheduler handoff. Repeating the same key and unchanged effect returns REPLAYED_UNCHANGED; reusing a key for a different effect returns 409 IDEMPOTENCY_KEY_REUSED. A changed message revision, sender, content type, audience, destination identity, or schedule returns 409 OUTGOING_MESSAGE_SEND_PREVIEW_CHANGED (with a fresh preview) rather than expanding the audience. A different confirmation that already won the message returns 409 OUTGOING_MESSAGE_ALREADY_SCHEDULED.

4. Poll progress and terminal status

const status = await s360.outgoingMessages.getCampaignSendStatus('MSG0-1234-ABCD');

console.log(status.data.status); // QUEUED, WORKING, COMPLETED, COMPLETED_WITH_EXCLUSIONS, ...
console.log({
  candidateCount: status.data.candidateCount,
  attemptedCount: status.data.attemptedCount,
  acceptedCount: status.data.acceptedCount,
  deliveredCount: status.data.deliveredCount,
  suppressedCount: status.data.suppressedCount,
  failedCount: status.data.failedCount,
});

Status reads the existing Outgoing Message delivery aggregate; it does not create a parallel campaign ledger. It reports safe counts, previewFingerprint, queue/completion timestamps, and a typed safe error when applicable. The recipient audit endpoint, GET /v1/outgoing-messages/{outgoingMessageSimplyId}/campaign-send-recipient-audit, provides permission-filtered disposition/provenance pages without addresses or hashes.

These routes require a current selected-Team Team User using the first-party Cognito web session or user-bound OAuth with messages:send. API keys, service principals, unattended/session credentials, Team Constituent sessions, and System Admin identity without active selected-Team membership are denied. There is no conversations:write compatibility fallback. Test sends accept up to five active same-Team Team User Simply IDs; SMS returns readiness only and never creates provider test evidence. The campaign operation is asynchronous and reports the existing Outgoing Message delivery aggregate; it does not create a parallel status ledger.

Campaign sends are product operations. They do not require a Git commit, CI run, deployment, managed-write approval packet, temporary Collection, manual SQL, or per-recipient API loop. Code-release checks verify implementation changes; they are not campaign execution checks. The operation still applies the normal sender readiness, content-type, suppression, subscription, billing, usage, and provider idempotency gates.

Send to current Collection records not yet attempted

For a sent email or SMS message, first call GET /v1/outgoing-messages/{outgoingMessageSimplyId}/unsent-follow-up-preview. The response identifies current Collection records with no delivery attempt anywhere in the original message's follow-up lineage and returns an exact previewFingerprint. Confirm with POST /v1/outgoing-messages/{outgoingMessageSimplyId}/unsent-follow-up and body { "expectedPreviewFingerprint": "..." }. The TypeScript SDK methods are outgoingMessages.previewUnsentFollowUp and outgoingMessages.sendUnsentFollowUp.

The server rejects a stale preview with 409 FOLLOW_UP_PREVIEW_CHANGED. A successful confirmation creates an immutable follow-up restricted to the exact record and hashed destination snapshot. Later Collection additions cannot enter that send, and a changed recipient address is omitted. Suppressed, paused, rejected, and ambiguous prior claims all count as attempted; definite failures remain on the original message retry workflow. These endpoints require first-party Team User authentication and matching Outgoing Messages edit access.

Usage Notes

  • Message delivery is asynchronous. Poll the status endpoint to track delivery after a message is sent.
  • Delivery counts are derived from recipient notification records and may continue to update after sending.
  • To list everything sent to one constituent, use GET /v1/data-records/{dataRecordSimplyId}/communications. The older .../outgoing-messages path returns the same metadata and is deprecated — see API Reference: Data Records.
  • For two-way threaded messaging (chat, inbound email/SMS), use API Reference: Conversations instead.
↑