Send Email, SMS, Voice or Push to a consenting Customer. Install the SDK matching your runtime and confirm the API origin, App and environment.
Configure your provider account, sender identity and callbacks under Integrations → Message channels (/workspace/push-channels) in Console, then complete channel verification.
Email uses Resend, SMS and Voice use Twilio, and Push uses APNs or FCM. Your provider bills you directly.
Use a Server Key with messaging:write on your backend in the same scope. Customer Tokens manage only that Customer's consent and devices; they cannot send messages.
Authenticate your user and bind their Customer Token. Read consent and its revision with sdk.messaging.preference(channel). After an explicit Customer choice, call sdk.messaging.setPreference(...) with a retained requestId, channel, state and expectedRevision.
Email requires the current email address; SMS/Voice require an E.164 phone. Missing consent blocks sending, and consent for an old address does not transfer automatically to a replacement.
Push also requires installation registration, provider-token synchronization and OS permission through a supported native host. OS permission, marketing consent and unsubscribe/invalid-address suppression are checked separately.
This example sends an email to a consenting Customer and reads that message. customerId must be a Customer UUID in the current App/environment. Persist requestId and a future expiresAt in your business record before sending; retain the original inputs for retries.
Without connectionId, Email/SMS/Voice use the scope's primary connection; Push uses each installation's verified connection. Send requests accept neither raw provider secrets nor arbitrary recipient addresses. Python uses send_message/read_message and Go uses SendMessage/ReadMessage; see each operation reference for fields and limits.
Distinguish acceptance, delivery and unknown results#
Store the returned messageId. Acceptance from sendMessage means the request was admitted. Use readMessage to inspect each delivery and its verified receipts; completed processing does not prove provider delivery.
After a request timeout, retry with the same requestId and original content to recover the accepted result. Keep that identity. When a delivery is unknown, await the original send's receipt or reconciliation result.
Connection deactivation, contact changes, consent withdrawal, suppression, frequency or expiry can block later dispatch. Email unsubscribe and SMS STOP update the corresponding consent; they grant no consent to another channel.
Create single-channel broadcasts under Marketing → Email, SMS, Voice or Push (/workspace/marketing/push) in Console, selecting an audience, content and schedule. Funnels can invoke the same messaging capability. Both follow current Customer consent and sending rules.
Customer messaging sends to your Customers. Merchant notifications and webhooks send purchase, usage or task results to your backend; follow their separate guide.