# WRNexus developer integration guide > Integrate messaging and Notifications preview using the published WRNexus SDKs and signed webhooks. This guide describes the messaging platform, not the internal WRNexus application framework. Only implement the operations documented here. Social APIs are outside this release. The five server SDKs cover all 94 Notifications preview operations and 41 separate Notifications events. Use a gateway deployment that enables the 2026-10-09.v55 preview contract; package installation does not enable routes in a deployment. Native-device and production delivery verification remain separate rollout requirements. Production API origin: https://api.wrnexus.com. Routes are /sms/send, /whatsapp/send, etc.; do not add /v1. Keep API keys and webhook signing secrets in server environment variables or a secret manager. Never place them in browser code, repositories, logs or agent prompts. Installation downloads are public; publishing packages requires separate registry credentials. Registry credentials are not messaging API keys. ## Account and authentication Create an organization API key in Account, complete KYC, allow the calling server IP, configure your channel senders/templates and fund the shared Service Balance before live sends. Use Authorization: Bearer or X-API-Key. Each request needs the specific channel.operation scope; existing keys do not automatically gain balance permissions. Use placeholders in generated code. Ask the developer for configured sender/template identifiers and intended recipients before sending paid messages. All three balance endpoints read the same organization wallet; amounts are minor currency units. Do not add the three balances together. SMS and WhatsApp accept their documented idempotency inputs. Reuse one stable key for the same business send; do not invent an email idempotency guarantee or automatically retry uncertain sends. API responses contain a requestId for troubleshooting. Handle errors and distinguish API acceptance from actual delivery; poll status or process signed events for delivery updates. Notifications: organization and workspace scope come from the API key. Do not send environment or organization overrides. Notifications processing uses the shared Service Balance after applicable included usage. The backend applies current billing, consent, suppression, approval and retention rules. All Notifications sends preserve stable idempotency keys and do not retry automatically. Recipient inbox clients use a short-lived recipient token from your server, never a business API key. ## Webhook integration rules Creating an SDK webhook object does not start a server, expose a public URL or register a webhook in Account. Mount the language adapter on your server, deploy a public HTTPS route, then register that exact URL and matching signing secret in Account and select events. Verify signatures against the original raw request bytes before JSON parsing. The signed payload is timestamp + '.' + raw body, using HMAC-SHA256 and the configured secret. Use the SDK verifier and adapters for the exact signature headers and format; do not replace verification with a check of a caller-supplied secret. The default timestamp tolerance is 300 seconds and adapter body limit is 1 MiB. Low-level/custom HTTP integrations must enforce their own body limit. Await business processing or durable queue persistence before acknowledging success. Persist event.id with the business update to deduplicate retries across processes; a delivery-attempt ID is not a durable business-event ID. Callback event data depends on the event type: narrow and validate its fields. Wildcard callbacks also receive webhook.test and future event types. There is no persistent deduplication store bundled with the SDK. Do not claim that a local signed HTTP test proves delivery from the deployed WRNexus platform. # JavaScript / TypeScript SDK 0.4.5 Human guide: https://docs.wrnexus.com/sdk?language=javascript&version=0.4.5 Server use only. Requires Node.js 22+ or Bun 1.3+ and ES modules. JavaScript and TypeScript share this package. ## 1. Install ``` npm install @wrnexus/sdk@0.4.5 --registry=https://registry.workroot.in/repository/npm/ ``` ## 2. Get an API key ``` Create an organization key in Account; enable the required channel.operation scopes and allow your server IP. ``` ## 3. Configure ``` # Server environment; substitute your own values WRNEXUS_API_KEY=your-api-key WRNEXUS_API_ENDPOINT=https://api.wrnexus.com WRNEXUS_WEBHOOK_SECRET=your-webhook-signing-secret ``` ## 4. Initialize ``` import WRNexus from '@wrnexus/sdk'; // Reads WRNEXUS_API_KEY and optional WRNEXUS_API_ENDPOINT. const wrnexus = new WRNexus(); // Alternatively, use explicit server-side configuration. const configured = new WRNexus({ apiKey: process.env.WRNEXUS_API_KEY, endpoint: 'https://api.wrnexus.com', timeoutMs: 30_000, readRetries: 0, }); ``` ## 5. SMS example ``` const sent = await wrnexus.sms.send({ destination: '+919000000000', // replace with your recipient templateName: 'your-approved-template', senderName: 'your-verified-sender', variables: { order: '123' }, // match your template idempotencyKey: 'order-123-sms', }); const status = await wrnexus.sms.checkStatus(sent.messageId); const details = await wrnexus.sms.details(sent.messageId); const messages = await wrnexus.sms.list({ limit: 20, status: 'delivered' }); const templates = await wrnexus.sms.templates(); const senders = await wrnexus.sms.senders(); ``` ## WhatsApp example ``` const sent = await wrnexus.whatsapp.send({ to: '919000000000', // replace with your recipient kind: 'template', template_id: 'your-approved-template-id', body_values: ['123'], // values in template placeholder order number_id: 'your-business-number-id', idempotency_key: 'order-123-whatsapp', }); const status = await wrnexus.whatsapp.checkStatus(sent.messageId); const details = await wrnexus.whatsapp.details(sent.messageId); const messages = await wrnexus.whatsapp.list({ limit: 20 }); const templates = await wrnexus.whatsapp.templates(); ``` ## Email example ``` const sent = await wrnexus.email.send({ to: 'recipient@example.com', senderKey: 'your-verified-sender-key', subject: 'Your order', textBody: 'Your order has been received.', }); const status = await wrnexus.email.checkStatus(sent.messageId); const details = await wrnexus.email.details(sent.messageId); const messages = await wrnexus.email.list({ limit: 20 }); const templates = await wrnexus.email.templates(); ``` ## Shared balance ``` const { balance } = await wrnexus.sms.balance(); console.log(balance.availableMinor, balance.reservedMinor, balance.currency); // Each reads the SAME wallet; choose a channel permitted by your key. await wrnexus.whatsapp.balance(); await wrnexus.email.balance(); await wrnexus.balance('email'); // defaults to 'sms' when omitted ``` ## TypeScript response models ``` import type { BalanceResponse, SmsSendResponse } from '@wrnexus/sdk'; const wallet: BalanceResponse = await wrnexus.sms.balance(); // Return types are also inferred without explicit annotations. const rows = await wrnexus.sms.list(); for (const message of rows.messages) { console.log(message.id, message.status); } // SmsSendResponse describes send(); SmsMessageDetails describes details(). ``` ## Error handling ``` import { WRNexusError } from '@wrnexus/sdk'; try { const controller = new AbortController(); await wrnexus.sms.list({ limit: 20 }, { signal: controller.signal }); } catch (error) { if (error instanceof WRNexusError) { console.error(error.code, error.status, error.requestId); } else { throw error; } } ``` ## 7. Express webhook adapter ``` import WRNexus, { WRNexusEvent } from '@wrnexus/sdk'; import express from 'express'; // npm install express const wrnexus = new WRNexus(); const secret = process.env.WRNEXUS_WEBHOOK_SECRET; if (!secret) throw new Error('Set WRNEXUS_WEBHOOK_SECRET'); const webhook = wrnexus.webhook({ url: 'https://your-domain.com/webhooks/wrnexus', secret, }); webhook.on(WRNexusEvent.SMS_DELIVERED, async (data, event) => { // Persist event.id with your business update to handle repeat deliveries. if (typeof data.messageId === 'string') { console.log(event.id, data.messageId); } }); webhook.onAny(async (type, data, event) => { // One central callback for all events subscribed in Account. console.log(type, event.id); }); const app = express(); app.post('/webhooks/wrnexus', express.raw({ type: 'application/json', limit: '1mb' }), webhook.expressHandler(), ); app.use(express.json()); // after the webhook route app.listen(3000); ``` ## Fetch/Bun webhook adapter ``` // Reuse the configured webhook above in a Bun server. const receive = webhook.handler(); Bun.serve({ port: 3000, fetch(request) { const path = new URL(request.url).pathname; if (path === '/webhooks/wrnexus') return receive(request); return new Response('Not found', { status: 404 }); }, }); ``` ## 8. Event envelope ``` // Illustrative SMS event; data fields depend on the event type. { "id": "example-event-id", "event": "sms.message.delivered", "app": "sms", "createdAt": "2026-10-05T00:00:00.000Z", "data": { "messageId": "example-message-id", "status": "delivered" } } ``` ## Callback registration ``` import { WRNexusEvent, type AnyWebhookCallback, type WebhookCallback } from '@wrnexus/sdk'; const callback: AnyWebhookCallback = async (type, data, event) => { if (type === WRNexusEvent.WHATSAPP_READ) { // Apply your business logic after narrowing data fields. } }; webhook.onAny(callback); // Remove the same function reference when no longer needed. webhook.offAny(callback); const delivered: WebhookCallback = async (data, event) => { /* business logic */ }; webhook.on(WRNexusEvent.SMS_DELIVERED, delivered); webhook.off(WRNexusEvent.SMS_DELIVERED, delivered); ``` ## 9. Notifications preview server client ``` import WRNexusNotifications from '@wrnexus/sdk/notifications'; // Organization and workspace scope come from WRNEXUS_API_KEY. const wrnexus = new WRNexusNotifications(); const { recipient } = await wrnexus.notifications.recipientUpsert({ customerId: 'customer-42', name: 'Asha Rao', }); await wrnexus.notifications.send({ recipientId: recipient.id, title: 'Order ready', body: 'Your order is ready for collection.', purpose: 'transactional', category: 'orders', idempotencyKey: 'order-42-ready', }); // Give the recipient's browser or app a short-lived token, never your API key. const { token } = await wrnexus.notifications.recipientToken({ recipientId: recipient.id }); ``` ## Recipient inbox and token refresh ``` import WRNexusInbox from '@wrnexus/sdk/inbox'; const inbox = new WRNexusInbox({ // Called before each request, so an expiring token can be refreshed. token: async () => (await fetch('/my-app/notifications-token')).text(), }); const { messages, unreadCount } = await inbox.messages({ limit: 20 }); await inbox.markRead(messages[0].id); const stop = new AbortController(); void inbox.subscribe((snapshot) => render(snapshot), { signal: stop.signal }); await inbox.savePreferences({ category: 'offers', inAppEnabled: true, marketingEnabled: false }); ``` ## Web push registration ``` const { connections } = await inbox.devices(); const registration = await navigator.serviceWorker.register('/sw.js'); const subscription = await registration.pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: connections[0].publicKey, }); await inbox.registerWebPush({ connectionId: connections[0].id, name: 'This browser', subscription: subscription.toJSON() as never, marketingConsent: false, consentEvidence: '', }); ``` ## Client options - apiKey: Required server API key. An explicit option takes precedence over the environment. - endpoint: Uses WRNEXUS_API_ENDPOINT when set. Explicit option takes precedence. Requires HTTPS, except loopback HTTP for isolated tests. - timeoutMs: Positive integer timeout in milliseconds for each attempt. - readRetries: Integer 0–3. Retries GET responses with status 429, 502, 503 or 504. Sends are never automatically retried. - fetch: Optional compatible transport for server integrations or tests. ## Webhook functions - wrnexus.webhook(options): Create a webhook receiver. Options: public HTTPS url, local signing secret, toleranceSeconds (default 300), maxBodyBytes (default 1,048,576). It does not register the URL or start a server. - new WRNexusWebhook(options): Create the same receiver independently of the API client, without an API key. - webhook.url: Read the normalized public URL to register in Account → Webhooks. - webhook.on(type, callback): Register an event-specific callback (data, event). Supports multiple handlers and returns the receiver for chaining. - webhook.off(type, callback): Remove that same callback function from the event type. Returns the receiver. - webhook.onAny(callback): Register a central callback (type, data, event) for every verified event received, including future names and webhook.test. Returns the receiver. - webhook.offAny(callback): Remove that same central callback function. Returns the receiver. - webhook.handler(): Return a Fetch-compatible Request → Promise handler for Bun or another Fetch router. Mount it at the registered path. - webhook.expressHandler(): Return an Express-compatible handler. Install Express separately and mount express.raw() before any JSON parser on this route. - await webhook.dispatch(rawBytes, headers): Verify the raw string/Uint8Array body against a Headers object, await callbacks, and return WebhookEvent. Throws on invalid signature, oversized body or callback failure; your adapter must map errors to HTTP responses. - verifyWebhook(rawBytes, headers, secret, options?): Verify and parse without running callbacks. Returns WebhookEvent or throws WRNexusError. Options: toleranceSeconds (default 300), nowMs (default current time). Enforce your own body size limit when using this low-level function. ## Social: Threads image approval Use the existing Account connection and a saved draft with one clean JPEG. This request creates a pending review only; decision and queue require their own operation grants. Keep API keys server-side, preserve explicit consent and the exact request key, and never automatically retry a write. ``` import WRNexus, { type SocialThreadsReview } from '@wrnexus/sdk'; const client = new WRNexus(); // server-side WRNEXUS_API_KEY const threads: SocialThreadsReview = { mediaTransfer: true }; const review = await client.social.requestReview({ postId: 'your-post-id', revision: 2, accountIds: ['selected-threads-account-id'], scheduledAt: null, timezone: 'Asia/Kolkata', requestKey: 'threads-image-review-001', threads, }, { socialWorkspace: 'your-workspace-id' }); // Pending review only: no approval or publication is performed. ``` Full Social operation reference: https://docs.wrnexus.com/reference/social ## All API functions ### wrnexus.sms.balance(options?) Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: sms.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/balance ### wrnexus.whatsapp.balance(options?) Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: whatsapp.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/balance ### wrnexus.email.balance(options?) Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: email.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/email/balance ### wrnexus.sms.send(input, options?) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: sms.send. Response model: SmsSendResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/send ### wrnexus.sms.checkStatus(messageId, options?) Read the current status and status record for a message ID returned by send(). Permission: sms.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/status ### wrnexus.sms.details(messageId, options?) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: sms.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/details ### wrnexus.sms.list({ limit?, status? }?, options?) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: sms.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/list ### wrnexus.sms.templates(options?) Read templates available to the organization. Use a configured template when sending. Permission: sms.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/templates ### wrnexus.sms.senders(options?) Read SMS sender IDs available to the organization. Permission: sms.senders. Response model: SmsSendersResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/senders ### wrnexus.whatsapp.send(input, options?) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: whatsapp.send. Response model: WhatsAppSendResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/send ### wrnexus.whatsapp.checkStatus(messageId, options?) Read the current status and status record for a message ID returned by send(). Permission: whatsapp.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/status ### wrnexus.whatsapp.details(messageId, options?) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: whatsapp.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/details ### wrnexus.whatsapp.list({ limit?, status? }?, options?) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: whatsapp.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/list ### wrnexus.whatsapp.templates(options?) Read templates available to the organization. Use a configured template when sending. Permission: whatsapp.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/templates ### wrnexus.email.send(input, options?) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: email.send. Response model: EmailSendResponse. HTTP reference: https://docs.wrnexus.com/reference/email/send ### wrnexus.email.sendRequest(requestKey, options?) Read the original actor-scoped saved send outcome without resubmitting. Keep the original key; running or uncertain requests require review. Permission: email.send-request. Response model: EmailSendRequest. HTTP reference: https://docs.wrnexus.com/reference/email/send-request ### wrnexus.email.checkStatus(messageId, options?) Read the current status and status record for a message ID returned by send(). Permission: email.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/status ### wrnexus.email.details(messageId, options?) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: email.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/details ### wrnexus.email.list({ limit?, status? }?, options?) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: email.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/list ### wrnexus.email.templates(options?) Read templates available to the organization. Use a configured template when sending. Permission: email.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/templates ### wrnexus.notifications.apps(input, options?) List apps and their configured channel routes. Permission: notifications.apps. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/apps ### wrnexus.notifications.appSave(input, options?) Group Android, iOS and channel connections in one app. Permission: notifications.app-save. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-save ### wrnexus.notifications.appSend(input, options?) Admit selected channels together with retry-safe billing. Permission: notifications.app-send. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-send ### wrnexus.notifications.pushAnalytics(input, options?) Provider submission and SDK-observed device receipt, opening and reading. Permission: notifications.push-analytics. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-analytics ### wrnexus.notifications.workflowRuns(input, options?) Browse scoped workflow run status without event payloads. Permission: notifications.workflow-runs. Response model: NotificationWorkflowRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-runs ### wrnexus.notifications.workflowRun(input, options?) Read a retained run and its event/recipient snapshot. Permission: notifications.workflow-run. Response model: NotificationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run ### wrnexus.notifications.workflowSteps(input, options?) Browse durable node outcomes and linked send processing. Permission: notifications.workflow-steps. Response model: NotificationWorkflowStepsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-steps ### wrnexus.notifications.workflowRunCancel(input, options?) Cancel the current revision and stop linked pending work; accepted and uncertain provider submissions remain retained. Permission: notifications.workflow-run-cancel. Response model: NotificationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run-cancel ### wrnexus.notifications.workflowEvent(input, options?) Record an idempotent recipient event and retain matching published workflow runs. Records a correlation key for event processing; omitted keys use the recipient ID. Permission: notifications.workflow-event. Response model: NotificationWorkflowEventResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-event ### wrnexus.notifications.workflows(input, options?) Browse scoped workflow drafts and active versions. Permission: notifications.workflows. Response model: NotificationWorkflowsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflows ### wrnexus.notifications.workflow(input, options?) Read a scoped workflow draft. Permission: notifications.workflow. Response model: NotificationWorkflowResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow ### wrnexus.notifications.workflowVersions(input, options?) Browse retained workflow definitions and approval state. Permission: notifications.workflow-versions. Response model: NotificationWorkflowVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-versions ### wrnexus.notifications.workflowVersion(input, options?) Read an immutable retained workflow definition. Permission: notifications.workflow-version. Response model: NotificationWorkflowVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-version ### wrnexus.notifications.workflowSave(input, options?) Create or revise a typed workflow graph. Send nodes support config.delivery.urgent=true only with transactional published content. Delivery requires the published version creator's active urgent permission and shared hourly allowance. Does not start runs. Permission: notifications.workflow-save. Response model: NotificationWorkflowResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-save ### wrnexus.notifications.workflowPublish(input, options?) Retain a draft revision and its pinned templates; required approval stays pending. Does not start runs. Permission: notifications.workflow-publish. Response model: NotificationWorkflowVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-publish ### wrnexus.notifications.workflowApprove(input, options?) Approve the exact retained version without replacing a newer active revision. Permission: notifications.workflow-approve. Response model: NotificationWorkflowVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-approve ### wrnexus.notifications.campaignDeliveries(input, options?) Page through a scoped occurrence's per-recipient/channel delivery ledger, status, units and output identity. Permission: notifications.campaign-deliveries. Response model: NotificationCampaignDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-deliveries ### wrnexus.notifications.campaignSchedules(input, options?) Page through scoped schedule history for a campaign, including cancelled versions. Permission: notifications.campaign-schedules. Response model: NotificationCampaignSchedulesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedules ### wrnexus.notifications.campaignScheduleCreate(input, options?) Register an approved immutable campaign version and capture schedule-time audience. Occurrence materialization and delivery use separate workers. Permission: notifications.campaign-schedule-create. Response model: NotificationCampaignScheduleResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-create ### wrnexus.notifications.campaignScheduleControl(input, options?) Revision-checked controls stop future occurrence creation and change queued runs. Already submitted deliveries require separate reconciliation. Permission: notifications.campaign-schedule-control. Response model: NotificationCampaignScheduleResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-control ### wrnexus.notifications.campaignSchedule(input, options?) Read scoped schedule state, revision, next occurrence and saved advisory estimate. Permission: notifications.campaign-schedule. Response model: NotificationCampaignScheduleResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule ### wrnexus.notifications.campaignRuns(input, options?) Page through scoped persisted occurrences and audience capture state. Permission: notifications.campaign-runs. Response model: NotificationCampaignRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-runs ### wrnexus.notifications.campaignEstimate(input, options?) Estimate current consent and policy eligible contacts/devices and unit bounds without reserving or sending. Advisory only; managed carrier quotes and transport readiness are evaluated separately. Permission: notifications.campaign-estimate. Response model: NotificationCampaignEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-estimate ### wrnexus.notifications.campaignAudiencePreview(input, options?) Count and page current scoped campaign membership. This does not capture recipients or imply consent, channel eligibility, units or carrier costs. Permission: notifications.campaign-audience-preview. Response model: NotificationCampaignAudienceResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-audience-preview ### wrnexus.notifications.campaignSchedulePreview(input, options?) Resolve the next local-calendar campaign times without saving, scheduling or sending. Explicit UTC/offset cutoff; monthly dates clamp, repeated times run once and skipped times shift forward. Permission: notifications.campaign-schedule-preview. Response model: NotificationCampaignSchedulePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-preview ### wrnexus.notifications.campaigns(input, options?) Page through scoped campaign drafts. Publishing prepares immutable versions; execution is separate. Permission: notifications.campaigns. Response model: NotificationCampaignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaigns ### wrnexus.notifications.campaign(input, options?) Read a scoped campaign configuration and revision. Permission: notifications.campaign. Response model: NotificationCampaignResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign ### wrnexus.notifications.campaignVersion(input, options?) Read immutable campaign configuration and publication/approval state. Permission: notifications.campaign-version. Response model: NotificationCampaignVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version ### wrnexus.notifications.campaignVersions(input, options?) Browse scoped retained campaign versions and approval state. Permission: notifications.campaign-versions. Response model: NotificationCampaignVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-versions ### wrnexus.notifications.campaignVersionEstimate(input, options?) Review current advisory policy and unit counts and future dates using immutable version settings. Does not reserve, approve, schedule or send. Permission: notifications.campaign-version-estimate. Response model: NotificationCampaignVersionEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version-estimate ### wrnexus.notifications.campaignSave(input, options?) Create or revise validated audience, schedule, delivery, limits and A/B settings. Optional config.delivery.urgent=true requires transactional template content. Delivery requires the scheduled sender's active urgent permission and shared hourly allowance per message/device. Does not schedule or send. Permission: notifications.campaign-save. Response model: NotificationCampaignResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-save ### wrnexus.notifications.campaignPublish(input, options?) Freeze a campaign revision and pin approved template content; required approval remains pending. Does not launch. Permission: notifications.campaign-publish. Response model: NotificationCampaignVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-publish ### wrnexus.notifications.campaignApprove(input, options?) Approve the exact immutable campaign version. Does not launch. Permission: notifications.campaign-approve. Response model: NotificationCampaignVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-approve ### wrnexus.notifications.segments(input, options?) Page through scoped dynamic recipient segments. Permission: notifications.segments. Response model: NotificationSegmentsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segments ### wrnexus.notifications.segment(input, options?) Read saved audience rules and their current revision. Permission: notifications.segment. Response model: NotificationSegmentResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment ### wrnexus.notifications.segmentMembers(input, options?) Evaluate saved audience rules against current scoped profiles. Dispatch still rechecks consent and delivery policy. Permission: notifications.segment-members. Response model: NotificationGroupMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-members ### wrnexus.notifications.segmentSave(input, options?) Create or revise validated dynamic audience rules. Permission: notifications.segment-save. Response model: NotificationSegmentResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-save ### wrnexus.notifications.segmentPreview(input, options?) Evaluate draft audience rules without saving, sending or changing consent. Permission: notifications.segment-preview. Response model: NotificationGroupMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-preview ### wrnexus.notifications.recipientImportPreview(input, options?) Validate up to 500 recipient rows and explicit destination consent without changing recipients or sending messages. Permission: notifications.recipient-import-preview. Response model: NotificationRecipientImportPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import-preview ### wrnexus.notifications.inboxExport(input, options?) Owner-only scoped CSV of in-app creation, read and archive timestamps. Excludes titles, bodies, links and action content. Follow nextCursor to export the remaining records. Permission: notifications.inbox-export. Response model: NotificationReportExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/inbox-export ### wrnexus.notifications.deliveryExport(input, options?) Owner-only scoped CSV of external handoff outcomes and earliest recorded delivery/read/bounce/complaint/failure timestamps. Empty receipt fields mean no evidence recorded. Accepted means provider acceptance, not confirmed delivery or read. Excludes content, addresses, credentials and attachment details; follow nextCursor with the same filters. Permission: notifications.delivery-export. Response model: NotificationReportExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/delivery-export ### wrnexus.notifications.recipientExport(input, options?) Export scoped profile and destination CSV pages; preserves every address and explicit consent, excludes bearer tokens. Follow nextCursor for the remaining audience. Permission: notifications.recipient-export. Response model: NotificationRecipientExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-export ### wrnexus.notifications.recipientImport(input, options?) Atomically upsert validated recipient profiles and explicit destination consent; never sends messages or clears suppression. Permission: notifications.recipient-import. Response model: NotificationBulkRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import ### wrnexus.notifications.recipientBulkUpsert(input, options?) Atomically upsert up to 500 scoped profiles with optional explicit destination consent. Permission: notifications.recipient-bulk-upsert. Response model: NotificationBulkRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-bulk-upsert ### wrnexus.notifications.group(input, options?) Read a scoped group and its current revision. Permission: notifications.group. Response model: NotificationGroupResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group ### wrnexus.notifications.groupMembers(input, options?) Page through scoped members or recipients available to add, with optional name or customer ID search. Permission: notifications.group-members. Response model: NotificationGroupMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members ### wrnexus.notifications.groups(input, options?) List scoped recipient groups and membership counts. Permission: notifications.groups. Response model: NotificationGroupsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/groups ### wrnexus.notifications.groupSave(input, options?) Create or revise a scoped recipient group. Permission: notifications.group-save. Response model: NotificationGroupResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-save ### wrnexus.notifications.groupMembersUpdate(input, options?) Atomically add and remove scoped recipients without changing consent. Permission: notifications.group-members-update. Response model: NotificationGroupResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members-update ### wrnexus.notifications.whatsappSend(input, options?) Reserve the notification processing fee from Service Balance and queue approved content through a scoped registered business number. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance; consent and provider approval still apply. Permission: notifications.whatsapp-send. Response model: NotificationDispatchResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/whatsapp-send ### wrnexus.notifications.smsSend(input, options?) Reserve the notification processing fee from Service Balance and queue approved content through a verified sender. Select connectionId or useDefaultProvider=true. Optional backupConnectionIds retain order; the reserved managed backup requires allowPaidManagedBackup=true and maxManagedCostMinor. Backups follow confirmed pre-submission failures only. Retries retain reviewed routes; managed delivery uses Service Balance. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance. Permission: notifications.sms-send. Response model: NotificationDispatchResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-send ### wrnexus.notifications.mobileConnections(input, options?) Read scoped mobile provider setup without private credentials. Permission: notifications.mobile-connections. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connections ### wrnexus.notifications.emailConnections(input, options?) Read scoped Email provider metadata, form revision and delivery revision without SMTP credentials. Permission: notifications.email-connections. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connections ### wrnexus.notifications.emailConnectionSave(input, options?) Configure authenticated customer SMTP (TLS on port 465 or STARTTLS on 587) or an assigned managed Email sender. Supply the current revision when editing; omit smtpPassword to retain it. Mode cannot change. Credentials are never returned. Permission: notifications.email-connection-save. Response model: NotificationConnectionSaved. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connection-save ### wrnexus.notifications.externalSmsConnections(input, options?) Read scoped TLS SMPP provider metadata and country compliance settings without credentials. Permission: notifications.external-sms-connections. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connections ### wrnexus.notifications.smsProviderDefault(input, options?) Read the organization’s SMS default provider mode, identity and revision without credentials. Permission: notifications.sms-provider-default. Response model: NotificationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default ### wrnexus.notifications.smsProviderDefaultSave(input, options?) Choose managed delivery or an active compliant external SMS provider. Supply the current settings revision; changing this default never alters existing queued sends. Permission: notifications.sms-provider-default-save. Response model: NotificationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default-save ### wrnexus.notifications.branding(input, options?) Read the display name, brand colour and logo shown on hosted preference pages and the recipient inbox for the organization. Permission: notifications.branding. Response model: NotificationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding ### wrnexus.notifications.brandingSave(input, options?) Set the display name, brand colour (#rrggbb) and logo (PNG, JPEG or WebP up to 256 KiB, base64) shown to recipients. Omit a field to keep it, send null to clear it, and supply the current revision. Permission: notifications.branding-save. Response model: NotificationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding-save ### wrnexus.notifications.emailDesigns(input, options?) List published Email-studio designs a template's Email content can use, with the variables each needs. Saving a template with email.design {templateId, versionId} copies that exact version in. Permission: notifications.email-designs. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-designs ### wrnexus.notifications.customDomains(input, options?) List hostnames for hosted preference pages with their DNS TXT verification record, CNAME target and verification status. Permission: notifications.custom-domains. Response model: NotificationCustomDomainsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domains ### wrnexus.notifications.customDomainSave(input, options?) Add a hostname for hosted preference pages. It routes only after verification. Platform, local and IP hosts are refused. Permission: notifications.custom-domain-save. Response model: NotificationCustomDomainResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-save ### wrnexus.notifications.customDomainVerify(input, options?) Check the hostname's _wrnexus-notifications TXT record. A host can be verified by only one organisation; unverified hosts stay pending with a reason. Permission: notifications.custom-domain-verify. Response model: NotificationCustomDomainResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-verify ### wrnexus.notifications.customDomainRemove(input, options?) Stop serving hosted preference pages on a hostname. Links already sent with that host stop working. Permission: notifications.custom-domain-remove. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-remove ### wrnexus.notifications.externalSmsConnectionSave(input, options?) Save a TLS SMPP connection and supported country compliance profile. Supply the current revision when editing; omitted credentials and compliance are retained. Credentials are never returned. Permission: notifications.external-sms-connection-save. Response model: NotificationExternalSmsSaved. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connection-save ### wrnexus.notifications.mobileConnectionSave(input, options?) Configure a customer-owned FCM/APNs connection or an explicitly provisioned managed application. Permission: notifications.mobile-connection-save. Response model: NotificationConnectionSaved. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connection-save ### wrnexus.notifications.mobilePushSend(input, options?) Freeze device targets and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate by default. Permission: notifications.mobile-push-send. Response model: NotificationPushResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-send ### wrnexus.notifications.pushTemplateSend(input, options?) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.push-template-send. Response model: NotificationPushTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-template-send ### wrnexus.notifications.mobilePushTemplateSend(input, options?) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.mobile-push-template-send. Response model: NotificationPushTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-template-send ### wrnexus.notifications.mobilePushRequest(input, options?) Read retained scoped mobile submission outcomes. Permission: notifications.mobile-push-request. Response model: NotificationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-request ### wrnexus.notifications.pushSend(input, options?) Freeze the active target devices and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate without provider contact. Permission: notifications.push-send. Response model: NotificationPushResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-send ### wrnexus.notifications.pushRequest(input, options?) Read the retained outcomes for a scoped web push request. Permission: notifications.push-request. Response model: NotificationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-request ### wrnexus.notifications.pushConnections(input, options?) Read scoped web push connections and public subscription keys. Permission: notifications.push-connections. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connections ### wrnexus.notifications.pushConnectionSave(input, options?) Configure a managed or customer-owned VAPID pair. Private credentials are write-only and encrypted. Permission: notifications.push-connection-save. Response model: NotificationConnectionSaved. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connection-save ### wrnexus.notifications.templates(input, options?) List scoped in-app template drafts. Permission: notifications.templates. Response model: NotificationTemplatesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/templates ### wrnexus.notifications.template(input, options?) Read a draft and retained version history. Permission: notifications.template. Response model: NotificationTemplateDetailsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template ### wrnexus.notifications.templateSave(input, options?) Save a draft with an optimistic revision check. Approval policy is fixed on creation. Permission: notifications.template-save. Response model: NotificationConnectionSaved. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-save ### wrnexus.notifications.templatePublish(input, options?) Freeze a draft revision; approval-enabled templates wait for explicit approval. Permission: notifications.template-publish. Response model: NotificationTemplateVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-publish ### wrnexus.notifications.templateApprove(input, options?) Approve and publish an immutable submitted version. Permission: notifications.template-approve. Response model: NotificationTemplateVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-approve ### wrnexus.notifications.templatePreview(input, options?) Render content without sending or charging units. Permission: notifications.template-preview. Response model: NotificationTemplatePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-preview ### wrnexus.notifications.templateSend(input, options?) Send the latest published version or an exact published version; retries retain their original version. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.template-send. Response model: NotificationTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-send ### wrnexus.notifications.recipientPreferenceLink(input, options?) Issue short-lived, revocable access to the hosted preference page only. Permission: notifications.recipient-preference-link. Response model: NotificationPreferenceLinkResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-preference-link ### wrnexus.notifications.recipient(input, options?) Read a scoped recipient, preferences and in-app suppression. Permission: notifications.recipient. Response model: NotificationRecipientDetails. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient ### wrnexus.notifications.destinationSave(input, options?) Add or update a scoped email or phone destination with explicit consent and reversible delivery access. Permission: notifications.destination-save. Response model: NotificationDestinationResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/destination-save ### wrnexus.notifications.emailSend(input, options?) Queue Email using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive; senderKey is required only for legacy routing. Admission pins provider identity on replay. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.email-send. Response model: NotificationDispatchResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-send ### wrnexus.notifications.emailTemplateSend(input, options?) Queue an exact or latest published Email template using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive. Retries retain the original version and provider identity. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.email-template-send. Response model: NotificationEmailTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-template-send ### wrnexus.notifications.dispatches(input, options?) Read scoped channel dispatch states, including unknown acceptance and simulations. Permission: notifications.dispatches. Response model: NotificationDispatchesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/dispatches ### wrnexus.notifications.recipientSuppression(input, options?) Pause or resume in-app delivery with an audit reason. Permission: notifications.recipient-suppression. Response model: NotificationSuppressionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-suppression ### wrnexus.notifications.recipients(input, options?) List permitted organization recipients. Permission: notifications.recipients. Response model: NotificationRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipients ### wrnexus.notifications.recipientUpsert(input, options?) Create or update a customer recipient. Permission: notifications.recipient-upsert. Response model: NotificationRecipientResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-upsert ### wrnexus.notifications.recipientToken(input, options?) Issue a short-lived token for an existing recipient's inbox. Permission: notifications.recipient-token. Response model: NotificationRecipientTokenResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token ### wrnexus.notifications.recipientTokenRevoke(input, options?) Invalidate every outstanding token for one recipient. Permission: notifications.recipient-token-revoke. Response model: Inferred structured result. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token-revoke ### wrnexus.notifications.send(input, options?) Insert an in-app notification and charge the notification processing fee from Service Balance. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.send. Response model: NotificationInAppResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/send ### wrnexus.notifications.deliveries(input, options?) Read permitted recent in-app deliveries. Permission: notifications.deliveries. Response model: NotificationDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/deliveries ### wrnexus.notifications.units(input, options?) Read Service Balance billing, current notification processing rates and usage. The legacy units field reports affordable, pending and processed notification counts. Permission: notifications.units. Response model: NotificationUnitsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/units ## Send input fields ### SmsSend - destination: Required recipient phone number with country code. - templateName, senderName: Required approved template name and verified sender name from your SMS configuration. - variables: Optional Record matching the template variables. - idempotencyKey: Optional stable identifier for this business send. Reuse it when recovering the same request. ### EmailSend - to, senderKey: Required recipient email and configured verified sender key. - fromName, subject: Optional sender display name and subject. A saved template can supply content. - htmlBody, textBody: Optional HTML and plain text content; supply content or a templateId. - templateId: Optional saved email template ID. Email has no guaranteed idempotency input. ### WhatsAppSend - to, kind: Required recipient and one of text, template, interactive, media, location, contacts or reaction. - number_id, reply_to, idempotency_key: Optional configured sending number, message being replied to, and stable business-send identifier. - text: Text content for kind: text. - template_id, body_values: Approved template ID and ordered string values for kind: template. - header_text, code, coupon_code, offer_expires_at, url_suffix: Template-specific header, authentication, coupon/offer and dynamic URL values. Supply only fields supported by the configured template. - media_kind, media_url, media_id, filename, caption: Hosted media reference and optional presentation fields. media_kind is image, video, audio, document or sticker. - latitude, longitude, location_name, address: Location coordinates as strings, with optional name and address. - contacts: Array of contacts with required name and phone; optional email and company. - contact_name, contact_phone, contact_email, contact_company: Fields for a single contact instead of the contacts array. - reaction_to, emoji: Message to react to and the reaction emoji. - interactive_type, body, header, footer: Interactive variant (buttons, list, link, product, products or flow) and display text. - buttons, rows, menu_button, section_title: String arrays and labels for interactive buttons or lists, matching the channel's configured format. - label, url, product_id, product_ids, flow_id, cta: Variant-specific link label/URL, catalog product IDs or flow ID and call-to-action. ## All webhook event types ### sms - WRNexusEvent.SMS_QUEUED — sms.message.queued: Accepted into the sending queue; not a delivery receipt. - WRNexusEvent.SMS_SUBMITTED — sms.message.submitted: Submitted to the SMS provider; delivery is still pending. - WRNexusEvent.SMS_DELIVERED — sms.message.delivered: The SMS delivery receipt reports delivery. - WRNexusEvent.SMS_FAILED — sms.message.failed: Sending or delivery failed; inspect the event and message details. ### whatsapp - WRNexusEvent.WHATSAPP_SENT — whatsapp.message.sent: WhatsApp reports the outbound message as sent. - WRNexusEvent.WHATSAPP_DELIVERED — whatsapp.message.delivered: WhatsApp reports delivery to the recipient. - WRNexusEvent.WHATSAPP_READ — whatsapp.message.read: WhatsApp reports a read receipt when available. - WRNexusEvent.WHATSAPP_FAILED — whatsapp.message.failed: WhatsApp reports a failed outbound message. - WRNexusEvent.WHATSAPP_RECEIVED — whatsapp.message.received: An inbound WhatsApp message was received. - WRNexusEvent.WHATSAPP_TEMPLATE_UPDATED — whatsapp.template.updated: The platform recorded a template update. - WRNexusEvent.WHATSAPP_ORDER_PAID — whatsapp.order.paid: The platform recorded a paid WhatsApp order. ### email - WRNexusEvent.EMAIL_QUEUED — email.message.queued: Email is queued for sending. - WRNexusEvent.EMAIL_SUBMITTED — email.message.submitted: Accepted by the mail server; this does not prove inbox receipt. - WRNexusEvent.EMAIL_FAILED — email.message.failed: Email sending failed. - WRNexusEvent.EMAIL_TRACKING_UNKNOWN — email.message.tracking_unknown: The platform cannot determine a tracked delivery state. - WRNexusEvent.EMAIL_OPENED — email.message.opened: An email tracking open was recorded; tracking may be affected by mail clients. - WRNexusEvent.EMAIL_CLICKED — email.message.clicked: A tracked email link click was recorded. - WRNexusEvent.EMAIL_BOUNCED — email.message.bounced: A bounce was recorded. - WRNexusEvent.EMAIL_COMPLAINED — email.message.complained: A spam complaint was recorded. - WRNexusEvent.EMAIL_UNSUBSCRIBED — email.message.unsubscribed: An unsubscribe was recorded. ### notifications - NotificationEvent.CAMPAIGN_RUN_COMPLETED — notifications.campaign.run.completed: Campaign occurrence completed - NotificationEvent.CAMPAIGN_RUN_EXPIRED — notifications.campaign.run.expired: Campaign occurrence expired - NotificationEvent.CAMPAIGN_RUN_CANCELLED — notifications.campaign.run.cancelled: Campaign occurrence cancelled - NotificationEvent.CAMPAIGN_SCHEDULED — notifications.campaign.scheduled: Campaign scheduled - NotificationEvent.CAMPAIGN_PAUSED — notifications.campaign.paused: Campaign paused - NotificationEvent.CAMPAIGN_RESUMED — notifications.campaign.resumed: Campaign resumed - NotificationEvent.CAMPAIGN_CANCELLED — notifications.campaign.cancelled: Campaign cancelled - NotificationEvent.CAMPAIGN_RUN_CREATED — notifications.campaign.run.created: Campaign occurrence created - NotificationEvent.CAMPAIGN_RUN_TARGETS_FROZEN — notifications.campaign.run.targets.frozen: Campaign delivery targets frozen - NotificationEvent.CAMPAIGN_AUDIENCE_CAPTURED — notifications.campaign.audience.captured: Campaign send-time audience captured - NotificationEvent.CAMPAIGN_SAVED — notifications.campaign.saved: Campaign draft saved - NotificationEvent.CAMPAIGN_SUBMITTED — notifications.campaign.submitted: Campaign version submitted for approval - NotificationEvent.WORKFLOW_SAVED — notifications.workflow.saved: Workflow draft saved - NotificationEvent.WORKFLOW_SUBMITTED — notifications.workflow.submitted: Workflow version submitted for approval - NotificationEvent.WORKFLOW_PUBLISHED — notifications.workflow.published: Workflow version published - NotificationEvent.WORKFLOW_EVENT_RECORDED — notifications.workflow.event.recorded: Workflow event recorded - NotificationEvent.WORKFLOW_RUN_STARTED — notifications.workflow.run.started: Workflow run started - NotificationEvent.WORKFLOW_RUN_CANCELLED — notifications.workflow.run.cancelled: Workflow run cancelled - NotificationEvent.WORKFLOW_RUN_COMPLETED — notifications.workflow.run.completed: Workflow run completed - NotificationEvent.WORKFLOW_RUN_FAILED — notifications.workflow.run.failed: Workflow run failed - NotificationEvent.WORKFLOW_STEP_COMPLETED — notifications.workflow.step.completed: Workflow step completed - NotificationEvent.WORKFLOW_SEND_ADMITTED — notifications.workflow.send.admitted: Workflow send admitted - NotificationEvent.CAMPAIGN_PUBLISHED — notifications.campaign.published: Campaign version prepared for launch - NotificationEvent.GROUP_SAVED — notifications.group.saved: Recipient group saved - NotificationEvent.GROUP_MEMBERS_UPDATED — notifications.group.members.updated: Recipient group members updated - NotificationEvent.SEGMENT_SAVED — notifications.segment.saved: Recipient segment saved - NotificationEvent.MESSAGE_QUEUED — notifications.message.queued: Notification queued - NotificationEvent.MESSAGE_ACCEPTED — notifications.message.accepted: Notification accepted by provider or inbox - NotificationEvent.MESSAGE_REJECTED — notifications.message.rejected: Notification rejected before acceptance - NotificationEvent.MESSAGE_UNKNOWN — notifications.message.unknown: Notification acceptance needs reconciliation - NotificationEvent.MESSAGE_CANCELLED — notifications.message.cancelled: Unsent notification cancelled - NotificationEvent.MESSAGE_SIMULATED — notifications.message.simulated: Test notification simulated - NotificationEvent.MESSAGE_RECONCILED — notifications.message.reconciled: Notification acceptance reconciled - NotificationEvent.MESSAGE_RESUMED — notifications.message.resumed: Notification submission resumed - NotificationEvent.CONNECTION_UPDATED — notifications.connection.updated: Notification connection updated - NotificationEvent.DEVICE_REGISTERED — notifications.device.registered: Notification device registered - NotificationEvent.DEVICE_ROTATED — notifications.device.rotated: Notification device token rotated - NotificationEvent.DEVICE_UNREGISTERED — notifications.device.unregistered: Notification device unregistered - NotificationEvent.DESTINATION_UPDATED — notifications.destination.updated: Recipient destination updated - NotificationEvent.PREFERENCES_UPDATED — notifications.preferences.updated: Recipient preferences updated - NotificationEvent.TEMPLATE_PUBLISHED — notifications.template.published: Notification template published # Java SDK 0.4.1 Human guide: https://docs.wrnexus.com/sdk?language=java&version=0.4.1 ## 1. How to install Java 17+. Typed records and fluent input builders. Jackson handles JSON; the JDK supplies HTTP. Use this published version from the WRNexus registry. Downloads are public; publishing requires authentication. ### Package installation ``` wrnexushttps://registry.workroot.in/repository/maven-releases/ com.wrnexuswrnexus-sdk0.4.1 ``` ## 2. Get an API key Open Account → API keys, create a key and choose the channel.operation scopes your integration needs. Wallet reads require sms.balance, whatsapp.balance or email.balance; existing keys do not automatically gain them. Store the key in your server secret configuration. Account membership, allowed IPs, verified senders/templates and available balance still apply. Sends can use your account balance. Keep keys out of browser/mobile bundles and logs. ## 3. How to configure Set the server environment before starting your app. The SDK does not load .env files. An explicit key/endpoint takes precedence; the endpoint defaults to https://api.wrnexus.com. Timeout defaults to 30 seconds; optional read retries range from 0 to 3. HTTPS is required except literal loopback, and redirects are rejected. ### Server environment ``` WRNEXUS_API_KEY=your-api-key WRNEXUS_API_ENDPOINT=https://api.wrnexus.com WRNEXUS_WEBHOOK_SECRET=your-webhook-signing-secret ``` ### Client options ``` var client = WRNexus.builder() .timeout(java.time.Duration.ofSeconds(30)) .readRetries(0).build(); // apiKey(...) and endpoint(...) explicitly override the environment. ``` ## 4. How to initialize Create one client for your server integration. Initialization configures it; network requests begin when you call an operation. ### Create client ``` import com.wrnexus.sdk.WRNexus; import com.wrnexus.sdk.Models; import java.util.Map; WRNexus client = new WRNexus(); ``` ## 5. How to use: code examples Each snippet reuses the initialized client. Replace illustrative recipients, templates and senders with your account's configuration. WhatsApp supports all current text/template/media/interactive/location/contact/reaction inputs. Email submitted means mail-server acceptance, not proof of inbox delivery. All channel balances read the same organization Service Balance; never sum them. Amounts are integer currency minor units (INR 5021 is ₹50.21), accompanied by currency, reserved amount and last update. ### SMS ``` var sent = client.sms().send(new Models.SmsSend() .destination("919000000000").templateName("your-approved-template") .senderName("your-verified-sender").variables(Map.of("variable1", "Ajay")) .idempotencyKey("order-123-sms")); var status = client.sms().checkStatus(sent.messageId()); var details = client.sms().details(sent.messageId()); ``` ### WhatsApp ``` var sent = client.whatsapp().send(new Models.WhatsAppSend() .to("919000000000").kind(Models.WhatsAppSend.Kind.TEMPLATE) .templateId("your-approved-template-id").bodyValues(java.util.List.of("Ajay")) .idempotencyKey("order-123-whatsapp")); ``` ### Email ``` var sent = client.email().send(new Models.EmailSend() .to("recipient@example.com").senderKey("your-verified-sender-key") .subject("Your order").textBody("Your order has been received.")); ``` ### Balance and reads ``` var wallet = client.balance("sms").balance(); System.out.println(wallet.availableMinor() + " " + wallet.currency()); for (var message : client.sms().list(20, "delivered").messages()) { System.out.println(message.id() + " " + message.status()); } ``` ## 6. All functions and response models Models.* records expose camelCase accessors; Jackson preserves wire field names. Nullable provider/error fields and optional send fee fields remain null. Models.DatabaseInteger.asBigInteger() performs exact arithmetic on database integer numbers or strings. Fluent send input methods serialize the exact API field names. WRNexusException exposes code(), status() and requestId(). The immutable client can be shared across threads. Requests are synchronous; interrupt the calling thread to cancel. Java snippets with imports go at file scope; statements go inside your application's method, with checked exceptions handled or declared. Read retries apply to HTTP 429/502/503/504, and sends never retry automatically. Reuse the original SMS/WhatsApp idempotency key only when recovering the same send. Email has no guaranteed idempotency input. Provider error text and your API key are excluded from SDK error messages. Response models include BalanceResponse / ServiceBalance, SmsSendResponse, WhatsAppSendResponse, EmailSendResponse, StatusResponse, MessagesResponse, TemplatesResponse, SmsSendersResponse and channel message/template rows. Send fee/replay fields can be omitted; nullable provider/error/receipt fields remain nullable. ## 7. Set up webhooks Serve your receiver at a public HTTPS route and register that exact URL and matching signing secret in Account → Webhooks. Select events, then use Send test. The signing secret is separate from your API key. SDK initialization does not create a public server or register the webhook. Keep untouched body bytes for verification. Default tolerance is 300 seconds and body limit is 1 MiB. Adapters acknowledge with 200 after callbacks finish, reject signatures with 401, oversized bodies with 413 and non-POST requests with 405; callback failures receive sanitized 500 responses. ### Receiver and callbacks ``` import com.wrnexus.sdk.WRNexusWebhook; import com.wrnexus.sdk.WRNexusEvent; import com.sun.net.httpserver.HttpServer; import java.net.InetSocketAddress; var hook = new WRNexusWebhook("https://your-domain.example/webhooks/wrnexus", System.getenv("WRNEXUS_WEBHOOK_SECRET")); hook.on(WRNexusEvent.SMS_DELIVERED, (data, event) -> { // Persist event.id() with the business transaction. }); hook.onAny((type, data, event) -> System.out.println(type)); var server = HttpServer.create(new InetSocketAddress("127.0.0.1", 3000), 0); server.createContext("/webhooks/wrnexus", hook.httpHandler()); server.start(); ``` ## 8. Webhook types, functions and usage Envelope: id, event, app, createdAt and event-specific data. Validate/narrow each event's data before business use. Specific callbacks run before central callbacks and complete sequentially. Central callbacks also receive future valid events and webhook.test. Persist event IDs with your business transaction or durable queue to prevent duplicate effects across retries, replicas and restarts. The SDK does not provide persistent deduplication; earlier callbacks can repeat when a later callback fails. Incoming secret headers are never trusted. - client.webhook(url, secret) / new WRNexusWebhook(url, secret): Create a receiver; standalone overload additionally accepts tolerance seconds and body limit. - hook.url(): Read the URL to register in Account → Webhooks. - on / off / onAny / offAny: Register/remove the same callback reference. Specific callbacks receive (data, event); central callbacks receive (type, data, event). Returns the receiver. - onAsync / offAsync / onAnyAsync / offAnyAsync: Async variants return CompletionStage and are awaited before acknowledgement. - httpHandler(): JDK HttpServer adapter with bounded raw-body reads. - receive(method, rawBytes, headers): Framework-neutral WebhookResponse; enforce stream limits in your framework and map status/body to its response. - dispatch(rawBytes, headers): Verify and invoke callbacks; returns Models.WebhookEvent. - WRNexusWebhook.verify(rawBytes, headers, secret): Verify without callbacks; overload supports tolerance seconds and a test Instant. ## 9. Notifications preview All 98 Notifications gateway operations have typed inputs/results: recipients, destinations, groups, segments, templates, six send channels, campaigns, workflows, connections, exports and units. This is a preview API; native-device and production delivery verification remain separate rollout requirements. Notifications methods require a gateway deployment that enables the 2026-10-09.v55 preview contract. Package installation does not enable those routes in a deployment; configure endpoint explicitly when integrating against your preview gateway. Organization and workspace scope come from the API key. Do not send environment or organization overrides. Sends never retry automatically; preserve the same idempotency key when recovering an ambiguous request. Use the Typed methods (Go/Java) or _typed methods (Rust) for checked inputs and structured results. Unsuffixed methods retain raw JSON access. Sum types retain the contract's allowed alternatives; typed requests reject mixed guest/saved identities and urgent marketing. Required nullable fields retain null. CSV rejection errors expose at most 1,000 validated row/column/code issues, never raw cell values. The 41 Notifications constants are separate from the existing 20 messaging constants; use the same signed webhook helpers and durable event deduplication. ### Create a recipient using typed models ``` import com.wrnexus.sdk.*; var notifications = new Notifications(WRNexus.builder().build()); var recipient = notifications.recipientUpsertTyped( new NotificationModels.NotificationOperationRecipientUpsertInput("customer-42", "Asha", null, null)); System.out.println(recipient.recipient().id()); ``` ## Social: Threads image approval Use the existing Account connection and a saved draft with one clean JPEG. This request creates a pending review only; decision and queue require their own operation grants. Keep API keys server-side, preserve explicit consent and the exact request key, and never automatically retry a write. ``` import com.wrnexus.sdk.WRNexus; import com.wrnexus.sdk.Social; var social = WRNexus.builder().build().social() .inWorkspace("your-workspace-id"); // server-side WRNEXUS_API_KEY var input = new Social.ReviewRequest("your-post-id", 2, java.util.List.of("selected-threads-account-id"), null, "Asia/Kolkata", "threads-image-review-001", null, null, null); var review = social.requestReviewWithThreads(input, new Social.ThreadsReview(true)); // Pending review only: no approval or publication is performed. ``` Full Social operation reference: https://docs.wrnexus.com/reference/social ## All API functions ### client.sms().balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: sms.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/balance ### client.whatsapp().balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: whatsapp.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/balance ### client.email().balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: email.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/email/balance ### client.sms().send(input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: sms.send. Response model: SmsSendResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/send ### client.sms().checkStatus(id) Read the current status and status record for a message ID returned by send(). Permission: sms.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/status ### client.sms().details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: sms.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/details ### client.sms().list(limit, status) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: sms.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/list ### client.sms().templates() Read templates available to the organization. Use a configured template when sending. Permission: sms.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/templates ### client.sms().senders() Read SMS sender IDs available to the organization. Permission: sms.senders. Response model: SmsSendersResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/senders ### client.whatsapp().send(input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: whatsapp.send. Response model: WhatsAppSendResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/send ### client.whatsapp().checkStatus(id) Read the current status and status record for a message ID returned by send(). Permission: whatsapp.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/status ### client.whatsapp().details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: whatsapp.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/details ### client.whatsapp().list(limit, status) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: whatsapp.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/list ### client.whatsapp().templates() Read templates available to the organization. Use a configured template when sending. Permission: whatsapp.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/templates ### client.email().send(input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: email.send. Response model: EmailSendResponse. HTTP reference: https://docs.wrnexus.com/reference/email/send ### client.email().sendRequest(requestKey) Read the original actor-scoped saved send outcome without resubmitting. Keep the original key; running or uncertain requests require review. Permission: email.send-request. Response model: EmailSendRequest. HTTP reference: https://docs.wrnexus.com/reference/email/send-request ### client.email().checkStatus(id) Read the current status and status record for a message ID returned by send(). Permission: email.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/status ### client.email().details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: email.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/details ### client.email().list(limit, status) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: email.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/list ### client.email().templates() Read templates available to the organization. Use a configured template when sending. Permission: email.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/templates ### notifications.appsTyped(input) List apps and their configured channel routes. Permission: notifications.apps. Response model: NotificationModels.NotificationOperationAppsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/apps ### notifications.appSaveTyped(input) Group Android, iOS and channel connections in one app. Permission: notifications.app-save. Response model: NotificationModels.NotificationOperationAppSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-save ### notifications.appSendTyped(input) Admit selected channels together with retry-safe billing. Permission: notifications.app-send. Response model: NotificationModels.NotificationOperationAppSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-send ### notifications.pushAnalyticsTyped(input) Provider submission and SDK-observed device receipt, opening and reading. Permission: notifications.push-analytics. Response model: NotificationModels.NotificationOperationPushAnalyticsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-analytics ### notifications.workflowRunsTyped(input) Browse scoped workflow run status without event payloads. Permission: notifications.workflow-runs. Response model: NotificationModels.NotificationOperationWorkflowRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-runs ### notifications.workflowRunTyped(input) Read a retained run and its event/recipient snapshot. Permission: notifications.workflow-run. Response model: NotificationModels.NotificationOperationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run ### notifications.workflowStepsTyped(input) Browse durable node outcomes and linked send processing. Permission: notifications.workflow-steps. Response model: NotificationModels.NotificationOperationWorkflowStepsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-steps ### notifications.workflowRunCancelTyped(input) Cancel the current revision and stop linked pending work; accepted and uncertain provider submissions remain retained. Permission: notifications.workflow-run-cancel. Response model: NotificationModels.NotificationOperationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run-cancel ### notifications.workflowEventTyped(input) Record an idempotent recipient event and retain matching published workflow runs. Records a correlation key for event processing; omitted keys use the recipient ID. Permission: notifications.workflow-event. Response model: NotificationModels.NotificationOperationWorkflowEventResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-event ### notifications.workflowsTyped(input) Browse scoped workflow drafts and active versions. Permission: notifications.workflows. Response model: NotificationModels.NotificationOperationWorkflowsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflows ### notifications.workflowTyped(input) Read a scoped workflow draft. Permission: notifications.workflow. Response model: NotificationModels.NotificationOperationWorkflowSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow ### notifications.workflowVersionsTyped(input) Browse retained workflow definitions and approval state. Permission: notifications.workflow-versions. Response model: NotificationModels.NotificationOperationWorkflowVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-versions ### notifications.workflowVersionTyped(input) Read an immutable retained workflow definition. Permission: notifications.workflow-version. Response model: NotificationModels.NotificationOperationWorkflowPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-version ### notifications.workflowSaveTyped(input) Create or revise a typed workflow graph. Send nodes support config.delivery.urgent=true only with transactional published content. Delivery requires the published version creator's active urgent permission and shared hourly allowance. Does not start runs. Permission: notifications.workflow-save. Response model: NotificationModels.NotificationOperationWorkflowSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-save ### notifications.workflowPublishTyped(input) Retain a draft revision and its pinned templates; required approval stays pending. Does not start runs. Permission: notifications.workflow-publish. Response model: NotificationModels.NotificationOperationWorkflowPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-publish ### notifications.workflowApproveTyped(input) Approve the exact retained version without replacing a newer active revision. Permission: notifications.workflow-approve. Response model: NotificationModels.NotificationOperationWorkflowPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-approve ### notifications.campaignDeliveriesTyped(input) Page through a scoped occurrence's per-recipient/channel delivery ledger, status, units and output identity. Permission: notifications.campaign-deliveries. Response model: NotificationModels.NotificationOperationCampaignDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-deliveries ### notifications.campaignSchedulesTyped(input) Page through scoped schedule history for a campaign, including cancelled versions. Permission: notifications.campaign-schedules. Response model: NotificationModels.NotificationOperationCampaignSchedulesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedules ### notifications.campaignScheduleCreateTyped(input) Register an approved immutable campaign version and capture schedule-time audience. Occurrence materialization and delivery use separate workers. Permission: notifications.campaign-schedule-create. Response model: NotificationModels.NotificationOperationCampaignScheduleCreateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-create ### notifications.campaignScheduleControlTyped(input) Revision-checked controls stop future occurrence creation and change queued runs. Already submitted deliveries require separate reconciliation. Permission: notifications.campaign-schedule-control. Response model: NotificationModels.NotificationOperationCampaignScheduleCreateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-control ### notifications.campaignScheduleTyped(input) Read scoped schedule state, revision, next occurrence and saved advisory estimate. Permission: notifications.campaign-schedule. Response model: NotificationModels.NotificationOperationCampaignScheduleCreateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule ### notifications.campaignRunsTyped(input) Page through scoped persisted occurrences and audience capture state. Permission: notifications.campaign-runs. Response model: NotificationModels.NotificationOperationCampaignRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-runs ### notifications.campaignEstimateTyped(input) Estimate current consent and policy eligible contacts/devices and unit bounds without reserving or sending. Advisory only; managed carrier quotes and transport readiness are evaluated separately. Permission: notifications.campaign-estimate. Response model: NotificationModels.NotificationOperationCampaignEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-estimate ### notifications.campaignAudiencePreviewTyped(input) Count and page current scoped campaign membership. This does not capture recipients or imply consent, channel eligibility, units or carrier costs. Permission: notifications.campaign-audience-preview. Response model: NotificationModels.NotificationOperationCampaignAudiencePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-audience-preview ### notifications.campaignSchedulePreviewTyped(input) Resolve the next local-calendar campaign times without saving, scheduling or sending. Explicit UTC/offset cutoff; monthly dates clamp, repeated times run once and skipped times shift forward. Permission: notifications.campaign-schedule-preview. Response model: NotificationModels.NotificationOperationCampaignSchedulePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-preview ### notifications.campaignsTyped(input) Page through scoped campaign drafts. Publishing prepares immutable versions; execution is separate. Permission: notifications.campaigns. Response model: NotificationModels.NotificationOperationCampaignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaigns ### notifications.campaignTyped(input) Read a scoped campaign configuration and revision. Permission: notifications.campaign. Response model: NotificationModels.NotificationOperationCampaignSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign ### notifications.campaignVersionTyped(input) Read immutable campaign configuration and publication/approval state. Permission: notifications.campaign-version. Response model: NotificationModels.NotificationOperationCampaignPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version ### notifications.campaignVersionsTyped(input) Browse scoped retained campaign versions and approval state. Permission: notifications.campaign-versions. Response model: NotificationModels.NotificationOperationCampaignVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-versions ### notifications.campaignVersionEstimateTyped(input) Review current advisory policy and unit counts and future dates using immutable version settings. Does not reserve, approve, schedule or send. Permission: notifications.campaign-version-estimate. Response model: NotificationModels.NotificationOperationCampaignVersionEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version-estimate ### notifications.campaignSaveTyped(input) Create or revise validated audience, schedule, delivery, limits and A/B settings. Optional config.delivery.urgent=true requires transactional template content. Delivery requires the scheduled sender's active urgent permission and shared hourly allowance per message/device. Does not schedule or send. Permission: notifications.campaign-save. Response model: NotificationModels.NotificationOperationCampaignSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-save ### notifications.campaignPublishTyped(input) Freeze a campaign revision and pin approved template content; required approval remains pending. Does not launch. Permission: notifications.campaign-publish. Response model: NotificationModels.NotificationOperationCampaignPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-publish ### notifications.campaignApproveTyped(input) Approve the exact immutable campaign version. Does not launch. Permission: notifications.campaign-approve. Response model: NotificationModels.NotificationOperationCampaignPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-approve ### notifications.segmentsTyped(input) Page through scoped dynamic recipient segments. Permission: notifications.segments. Response model: NotificationModels.NotificationOperationSegmentsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segments ### notifications.segmentTyped(input) Read saved audience rules and their current revision. Permission: notifications.segment. Response model: NotificationModels.NotificationOperationSegmentSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment ### notifications.segmentMembersTyped(input) Evaluate saved audience rules against current scoped profiles. Dispatch still rechecks consent and delivery policy. Permission: notifications.segment-members. Response model: NotificationModels.NotificationOperationSegmentMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-members ### notifications.segmentSaveTyped(input) Create or revise validated dynamic audience rules. Permission: notifications.segment-save. Response model: NotificationModels.NotificationOperationSegmentSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-save ### notifications.segmentPreviewTyped(input) Evaluate draft audience rules without saving, sending or changing consent. Permission: notifications.segment-preview. Response model: NotificationModels.NotificationOperationSegmentMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-preview ### notifications.recipientImportPreviewTyped(input) Validate up to 500 recipient rows and explicit destination consent without changing recipients or sending messages. Permission: notifications.recipient-import-preview. Response model: NotificationModels.NotificationOperationRecipientImportPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import-preview ### notifications.inboxExportTyped(input) Owner-only scoped CSV of in-app creation, read and archive timestamps. Excludes titles, bodies, links and action content. Follow nextCursor to export the remaining records. Permission: notifications.inbox-export. Response model: NotificationModels.NotificationOperationInboxExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/inbox-export ### notifications.deliveryExportTyped(input) Owner-only scoped CSV of external handoff outcomes and earliest recorded delivery/read/bounce/complaint/failure timestamps. Empty receipt fields mean no evidence recorded. Accepted means provider acceptance, not confirmed delivery or read. Excludes content, addresses, credentials and attachment details; follow nextCursor with the same filters. Permission: notifications.delivery-export. Response model: NotificationModels.NotificationOperationInboxExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/delivery-export ### notifications.recipientExportTyped(input) Export scoped profile and destination CSV pages; preserves every address and explicit consent, excludes bearer tokens. Follow nextCursor for the remaining audience. Permission: notifications.recipient-export. Response model: NotificationModels.NotificationOperationRecipientExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-export ### notifications.recipientImportTyped(input) Atomically upsert validated recipient profiles and explicit destination consent; never sends messages or clears suppression. Permission: notifications.recipient-import. Response model: NotificationModels.NotificationOperationRecipientImportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import ### notifications.recipientBulkUpsertTyped(input) Atomically upsert up to 500 scoped profiles with optional explicit destination consent. Permission: notifications.recipient-bulk-upsert. Response model: NotificationModels.NotificationOperationRecipientImportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-bulk-upsert ### notifications.groupTyped(input) Read a scoped group and its current revision. Permission: notifications.group. Response model: NotificationModels.NotificationOperationGroupSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group ### notifications.groupMembersTyped(input) Page through scoped members or recipients available to add, with optional name or customer ID search. Permission: notifications.group-members. Response model: NotificationModels.NotificationOperationSegmentMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members ### notifications.groupsTyped(input) List scoped recipient groups and membership counts. Permission: notifications.groups. Response model: NotificationModels.NotificationOperationGroupsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/groups ### notifications.groupSaveTyped(input) Create or revise a scoped recipient group. Permission: notifications.group-save. Response model: NotificationModels.NotificationOperationGroupSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-save ### notifications.groupMembersUpdateTyped(input) Atomically add and remove scoped recipients without changing consent. Permission: notifications.group-members-update. Response model: NotificationModels.NotificationOperationGroupSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members-update ### notifications.whatsappSendTyped(input) Reserve the notification processing fee from Service Balance and queue approved content through a scoped registered business number. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance; consent and provider approval still apply. Permission: notifications.whatsapp-send. Response model: NotificationModels.NotificationOperationEmailSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/whatsapp-send ### notifications.smsSendTyped(input) Reserve the notification processing fee from Service Balance and queue approved content through a verified sender. Select connectionId or useDefaultProvider=true. Optional backupConnectionIds retain order; the reserved managed backup requires allowPaidManagedBackup=true and maxManagedCostMinor. Backups follow confirmed pre-submission failures only. Retries retain reviewed routes; managed delivery uses Service Balance. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance. Permission: notifications.sms-send. Response model: NotificationModels.NotificationOperationEmailSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-send ### notifications.mobileConnectionsTyped(input) Read scoped mobile provider setup without private credentials. Permission: notifications.mobile-connections. Response model: NotificationModels.NotificationOperationMobileConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connections ### notifications.emailConnectionsTyped(input) Read scoped Email provider metadata, form revision and delivery revision without SMTP credentials. Permission: notifications.email-connections. Response model: NotificationModels.NotificationOperationEmailConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connections ### notifications.emailConnectionSaveTyped(input) Configure authenticated customer SMTP (TLS on port 465 or STARTTLS on 587) or an assigned managed Email sender. Supply the current revision when editing; omit smtpPassword to retain it. Mode cannot change. Credentials are never returned. Permission: notifications.email-connection-save. Response model: NotificationModels.NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connection-save ### notifications.externalSmsConnectionsTyped(input) Read scoped TLS SMPP provider metadata and country compliance settings without credentials. Permission: notifications.external-sms-connections. Response model: NotificationModels.NotificationOperationExternalSmsConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connections ### notifications.smsProviderDefaultTyped(input) Read the organization’s SMS default provider mode, identity and revision without credentials. Permission: notifications.sms-provider-default. Response model: NotificationModels.NotificationOperationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default ### notifications.smsProviderDefaultSaveTyped(input) Choose managed delivery or an active compliant external SMS provider. Supply the current settings revision; changing this default never alters existing queued sends. Permission: notifications.sms-provider-default-save. Response model: NotificationModels.NotificationOperationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default-save ### notifications.brandingTyped(input) Read the display name, brand colour and logo shown on hosted preference pages and the recipient inbox for the organization. Permission: notifications.branding. Response model: NotificationModels.NotificationOperationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding ### notifications.brandingSaveTyped(input) Set the display name, brand colour (#rrggbb) and logo (PNG, JPEG or WebP up to 256 KiB, base64) shown to recipients. Omit a field to keep it, send null to clear it, and supply the current revision. Permission: notifications.branding-save. Response model: NotificationModels.NotificationOperationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding-save ### notifications.emailDesignsTyped(input) List published Email-studio designs a template's Email content can use, with the variables each needs. Saving a template with email.design {templateId, versionId} copies that exact version in. Permission: notifications.email-designs. Response model: NotificationModels.NotificationOperationEmailDesignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-designs ### notifications.customDomainsTyped(input) List hostnames for hosted preference pages with their DNS TXT verification record, CNAME target and verification status. Permission: notifications.custom-domains. Response model: NotificationModels.NotificationOperationCustomDomainsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domains ### notifications.customDomainSaveTyped(input) Add a hostname for hosted preference pages. It routes only after verification. Platform, local and IP hosts are refused. Permission: notifications.custom-domain-save. Response model: NotificationModels.NotificationOperationCustomDomainSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-save ### notifications.customDomainVerifyTyped(input) Check the hostname's _wrnexus-notifications TXT record. A host can be verified by only one organisation; unverified hosts stay pending with a reason. Permission: notifications.custom-domain-verify. Response model: NotificationModels.NotificationOperationCustomDomainSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-verify ### notifications.customDomainRemoveTyped(input) Stop serving hosted preference pages on a hostname. Links already sent with that host stop working. Permission: notifications.custom-domain-remove. Response model: NotificationModels.NotificationOperationCustomDomainRemoveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-remove ### notifications.externalSmsConnectionSaveTyped(input) Save a TLS SMPP connection and supported country compliance profile. Supply the current revision when editing; omitted credentials and compliance are retained. Credentials are never returned. Permission: notifications.external-sms-connection-save. Response model: NotificationModels.NotificationOperationExternalSmsConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connection-save ### notifications.mobileConnectionSaveTyped(input) Configure a customer-owned FCM/APNs connection or an explicitly provisioned managed application. Permission: notifications.mobile-connection-save. Response model: NotificationModels.NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connection-save ### notifications.mobilePushSendTyped(input) Freeze device targets and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate by default. Permission: notifications.mobile-push-send. Response model: NotificationModels.NotificationOperationPushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-send ### notifications.pushTemplateSendTyped(input) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.push-template-send. Response model: NotificationModels.NotificationOperationPushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-template-send ### notifications.mobilePushTemplateSendTyped(input) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.mobile-push-template-send. Response model: NotificationModels.NotificationOperationPushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-template-send ### notifications.mobilePushRequestTyped(input) Read retained scoped mobile submission outcomes. Permission: notifications.mobile-push-request. Response model: NotificationModels.NotificationOperationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-request ### notifications.pushSendTyped(input) Freeze the active target devices and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate without provider contact. Permission: notifications.push-send. Response model: NotificationModels.NotificationOperationPushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-send ### notifications.pushRequestTyped(input) Read the retained outcomes for a scoped web push request. Permission: notifications.push-request. Response model: NotificationModels.NotificationOperationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-request ### notifications.pushConnectionsTyped(input) Read scoped web push connections and public subscription keys. Permission: notifications.push-connections. Response model: NotificationModels.NotificationOperationPushConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connections ### notifications.pushConnectionSaveTyped(input) Configure a managed or customer-owned VAPID pair. Private credentials are write-only and encrypted. Permission: notifications.push-connection-save. Response model: NotificationModels.NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connection-save ### notifications.templatesTyped(input) List scoped in-app template drafts. Permission: notifications.templates. Response model: NotificationModels.NotificationOperationTemplatesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/templates ### notifications.templateTyped(input) Read a draft and retained version history. Permission: notifications.template. Response model: NotificationModels.NotificationOperationTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template ### notifications.templateSaveTyped(input) Save a draft with an optimistic revision check. Approval policy is fixed on creation. Permission: notifications.template-save. Response model: NotificationModels.NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-save ### notifications.templatePublishTyped(input) Freeze a draft revision; approval-enabled templates wait for explicit approval. Permission: notifications.template-publish. Response model: NotificationModels.NotificationOperationTemplatePublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-publish ### notifications.templateApproveTyped(input) Approve and publish an immutable submitted version. Permission: notifications.template-approve. Response model: NotificationModels.NotificationOperationTemplatePublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-approve ### notifications.templatePreviewTyped(input) Render content without sending or charging units. Permission: notifications.template-preview. Response model: NotificationModels.NotificationOperationTemplatePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-preview ### notifications.templateSendTyped(input) Send the latest published version or an exact published version; retries retain their original version. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.template-send. Response model: NotificationModels.NotificationOperationTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-send ### notifications.recipientPreferenceLinkTyped(input) Issue short-lived, revocable access to the hosted preference page only. Permission: notifications.recipient-preference-link. Response model: NotificationModels.NotificationOperationRecipientPreferenceLinkResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-preference-link ### notifications.recipientTyped(input) Read a scoped recipient, preferences and in-app suppression. Permission: notifications.recipient. Response model: NotificationModels.NotificationOperationRecipientResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient ### notifications.destinationSaveTyped(input) Add or update a scoped email or phone destination with explicit consent and reversible delivery access. Permission: notifications.destination-save. Response model: NotificationModels.NotificationOperationDestinationSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/destination-save ### notifications.emailSendTyped(input) Queue Email using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive; senderKey is required only for legacy routing. Admission pins provider identity on replay. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.email-send. Response model: NotificationModels.NotificationOperationEmailSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-send ### notifications.emailTemplateSendTyped(input) Queue an exact or latest published Email template using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive. Retries retain the original version and provider identity. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.email-template-send. Response model: NotificationModels.NotificationOperationEmailTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-template-send ### notifications.dispatchesTyped(input) Read scoped channel dispatch states, including unknown acceptance and simulations. Permission: notifications.dispatches. Response model: NotificationModels.NotificationOperationDispatchesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/dispatches ### notifications.recipientSuppressionTyped(input) Pause or resume in-app delivery with an audit reason. Permission: notifications.recipient-suppression. Response model: NotificationModels.NotificationOperationRecipientSuppressionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-suppression ### notifications.recipientsTyped(input) List permitted organization recipients. Permission: notifications.recipients. Response model: NotificationModels.NotificationOperationRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipients ### notifications.recipientUpsertTyped(input) Create or update a customer recipient. Permission: notifications.recipient-upsert. Response model: NotificationModels.NotificationOperationRecipientUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-upsert ### notifications.recipientTokenTyped(input) Issue a short-lived token for an existing recipient's inbox. Permission: notifications.recipient-token. Response model: NotificationModels.NotificationOperationRecipientTokenResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token ### notifications.recipientTokenRevokeTyped(input) Invalidate every outstanding token for one recipient. Permission: notifications.recipient-token-revoke. Response model: NotificationModels.NotificationOperationRecipientTokenRevokeResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token-revoke ### notifications.sendTyped(input) Insert an in-app notification and charge the notification processing fee from Service Balance. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.send. Response model: NotificationModels.NotificationOperationSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/send ### notifications.deliveriesTyped(input) Read permitted recent in-app deliveries. Permission: notifications.deliveries. Response model: NotificationModels.NotificationOperationDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/deliveries ### notifications.unitsTyped(input) Read Service Balance billing, current notification processing rates and usage. The legacy units field reports affordable, pending and processed notification counts. Permission: notifications.units. Response model: NotificationModels.NotificationOperationUnitsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/units ## Send input fields ### SmsSend - destination: Required recipient phone number with country code. - templateName, senderName: Required approved template name and verified sender name from your SMS configuration. - variables: Optional Record matching the template variables. - idempotencyKey: Optional stable identifier for this business send. Reuse it when recovering the same request. ### EmailSend - to, senderKey: Required recipient email and configured verified sender key. - fromName, subject: Optional sender display name and subject. A saved template can supply content. - htmlBody, textBody: Optional HTML and plain text content; supply content or a templateId. - templateId: Optional saved email template ID. Email has no guaranteed idempotency input. ### WhatsAppSend - to, kind: Required recipient and one of text, template, interactive, media, location, contacts or reaction. - number_id, reply_to, idempotency_key: Optional configured sending number, message being replied to, and stable business-send identifier. - text: Text content for kind: text. - template_id, body_values: Approved template ID and ordered string values for kind: template. - header_text, code, coupon_code, offer_expires_at, url_suffix: Template-specific header, authentication, coupon/offer and dynamic URL values. Supply only fields supported by the configured template. - media_kind, media_url, media_id, filename, caption: Hosted media reference and optional presentation fields. media_kind is image, video, audio, document or sticker. - latitude, longitude, location_name, address: Location coordinates as strings, with optional name and address. - contacts: Array of contacts with required name and phone; optional email and company. - contact_name, contact_phone, contact_email, contact_company: Fields for a single contact instead of the contacts array. - reaction_to, emoji: Message to react to and the reaction emoji. - interactive_type, body, header, footer: Interactive variant (buttons, list, link, product, products or flow) and display text. - buttons, rows, menu_button, section_title: String arrays and labels for interactive buttons or lists, matching the channel's configured format. - label, url, product_id, product_ids, flow_id, cta: Variant-specific link label/URL, catalog product IDs or flow ID and call-to-action. ## All webhook event types ### sms - WRNexusEvent.SMS_QUEUED — sms.message.queued: Accepted into the sending queue; not a delivery receipt. - WRNexusEvent.SMS_SUBMITTED — sms.message.submitted: Submitted to the SMS provider; delivery is still pending. - WRNexusEvent.SMS_DELIVERED — sms.message.delivered: The SMS delivery receipt reports delivery. - WRNexusEvent.SMS_FAILED — sms.message.failed: Sending or delivery failed; inspect the event and message details. ### whatsapp - WRNexusEvent.WHATSAPP_SENT — whatsapp.message.sent: WhatsApp reports the outbound message as sent. - WRNexusEvent.WHATSAPP_DELIVERED — whatsapp.message.delivered: WhatsApp reports delivery to the recipient. - WRNexusEvent.WHATSAPP_READ — whatsapp.message.read: WhatsApp reports a read receipt when available. - WRNexusEvent.WHATSAPP_FAILED — whatsapp.message.failed: WhatsApp reports a failed outbound message. - WRNexusEvent.WHATSAPP_RECEIVED — whatsapp.message.received: An inbound WhatsApp message was received. - WRNexusEvent.WHATSAPP_TEMPLATE_UPDATED — whatsapp.template.updated: The platform recorded a template update. - WRNexusEvent.WHATSAPP_ORDER_PAID — whatsapp.order.paid: The platform recorded a paid WhatsApp order. ### email - WRNexusEvent.EMAIL_QUEUED — email.message.queued: Email is queued for sending. - WRNexusEvent.EMAIL_SUBMITTED — email.message.submitted: Accepted by the mail server; this does not prove inbox receipt. - WRNexusEvent.EMAIL_FAILED — email.message.failed: Email sending failed. - WRNexusEvent.EMAIL_TRACKING_UNKNOWN — email.message.tracking_unknown: The platform cannot determine a tracked delivery state. - WRNexusEvent.EMAIL_OPENED — email.message.opened: An email tracking open was recorded; tracking may be affected by mail clients. - WRNexusEvent.EMAIL_CLICKED — email.message.clicked: A tracked email link click was recorded. - WRNexusEvent.EMAIL_BOUNCED — email.message.bounced: A bounce was recorded. - WRNexusEvent.EMAIL_COMPLAINED — email.message.complained: A spam complaint was recorded. - WRNexusEvent.EMAIL_UNSUBSCRIBED — email.message.unsubscribed: An unsubscribe was recorded. ### notifications - NotificationEvent.CAMPAIGN_RUN_COMPLETED — notifications.campaign.run.completed: Campaign occurrence completed - NotificationEvent.CAMPAIGN_RUN_EXPIRED — notifications.campaign.run.expired: Campaign occurrence expired - NotificationEvent.CAMPAIGN_RUN_CANCELLED — notifications.campaign.run.cancelled: Campaign occurrence cancelled - NotificationEvent.CAMPAIGN_SCHEDULED — notifications.campaign.scheduled: Campaign scheduled - NotificationEvent.CAMPAIGN_PAUSED — notifications.campaign.paused: Campaign paused - NotificationEvent.CAMPAIGN_RESUMED — notifications.campaign.resumed: Campaign resumed - NotificationEvent.CAMPAIGN_CANCELLED — notifications.campaign.cancelled: Campaign cancelled - NotificationEvent.CAMPAIGN_RUN_CREATED — notifications.campaign.run.created: Campaign occurrence created - NotificationEvent.CAMPAIGN_RUN_TARGETS_FROZEN — notifications.campaign.run.targets.frozen: Campaign delivery targets frozen - NotificationEvent.CAMPAIGN_AUDIENCE_CAPTURED — notifications.campaign.audience.captured: Campaign send-time audience captured - NotificationEvent.CAMPAIGN_SAVED — notifications.campaign.saved: Campaign draft saved - NotificationEvent.CAMPAIGN_SUBMITTED — notifications.campaign.submitted: Campaign version submitted for approval - NotificationEvent.WORKFLOW_SAVED — notifications.workflow.saved: Workflow draft saved - NotificationEvent.WORKFLOW_SUBMITTED — notifications.workflow.submitted: Workflow version submitted for approval - NotificationEvent.WORKFLOW_PUBLISHED — notifications.workflow.published: Workflow version published - NotificationEvent.WORKFLOW_EVENT_RECORDED — notifications.workflow.event.recorded: Workflow event recorded - NotificationEvent.WORKFLOW_RUN_STARTED — notifications.workflow.run.started: Workflow run started - NotificationEvent.WORKFLOW_RUN_CANCELLED — notifications.workflow.run.cancelled: Workflow run cancelled - NotificationEvent.WORKFLOW_RUN_COMPLETED — notifications.workflow.run.completed: Workflow run completed - NotificationEvent.WORKFLOW_RUN_FAILED — notifications.workflow.run.failed: Workflow run failed - NotificationEvent.WORKFLOW_STEP_COMPLETED — notifications.workflow.step.completed: Workflow step completed - NotificationEvent.WORKFLOW_SEND_ADMITTED — notifications.workflow.send.admitted: Workflow send admitted - NotificationEvent.CAMPAIGN_PUBLISHED — notifications.campaign.published: Campaign version prepared for launch - NotificationEvent.GROUP_SAVED — notifications.group.saved: Recipient group saved - NotificationEvent.GROUP_MEMBERS_UPDATED — notifications.group.members.updated: Recipient group members updated - NotificationEvent.SEGMENT_SAVED — notifications.segment.saved: Recipient segment saved - NotificationEvent.MESSAGE_QUEUED — notifications.message.queued: Notification queued - NotificationEvent.MESSAGE_ACCEPTED — notifications.message.accepted: Notification accepted by provider or inbox - NotificationEvent.MESSAGE_REJECTED — notifications.message.rejected: Notification rejected before acceptance - NotificationEvent.MESSAGE_UNKNOWN — notifications.message.unknown: Notification acceptance needs reconciliation - NotificationEvent.MESSAGE_CANCELLED — notifications.message.cancelled: Unsent notification cancelled - NotificationEvent.MESSAGE_SIMULATED — notifications.message.simulated: Test notification simulated - NotificationEvent.MESSAGE_RECONCILED — notifications.message.reconciled: Notification acceptance reconciled - NotificationEvent.MESSAGE_RESUMED — notifications.message.resumed: Notification submission resumed - NotificationEvent.CONNECTION_UPDATED — notifications.connection.updated: Notification connection updated - NotificationEvent.DEVICE_REGISTERED — notifications.device.registered: Notification device registered - NotificationEvent.DEVICE_ROTATED — notifications.device.rotated: Notification device token rotated - NotificationEvent.DEVICE_UNREGISTERED — notifications.device.unregistered: Notification device unregistered - NotificationEvent.DESTINATION_UPDATED — notifications.destination.updated: Recipient destination updated - NotificationEvent.PREFERENCES_UPDATED — notifications.preferences.updated: Recipient preferences updated - NotificationEvent.TEMPLATE_PUBLISHED — notifications.template.published: Notification template published # Python SDK 0.4.1 Human guide: https://docs.wrnexus.com/sdk?language=python&version=0.4.1 ## 1. How to install Python 3.11+. No runtime package dependencies. Use this published version from the WRNexus registry. Downloads are public; publishing requires authentication. ### Package installation ``` python -m pip install wrnexus-sdk==0.4.1 --index-url https://registry.workroot.in/repository/pypi-hosted/simple/ ``` ## 2. Get an API key Open Account → API keys, create a key and choose the channel.operation scopes your integration needs. Wallet reads require sms.balance, whatsapp.balance or email.balance; existing keys do not automatically gain them. Store the key in your server secret configuration. Account membership, allowed IPs, verified senders/templates and available balance still apply. Sends can use your account balance. Keep keys out of browser/mobile bundles and logs. ## 3. How to configure Set the server environment before starting your app. The SDK does not load .env files. An explicit key/endpoint takes precedence; the endpoint defaults to https://api.wrnexus.com. Timeout defaults to 30 seconds; optional read retries range from 0 to 3. HTTPS is required except literal loopback, and redirects are rejected. ### Server environment ``` WRNEXUS_API_KEY=your-api-key WRNEXUS_API_ENDPOINT=https://api.wrnexus.com WRNEXUS_WEBHOOK_SECRET=your-webhook-signing-secret ``` ### Client options ``` client = WRNexus(timeout=30, read_retries=0) # Explicit api_key and endpoint override server environment. ``` ## 4. How to initialize Create one client for your server integration. Initialization configures it; network requests begin when you call an operation. ### Create client ``` from wrnexus import WRNexus client = WRNexus() # reads server environment ``` ## 5. How to use: code examples Each snippet reuses the initialized client. Replace illustrative recipients, templates and senders with your account's configuration. WhatsApp supports all current text/template/media/interactive/location/contact/reaction inputs. Email submitted means mail-server acceptance, not proof of inbox delivery. All channel balances read the same organization Service Balance; never sum them. Amounts are integer currency minor units (INR 5021 is ₹50.21), accompanied by currency, reserved amount and last update. ### SMS ``` sent = client.sms.send({ "destination": "919000000000", "templateName": "your-approved-template", "senderName": "your-verified-sender", "variables": {"variable1": "Ajay"}, "idempotencyKey": "order-123-sms", }) status = client.sms.check_status(sent["messageId"]) details = client.sms.details(sent["messageId"]) ``` ### WhatsApp ``` sent = client.whatsapp.send({ "to": "919000000000", "kind": "template", "template_id": "your-approved-template-id", "body_values": ["Ajay"], "idempotency_key": "order-123-whatsapp", }) ``` ### Email ``` sent = client.email.send({ "to": "recipient@example.com", "senderKey": "your-verified-sender-key", "subject": "Your order", "textBody": "Your order has been received.", }) ``` ### Balance and reads ``` wallet = client.balance("sms") print(wallet["balance"]["availableMinor"], wallet["balance"]["currency"]) rows = client.sms.list(limit=20, status="delivered") for message in rows["messages"]: print(message["id"], message["status"]) ``` ## 6. All functions and response models Inputs and responses are exported TypedDicts. Preserve the API's camelCase/snake_case wire names when indexing dictionaries. Optional fields use NotRequired, nullable fields use None, and DatabaseInteger is int | str. Python integers retain exact precision. WRNexusError exposes code, status and request_id. Requests are synchronous. All operations accept cancel=threading.Event(); cancellation is checked before requests and during retry waits, while an in-flight urllib request uses its socket timeout. Sync and async webhook callbacks are supported and awaited. Read retries apply to HTTP 429/502/503/504, and sends never retry automatically. Reuse the original SMS/WhatsApp idempotency key only when recovering the same send. Email has no guaranteed idempotency input. Provider error text and your API key are excluded from SDK error messages. Response models include BalanceResponse / ServiceBalance, SmsSendResponse, WhatsAppSendResponse, EmailSendResponse, StatusResponse, MessagesResponse, TemplatesResponse, SmsSendersResponse and channel message/template rows. Send fee/replay fields can be omitted; nullable provider/error/receipt fields remain nullable. ## 7. Set up webhooks Serve your receiver at a public HTTPS route and register that exact URL and matching signing secret in Account → Webhooks. Select events, then use Send test. The signing secret is separate from your API key. SDK initialization does not create a public server or register the webhook. Keep untouched body bytes for verification. Default tolerance is 300 seconds and body limit is 1 MiB. Adapters acknowledge with 200 after callbacks finish, reject signatures with 401, oversized bodies with 413 and non-POST requests with 405; callback failures receive sanitized 500 responses. ### Receiver and callbacks ``` import os from wrnexus import WRNexusWebhook, WRNexusEvent hook = WRNexusWebhook( "https://your-domain.example/webhooks/wrnexus", os.environ["WRNEXUS_WEBHOOK_SECRET"], ) def delivered(data, event): # Persist event["id"] with the business transaction. pass hook.on(WRNexusEvent.SMS_DELIVERED, delivered) hook.on_any(lambda event_type, data, event: print(event_type)) app = hook.wsgi_app() # mount this at the registered HTTP route # For async HTTP routers: app = hook.asgi_app() ``` ## 8. Webhook types, functions and usage Envelope: id, event, app, createdAt and event-specific data. Validate/narrow each event's data before business use. Specific callbacks run before central callbacks and complete sequentially. Central callbacks also receive future valid events and webhook.test. Persist event IDs with your business transaction or durable queue to prevent duplicate effects across retries, replicas and restarts. The SDK does not provide persistent deduplication; earlier callbacks can repeat when a later callback fails. Incoming secret headers are never trusted. - client.webhook(url, secret, **options) / WRNexusWebhook(url, secret, **options): Create a receiver; optional tolerance_seconds=300 and max_body_bytes=1048576. - hook.url: Public URL to register in Account → Webhooks. - on(type, callback) / off(type, callback): Add/remove the same (data, event) callback; returns the receiver. - on_any(callback) / off_any(callback): Add/remove the same (type, data, event) callback for every verified event; returns the receiver. - wsgi_app() / asgi_app(): Return HTTP adapters with streaming/body limits. ASGI is for HTTP routes, not lifespan handling. - dispatch(raw_bytes, headers) / await dispatch_async(raw_bytes, headers): Verify and invoke callbacks sequentially. Use the async method inside an event loop. - verify_webhook(raw_bytes, headers, secret, tolerance_seconds=300, now=None): Verify without callbacks; optional now is Unix seconds for deterministic testing. ## 9. Notifications preview All 98 Notifications gateway operations have typed inputs/results: recipients, destinations, groups, segments, templates, six send channels, campaigns, workflows, connections, exports and units. This is a preview API; native-device and production delivery verification remain separate rollout requirements. Notifications methods require a gateway deployment that enables the 2026-10-09.v55 preview contract. Package installation does not enable those routes in a deployment; configure endpoint explicitly when integrating against your preview gateway. Organization and workspace scope come from the API key. Do not send environment or organization overrides. Sends never retry automatically; preserve the same idempotency key when recovering an ambiguous request. Models are TypedDict aliases in wrnexus.notification_models. Template preview overloads infer Email HTML/text, carrier mappings, or default in-app title/body from previewChannel. Required nullable fields retain null. CSV rejection errors expose at most 1,000 validated row/column/code issues, never raw cell values. The 41 Notifications constants are separate from the existing 20 messaging constants; use the same signed webhook helpers and durable event deduplication. ### Create a recipient using typed models ``` from wrnexus import WRNexus, NotificationEvent notifications = WRNexus().notifications() recipient = notifications.recipient_upsert({"customerId": "customer-42", "name": "Asha"}) print(recipient["recipient"]["id"]) ``` ## Social: Threads image approval Use the existing Account connection and a saved draft with one clean JPEG. This request creates a pending review only; decision and queue require their own operation grants. Keep API keys server-side, preserve explicit consent and the exact request key, and never automatically retry a write. ``` from wrnexus import WRNexus from wrnexus.social import ThreadsReview client = WRNexus() # server-side WRNEXUS_API_KEY threads: ThreadsReview = {"mediaTransfer": True} review = client.social.in_workspace("your-workspace-id").request_review( "your-post-id", revision=2, account_ids=["selected-threads-account-id"], scheduled_at=None, timezone="Asia/Kolkata", request_key="threads-image-review-001", threads=threads, ) # Pending review only: no approval or publication is performed. ``` Full Social operation reference: https://docs.wrnexus.com/reference/social ## All API functions ### client.sms.balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: sms.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/balance ### client.whatsapp.balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: whatsapp.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/balance ### client.email.balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: email.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/email/balance ### client.sms.send(input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: sms.send. Response model: SmsSendResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/send ### client.sms.check_status(id) Read the current status and status record for a message ID returned by send(). Permission: sms.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/status ### client.sms.details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: sms.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/details ### client.sms.list(limit=None, status=None) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: sms.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/list ### client.sms.templates() Read templates available to the organization. Use a configured template when sending. Permission: sms.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/templates ### client.sms.senders() Read SMS sender IDs available to the organization. Permission: sms.senders. Response model: SmsSendersResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/senders ### client.whatsapp.send(input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: whatsapp.send. Response model: WhatsAppSendResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/send ### client.whatsapp.check_status(id) Read the current status and status record for a message ID returned by send(). Permission: whatsapp.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/status ### client.whatsapp.details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: whatsapp.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/details ### client.whatsapp.list(limit=None, status=None) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: whatsapp.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/list ### client.whatsapp.templates() Read templates available to the organization. Use a configured template when sending. Permission: whatsapp.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/templates ### client.email.send(input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: email.send. Response model: EmailSendResponse. HTTP reference: https://docs.wrnexus.com/reference/email/send ### client.email.send_request(requestKey) Read the original actor-scoped saved send outcome without resubmitting. Keep the original key; running or uncertain requests require review. Permission: email.send-request. Response model: EmailSendRequest. HTTP reference: https://docs.wrnexus.com/reference/email/send-request ### client.email.check_status(id) Read the current status and status record for a message ID returned by send(). Permission: email.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/status ### client.email.details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: email.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/details ### client.email.list(limit=None, status=None) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: email.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/list ### client.email.templates() Read templates available to the organization. Use a configured template when sending. Permission: email.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/templates ### notifications.apps(data, cancel=…) List apps and their configured channel routes. Permission: notifications.apps. Response model: NotificationOperationAppsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/apps ### notifications.app_save(data, cancel=…) Group Android, iOS and channel connections in one app. Permission: notifications.app-save. Response model: NotificationOperationAppSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-save ### notifications.app_send(data, cancel=…) Admit selected channels together with retry-safe billing. Permission: notifications.app-send. Response model: NotificationOperationAppSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-send ### notifications.push_analytics(data, cancel=…) Provider submission and SDK-observed device receipt, opening and reading. Permission: notifications.push-analytics. Response model: NotificationOperationPushAnalyticsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-analytics ### notifications.workflow_runs(data, cancel=…) Browse scoped workflow run status without event payloads. Permission: notifications.workflow-runs. Response model: NotificationOperationWorkflowRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-runs ### notifications.workflow_run(data, cancel=…) Read a retained run and its event/recipient snapshot. Permission: notifications.workflow-run. Response model: NotificationOperationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run ### notifications.workflow_steps(data, cancel=…) Browse durable node outcomes and linked send processing. Permission: notifications.workflow-steps. Response model: NotificationOperationWorkflowStepsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-steps ### notifications.workflow_run_cancel(data, cancel=…) Cancel the current revision and stop linked pending work; accepted and uncertain provider submissions remain retained. Permission: notifications.workflow-run-cancel. Response model: NotificationOperationWorkflowRunCancelResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run-cancel ### notifications.workflow_event(data, cancel=…) Record an idempotent recipient event and retain matching published workflow runs. Records a correlation key for event processing; omitted keys use the recipient ID. Permission: notifications.workflow-event. Response model: NotificationOperationWorkflowEventResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-event ### notifications.workflows(data, cancel=…) Browse scoped workflow drafts and active versions. Permission: notifications.workflows. Response model: NotificationOperationWorkflowsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflows ### notifications.workflow(data, cancel=…) Read a scoped workflow draft. Permission: notifications.workflow. Response model: NotificationOperationWorkflowResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow ### notifications.workflow_versions(data, cancel=…) Browse retained workflow definitions and approval state. Permission: notifications.workflow-versions. Response model: NotificationOperationWorkflowVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-versions ### notifications.workflow_version(data, cancel=…) Read an immutable retained workflow definition. Permission: notifications.workflow-version. Response model: NotificationOperationWorkflowVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-version ### notifications.workflow_save(data, cancel=…) Create or revise a typed workflow graph. Send nodes support config.delivery.urgent=true only with transactional published content. Delivery requires the published version creator's active urgent permission and shared hourly allowance. Does not start runs. Permission: notifications.workflow-save. Response model: NotificationOperationWorkflowSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-save ### notifications.workflow_publish(data, cancel=…) Retain a draft revision and its pinned templates; required approval stays pending. Does not start runs. Permission: notifications.workflow-publish. Response model: NotificationOperationWorkflowPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-publish ### notifications.workflow_approve(data, cancel=…) Approve the exact retained version without replacing a newer active revision. Permission: notifications.workflow-approve. Response model: NotificationOperationWorkflowApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-approve ### notifications.campaign_deliveries(data, cancel=…) Page through a scoped occurrence's per-recipient/channel delivery ledger, status, units and output identity. Permission: notifications.campaign-deliveries. Response model: NotificationOperationCampaignDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-deliveries ### notifications.campaign_schedules(data, cancel=…) Page through scoped schedule history for a campaign, including cancelled versions. Permission: notifications.campaign-schedules. Response model: NotificationOperationCampaignSchedulesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedules ### notifications.campaign_schedule_create(data, cancel=…) Register an approved immutable campaign version and capture schedule-time audience. Occurrence materialization and delivery use separate workers. Permission: notifications.campaign-schedule-create. Response model: NotificationOperationCampaignScheduleCreateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-create ### notifications.campaign_schedule_control(data, cancel=…) Revision-checked controls stop future occurrence creation and change queued runs. Already submitted deliveries require separate reconciliation. Permission: notifications.campaign-schedule-control. Response model: NotificationOperationCampaignScheduleControlResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-control ### notifications.campaign_schedule(data, cancel=…) Read scoped schedule state, revision, next occurrence and saved advisory estimate. Permission: notifications.campaign-schedule. Response model: NotificationOperationCampaignScheduleResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule ### notifications.campaign_runs(data, cancel=…) Page through scoped persisted occurrences and audience capture state. Permission: notifications.campaign-runs. Response model: NotificationOperationCampaignRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-runs ### notifications.campaign_estimate(data, cancel=…) Estimate current consent and policy eligible contacts/devices and unit bounds without reserving or sending. Advisory only; managed carrier quotes and transport readiness are evaluated separately. Permission: notifications.campaign-estimate. Response model: NotificationOperationCampaignEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-estimate ### notifications.campaign_audience_preview(data, cancel=…) Count and page current scoped campaign membership. This does not capture recipients or imply consent, channel eligibility, units or carrier costs. Permission: notifications.campaign-audience-preview. Response model: NotificationOperationCampaignAudiencePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-audience-preview ### notifications.campaign_schedule_preview(data, cancel=…) Resolve the next local-calendar campaign times without saving, scheduling or sending. Explicit UTC/offset cutoff; monthly dates clamp, repeated times run once and skipped times shift forward. Permission: notifications.campaign-schedule-preview. Response model: NotificationOperationCampaignSchedulePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-preview ### notifications.campaigns(data, cancel=…) Page through scoped campaign drafts. Publishing prepares immutable versions; execution is separate. Permission: notifications.campaigns. Response model: NotificationOperationCampaignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaigns ### notifications.campaign(data, cancel=…) Read a scoped campaign configuration and revision. Permission: notifications.campaign. Response model: NotificationOperationCampaignResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign ### notifications.campaign_version(data, cancel=…) Read immutable campaign configuration and publication/approval state. Permission: notifications.campaign-version. Response model: NotificationOperationCampaignVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version ### notifications.campaign_versions(data, cancel=…) Browse scoped retained campaign versions and approval state. Permission: notifications.campaign-versions. Response model: NotificationOperationCampaignVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-versions ### notifications.campaign_version_estimate(data, cancel=…) Review current advisory policy and unit counts and future dates using immutable version settings. Does not reserve, approve, schedule or send. Permission: notifications.campaign-version-estimate. Response model: NotificationOperationCampaignVersionEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version-estimate ### notifications.campaign_save(data, cancel=…) Create or revise validated audience, schedule, delivery, limits and A/B settings. Optional config.delivery.urgent=true requires transactional template content. Delivery requires the scheduled sender's active urgent permission and shared hourly allowance per message/device. Does not schedule or send. Permission: notifications.campaign-save. Response model: NotificationOperationCampaignSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-save ### notifications.campaign_publish(data, cancel=…) Freeze a campaign revision and pin approved template content; required approval remains pending. Does not launch. Permission: notifications.campaign-publish. Response model: NotificationOperationCampaignPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-publish ### notifications.campaign_approve(data, cancel=…) Approve the exact immutable campaign version. Does not launch. Permission: notifications.campaign-approve. Response model: NotificationOperationCampaignApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-approve ### notifications.segments(data, cancel=…) Page through scoped dynamic recipient segments. Permission: notifications.segments. Response model: NotificationOperationSegmentsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segments ### notifications.segment(data, cancel=…) Read saved audience rules and their current revision. Permission: notifications.segment. Response model: NotificationOperationSegmentResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment ### notifications.segment_members(data, cancel=…) Evaluate saved audience rules against current scoped profiles. Dispatch still rechecks consent and delivery policy. Permission: notifications.segment-members. Response model: NotificationOperationSegmentMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-members ### notifications.segment_save(data, cancel=…) Create or revise validated dynamic audience rules. Permission: notifications.segment-save. Response model: NotificationOperationSegmentSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-save ### notifications.segment_preview(data, cancel=…) Evaluate draft audience rules without saving, sending or changing consent. Permission: notifications.segment-preview. Response model: NotificationOperationSegmentPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-preview ### notifications.recipient_import_preview(data, cancel=…) Validate up to 500 recipient rows and explicit destination consent without changing recipients or sending messages. Permission: notifications.recipient-import-preview. Response model: NotificationOperationRecipientImportPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import-preview ### notifications.inbox_export(data, cancel=…) Owner-only scoped CSV of in-app creation, read and archive timestamps. Excludes titles, bodies, links and action content. Follow nextCursor to export the remaining records. Permission: notifications.inbox-export. Response model: NotificationOperationInboxExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/inbox-export ### notifications.delivery_export(data, cancel=…) Owner-only scoped CSV of external handoff outcomes and earliest recorded delivery/read/bounce/complaint/failure timestamps. Empty receipt fields mean no evidence recorded. Accepted means provider acceptance, not confirmed delivery or read. Excludes content, addresses, credentials and attachment details; follow nextCursor with the same filters. Permission: notifications.delivery-export. Response model: NotificationOperationDeliveryExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/delivery-export ### notifications.recipient_export(data, cancel=…) Export scoped profile and destination CSV pages; preserves every address and explicit consent, excludes bearer tokens. Follow nextCursor for the remaining audience. Permission: notifications.recipient-export. Response model: NotificationOperationRecipientExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-export ### notifications.recipient_import(data, cancel=…) Atomically upsert validated recipient profiles and explicit destination consent; never sends messages or clears suppression. Permission: notifications.recipient-import. Response model: NotificationOperationRecipientImportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import ### notifications.recipient_bulk_upsert(data, cancel=…) Atomically upsert up to 500 scoped profiles with optional explicit destination consent. Permission: notifications.recipient-bulk-upsert. Response model: NotificationOperationRecipientBulkUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-bulk-upsert ### notifications.group(data, cancel=…) Read a scoped group and its current revision. Permission: notifications.group. Response model: NotificationOperationGroupResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group ### notifications.group_members(data, cancel=…) Page through scoped members or recipients available to add, with optional name or customer ID search. Permission: notifications.group-members. Response model: NotificationOperationGroupMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members ### notifications.groups(data, cancel=…) List scoped recipient groups and membership counts. Permission: notifications.groups. Response model: NotificationOperationGroupsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/groups ### notifications.group_save(data, cancel=…) Create or revise a scoped recipient group. Permission: notifications.group-save. Response model: NotificationOperationGroupSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-save ### notifications.group_members_update(data, cancel=…) Atomically add and remove scoped recipients without changing consent. Permission: notifications.group-members-update. Response model: NotificationOperationGroupMembersUpdateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members-update ### notifications.whatsapp_send(data, cancel=…) Reserve the notification processing fee from Service Balance and queue approved content through a scoped registered business number. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance; consent and provider approval still apply. Permission: notifications.whatsapp-send. Response model: NotificationOperationWhatsappSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/whatsapp-send ### notifications.sms_send(data, cancel=…) Reserve the notification processing fee from Service Balance and queue approved content through a verified sender. Select connectionId or useDefaultProvider=true. Optional backupConnectionIds retain order; the reserved managed backup requires allowPaidManagedBackup=true and maxManagedCostMinor. Backups follow confirmed pre-submission failures only. Retries retain reviewed routes; managed delivery uses Service Balance. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance. Permission: notifications.sms-send. Response model: NotificationOperationSmsSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-send ### notifications.mobile_connections(data, cancel=…) Read scoped mobile provider setup without private credentials. Permission: notifications.mobile-connections. Response model: NotificationOperationMobileConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connections ### notifications.email_connections(data, cancel=…) Read scoped Email provider metadata, form revision and delivery revision without SMTP credentials. Permission: notifications.email-connections. Response model: NotificationOperationEmailConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connections ### notifications.email_connection_save(data, cancel=…) Configure authenticated customer SMTP (TLS on port 465 or STARTTLS on 587) or an assigned managed Email sender. Supply the current revision when editing; omit smtpPassword to retain it. Mode cannot change. Credentials are never returned. Permission: notifications.email-connection-save. Response model: NotificationOperationEmailConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connection-save ### notifications.external_sms_connections(data, cancel=…) Read scoped TLS SMPP provider metadata and country compliance settings without credentials. Permission: notifications.external-sms-connections. Response model: NotificationOperationExternalSmsConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connections ### notifications.sms_provider_default(data, cancel=…) Read the organization’s SMS default provider mode, identity and revision without credentials. Permission: notifications.sms-provider-default. Response model: NotificationOperationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default ### notifications.sms_provider_default_save(data, cancel=…) Choose managed delivery or an active compliant external SMS provider. Supply the current settings revision; changing this default never alters existing queued sends. Permission: notifications.sms-provider-default-save. Response model: NotificationOperationSmsProviderDefaultSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default-save ### notifications.branding(data, cancel=…) Read the display name, brand colour and logo shown on hosted preference pages and the recipient inbox for the organization. Permission: notifications.branding. Response model: NotificationOperationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding ### notifications.branding_save(data, cancel=…) Set the display name, brand colour (#rrggbb) and logo (PNG, JPEG or WebP up to 256 KiB, base64) shown to recipients. Omit a field to keep it, send null to clear it, and supply the current revision. Permission: notifications.branding-save. Response model: NotificationOperationBrandingSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding-save ### notifications.email_designs(data, cancel=…) List published Email-studio designs a template's Email content can use, with the variables each needs. Saving a template with email.design {templateId, versionId} copies that exact version in. Permission: notifications.email-designs. Response model: NotificationOperationEmailDesignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-designs ### notifications.custom_domains(data, cancel=…) List hostnames for hosted preference pages with their DNS TXT verification record, CNAME target and verification status. Permission: notifications.custom-domains. Response model: NotificationOperationCustomDomainsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domains ### notifications.custom_domain_save(data, cancel=…) Add a hostname for hosted preference pages. It routes only after verification. Platform, local and IP hosts are refused. Permission: notifications.custom-domain-save. Response model: NotificationOperationCustomDomainSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-save ### notifications.custom_domain_verify(data, cancel=…) Check the hostname's _wrnexus-notifications TXT record. A host can be verified by only one organisation; unverified hosts stay pending with a reason. Permission: notifications.custom-domain-verify. Response model: NotificationOperationCustomDomainVerifyResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-verify ### notifications.custom_domain_remove(data, cancel=…) Stop serving hosted preference pages on a hostname. Links already sent with that host stop working. Permission: notifications.custom-domain-remove. Response model: NotificationOperationCustomDomainRemoveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-remove ### notifications.external_sms_connection_save(data, cancel=…) Save a TLS SMPP connection and supported country compliance profile. Supply the current revision when editing; omitted credentials and compliance are retained. Credentials are never returned. Permission: notifications.external-sms-connection-save. Response model: NotificationOperationExternalSmsConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connection-save ### notifications.mobile_connection_save(data, cancel=…) Configure a customer-owned FCM/APNs connection or an explicitly provisioned managed application. Permission: notifications.mobile-connection-save. Response model: NotificationOperationMobileConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connection-save ### notifications.mobile_push_send(data, cancel=…) Freeze device targets and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate by default. Permission: notifications.mobile-push-send. Response model: NotificationOperationMobilePushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-send ### notifications.push_template_send(data, cancel=…) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.push-template-send. Response model: NotificationOperationPushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-template-send ### notifications.mobile_push_template_send(data, cancel=…) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.mobile-push-template-send. Response model: NotificationOperationMobilePushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-template-send ### notifications.mobile_push_request(data, cancel=…) Read retained scoped mobile submission outcomes. Permission: notifications.mobile-push-request. Response model: NotificationOperationMobilePushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-request ### notifications.push_send(data, cancel=…) Freeze the active target devices and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate without provider contact. Permission: notifications.push-send. Response model: NotificationOperationPushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-send ### notifications.push_request(data, cancel=…) Read the retained outcomes for a scoped web push request. Permission: notifications.push-request. Response model: NotificationOperationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-request ### notifications.push_connections(data, cancel=…) Read scoped web push connections and public subscription keys. Permission: notifications.push-connections. Response model: NotificationOperationPushConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connections ### notifications.push_connection_save(data, cancel=…) Configure a managed or customer-owned VAPID pair. Private credentials are write-only and encrypted. Permission: notifications.push-connection-save. Response model: NotificationOperationPushConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connection-save ### notifications.templates(data, cancel=…) List scoped in-app template drafts. Permission: notifications.templates. Response model: NotificationOperationTemplatesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/templates ### notifications.template(data, cancel=…) Read a draft and retained version history. Permission: notifications.template. Response model: NotificationOperationTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template ### notifications.template_save(data, cancel=…) Save a draft with an optimistic revision check. Approval policy is fixed on creation. Permission: notifications.template-save. Response model: NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-save ### notifications.template_publish(data, cancel=…) Freeze a draft revision; approval-enabled templates wait for explicit approval. Permission: notifications.template-publish. Response model: NotificationOperationTemplatePublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-publish ### notifications.template_approve(data, cancel=…) Approve and publish an immutable submitted version. Permission: notifications.template-approve. Response model: NotificationOperationTemplateApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-approve ### notifications.template_preview(data, cancel=…) Render content without sending or charging units. Permission: notifications.template-preview. Response model: NotificationOperationTemplatePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-preview ### notifications.template_send(data, cancel=…) Send the latest published version or an exact published version; retries retain their original version. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.template-send. Response model: NotificationOperationTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-send ### notifications.recipient_preference_link(data, cancel=…) Issue short-lived, revocable access to the hosted preference page only. Permission: notifications.recipient-preference-link. Response model: NotificationOperationRecipientPreferenceLinkResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-preference-link ### notifications.recipient(data, cancel=…) Read a scoped recipient, preferences and in-app suppression. Permission: notifications.recipient. Response model: NotificationOperationRecipientResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient ### notifications.destination_save(data, cancel=…) Add or update a scoped email or phone destination with explicit consent and reversible delivery access. Permission: notifications.destination-save. Response model: NotificationOperationDestinationSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/destination-save ### notifications.email_send(data, cancel=…) Queue Email using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive; senderKey is required only for legacy routing. Admission pins provider identity on replay. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.email-send. Response model: NotificationOperationEmailSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-send ### notifications.email_template_send(data, cancel=…) Queue an exact or latest published Email template using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive. Retries retain the original version and provider identity. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.email-template-send. Response model: NotificationOperationEmailTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-template-send ### notifications.dispatches(data, cancel=…) Read scoped channel dispatch states, including unknown acceptance and simulations. Permission: notifications.dispatches. Response model: NotificationOperationDispatchesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/dispatches ### notifications.recipient_suppression(data, cancel=…) Pause or resume in-app delivery with an audit reason. Permission: notifications.recipient-suppression. Response model: NotificationOperationRecipientSuppressionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-suppression ### notifications.recipients(data, cancel=…) List permitted organization recipients. Permission: notifications.recipients. Response model: NotificationOperationRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipients ### notifications.recipient_upsert(data, cancel=…) Create or update a customer recipient. Permission: notifications.recipient-upsert. Response model: NotificationOperationRecipientUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-upsert ### notifications.recipient_token(data, cancel=…) Issue a short-lived token for an existing recipient's inbox. Permission: notifications.recipient-token. Response model: NotificationOperationRecipientTokenResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token ### notifications.recipient_token_revoke(data, cancel=…) Invalidate every outstanding token for one recipient. Permission: notifications.recipient-token-revoke. Response model: NotificationOperationRecipientTokenRevokeResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token-revoke ### notifications.send(data, cancel=…) Insert an in-app notification and charge the notification processing fee from Service Balance. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.send. Response model: NotificationOperationSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/send ### notifications.deliveries(data, cancel=…) Read permitted recent in-app deliveries. Permission: notifications.deliveries. Response model: NotificationOperationDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/deliveries ### notifications.units(data, cancel=…) Read Service Balance billing, current notification processing rates and usage. The legacy units field reports affordable, pending and processed notification counts. Permission: notifications.units. Response model: NotificationOperationUnitsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/units ## Send input fields ### SmsSend - destination: Required recipient phone number with country code. - templateName, senderName: Required approved template name and verified sender name from your SMS configuration. - variables: Optional Record matching the template variables. - idempotencyKey: Optional stable identifier for this business send. Reuse it when recovering the same request. ### EmailSend - to, senderKey: Required recipient email and configured verified sender key. - fromName, subject: Optional sender display name and subject. A saved template can supply content. - htmlBody, textBody: Optional HTML and plain text content; supply content or a templateId. - templateId: Optional saved email template ID. Email has no guaranteed idempotency input. ### WhatsAppSend - to, kind: Required recipient and one of text, template, interactive, media, location, contacts or reaction. - number_id, reply_to, idempotency_key: Optional configured sending number, message being replied to, and stable business-send identifier. - text: Text content for kind: text. - template_id, body_values: Approved template ID and ordered string values for kind: template. - header_text, code, coupon_code, offer_expires_at, url_suffix: Template-specific header, authentication, coupon/offer and dynamic URL values. Supply only fields supported by the configured template. - media_kind, media_url, media_id, filename, caption: Hosted media reference and optional presentation fields. media_kind is image, video, audio, document or sticker. - latitude, longitude, location_name, address: Location coordinates as strings, with optional name and address. - contacts: Array of contacts with required name and phone; optional email and company. - contact_name, contact_phone, contact_email, contact_company: Fields for a single contact instead of the contacts array. - reaction_to, emoji: Message to react to and the reaction emoji. - interactive_type, body, header, footer: Interactive variant (buttons, list, link, product, products or flow) and display text. - buttons, rows, menu_button, section_title: String arrays and labels for interactive buttons or lists, matching the channel's configured format. - label, url, product_id, product_ids, flow_id, cta: Variant-specific link label/URL, catalog product IDs or flow ID and call-to-action. ## All webhook event types ### sms - WRNexusEvent.SMS_QUEUED — sms.message.queued: Accepted into the sending queue; not a delivery receipt. - WRNexusEvent.SMS_SUBMITTED — sms.message.submitted: Submitted to the SMS provider; delivery is still pending. - WRNexusEvent.SMS_DELIVERED — sms.message.delivered: The SMS delivery receipt reports delivery. - WRNexusEvent.SMS_FAILED — sms.message.failed: Sending or delivery failed; inspect the event and message details. ### whatsapp - WRNexusEvent.WHATSAPP_SENT — whatsapp.message.sent: WhatsApp reports the outbound message as sent. - WRNexusEvent.WHATSAPP_DELIVERED — whatsapp.message.delivered: WhatsApp reports delivery to the recipient. - WRNexusEvent.WHATSAPP_READ — whatsapp.message.read: WhatsApp reports a read receipt when available. - WRNexusEvent.WHATSAPP_FAILED — whatsapp.message.failed: WhatsApp reports a failed outbound message. - WRNexusEvent.WHATSAPP_RECEIVED — whatsapp.message.received: An inbound WhatsApp message was received. - WRNexusEvent.WHATSAPP_TEMPLATE_UPDATED — whatsapp.template.updated: The platform recorded a template update. - WRNexusEvent.WHATSAPP_ORDER_PAID — whatsapp.order.paid: The platform recorded a paid WhatsApp order. ### email - WRNexusEvent.EMAIL_QUEUED — email.message.queued: Email is queued for sending. - WRNexusEvent.EMAIL_SUBMITTED — email.message.submitted: Accepted by the mail server; this does not prove inbox receipt. - WRNexusEvent.EMAIL_FAILED — email.message.failed: Email sending failed. - WRNexusEvent.EMAIL_TRACKING_UNKNOWN — email.message.tracking_unknown: The platform cannot determine a tracked delivery state. - WRNexusEvent.EMAIL_OPENED — email.message.opened: An email tracking open was recorded; tracking may be affected by mail clients. - WRNexusEvent.EMAIL_CLICKED — email.message.clicked: A tracked email link click was recorded. - WRNexusEvent.EMAIL_BOUNCED — email.message.bounced: A bounce was recorded. - WRNexusEvent.EMAIL_COMPLAINED — email.message.complained: A spam complaint was recorded. - WRNexusEvent.EMAIL_UNSUBSCRIBED — email.message.unsubscribed: An unsubscribe was recorded. ### notifications - NotificationEvent.CAMPAIGN_RUN_COMPLETED — notifications.campaign.run.completed: Campaign occurrence completed - NotificationEvent.CAMPAIGN_RUN_EXPIRED — notifications.campaign.run.expired: Campaign occurrence expired - NotificationEvent.CAMPAIGN_RUN_CANCELLED — notifications.campaign.run.cancelled: Campaign occurrence cancelled - NotificationEvent.CAMPAIGN_SCHEDULED — notifications.campaign.scheduled: Campaign scheduled - NotificationEvent.CAMPAIGN_PAUSED — notifications.campaign.paused: Campaign paused - NotificationEvent.CAMPAIGN_RESUMED — notifications.campaign.resumed: Campaign resumed - NotificationEvent.CAMPAIGN_CANCELLED — notifications.campaign.cancelled: Campaign cancelled - NotificationEvent.CAMPAIGN_RUN_CREATED — notifications.campaign.run.created: Campaign occurrence created - NotificationEvent.CAMPAIGN_RUN_TARGETS_FROZEN — notifications.campaign.run.targets.frozen: Campaign delivery targets frozen - NotificationEvent.CAMPAIGN_AUDIENCE_CAPTURED — notifications.campaign.audience.captured: Campaign send-time audience captured - NotificationEvent.CAMPAIGN_SAVED — notifications.campaign.saved: Campaign draft saved - NotificationEvent.CAMPAIGN_SUBMITTED — notifications.campaign.submitted: Campaign version submitted for approval - NotificationEvent.WORKFLOW_SAVED — notifications.workflow.saved: Workflow draft saved - NotificationEvent.WORKFLOW_SUBMITTED — notifications.workflow.submitted: Workflow version submitted for approval - NotificationEvent.WORKFLOW_PUBLISHED — notifications.workflow.published: Workflow version published - NotificationEvent.WORKFLOW_EVENT_RECORDED — notifications.workflow.event.recorded: Workflow event recorded - NotificationEvent.WORKFLOW_RUN_STARTED — notifications.workflow.run.started: Workflow run started - NotificationEvent.WORKFLOW_RUN_CANCELLED — notifications.workflow.run.cancelled: Workflow run cancelled - NotificationEvent.WORKFLOW_RUN_COMPLETED — notifications.workflow.run.completed: Workflow run completed - NotificationEvent.WORKFLOW_RUN_FAILED — notifications.workflow.run.failed: Workflow run failed - NotificationEvent.WORKFLOW_STEP_COMPLETED — notifications.workflow.step.completed: Workflow step completed - NotificationEvent.WORKFLOW_SEND_ADMITTED — notifications.workflow.send.admitted: Workflow send admitted - NotificationEvent.CAMPAIGN_PUBLISHED — notifications.campaign.published: Campaign version prepared for launch - NotificationEvent.GROUP_SAVED — notifications.group.saved: Recipient group saved - NotificationEvent.GROUP_MEMBERS_UPDATED — notifications.group.members.updated: Recipient group members updated - NotificationEvent.SEGMENT_SAVED — notifications.segment.saved: Recipient segment saved - NotificationEvent.MESSAGE_QUEUED — notifications.message.queued: Notification queued - NotificationEvent.MESSAGE_ACCEPTED — notifications.message.accepted: Notification accepted by provider or inbox - NotificationEvent.MESSAGE_REJECTED — notifications.message.rejected: Notification rejected before acceptance - NotificationEvent.MESSAGE_UNKNOWN — notifications.message.unknown: Notification acceptance needs reconciliation - NotificationEvent.MESSAGE_CANCELLED — notifications.message.cancelled: Unsent notification cancelled - NotificationEvent.MESSAGE_SIMULATED — notifications.message.simulated: Test notification simulated - NotificationEvent.MESSAGE_RECONCILED — notifications.message.reconciled: Notification acceptance reconciled - NotificationEvent.MESSAGE_RESUMED — notifications.message.resumed: Notification submission resumed - NotificationEvent.CONNECTION_UPDATED — notifications.connection.updated: Notification connection updated - NotificationEvent.DEVICE_REGISTERED — notifications.device.registered: Notification device registered - NotificationEvent.DEVICE_ROTATED — notifications.device.rotated: Notification device token rotated - NotificationEvent.DEVICE_UNREGISTERED — notifications.device.unregistered: Notification device unregistered - NotificationEvent.DESTINATION_UPDATED — notifications.destination.updated: Recipient destination updated - NotificationEvent.PREFERENCES_UPDATED — notifications.preferences.updated: Recipient preferences updated - NotificationEvent.TEMPLATE_PUBLISHED — notifications.template.published: Notification template published # Go SDK 0.4.1 Human guide: https://docs.wrnexus.com/sdk?language=go&version=0.4.1 ## 1. How to install Go 1.22+. Typed structs and context cancellation. No runtime module dependencies. Use this published version from the WRNexus registry. Downloads are public; publishing requires authentication. ### Package installation ``` go env -w GOPROXY=https://registry.workroot.in/repository/go-hosted/,https://proxy.golang.org,direct go env -w GONOSUMDB=registry.workroot.in/wrnexus/* go get registry.workroot.in/wrnexus/sdk@v0.4.1 ``` ## 2. Get an API key Open Account → API keys, create a key and choose the channel.operation scopes your integration needs. Wallet reads require sms.balance, whatsapp.balance or email.balance; existing keys do not automatically gain them. Store the key in your server secret configuration. Account membership, allowed IPs, verified senders/templates and available balance still apply. Sends can use your account balance. Keep keys out of browser/mobile bundles and logs. ## 3. How to configure Set the server environment before starting your app. The SDK does not load .env files. An explicit key/endpoint takes precedence; the endpoint defaults to https://api.wrnexus.com. Timeout defaults to 30 seconds; optional read retries range from 0 to 3. HTTPS is required except literal loopback, and redirects are rejected. ### Server environment ``` WRNEXUS_API_KEY=your-api-key WRNEXUS_API_ENDPOINT=https://api.wrnexus.com WRNEXUS_WEBHOOK_SECRET=your-webhook-signing-secret ``` ### Client options ``` client, err := wrnexus.New(wrnexus.Options{Timeout: 30*time.Second, ReadRetries: 0}) // Import time. APIKey and Endpoint explicitly override environment. ``` ## 4. How to initialize Create one client for your server integration. Initialization configures it; network requests begin when you call an operation. ### Create client ``` import ( "context" wrnexus "registry.workroot.in/wrnexus/sdk" ) client, err := wrnexus.New(wrnexus.Options{}) if err != nil { panic(err) } ctx := context.Background() ``` ## 5. How to use: code examples Each snippet reuses the initialized client. Replace illustrative recipients, templates and senders with your account's configuration. WhatsApp supports all current text/template/media/interactive/location/contact/reaction inputs. Email submitted means mail-server acceptance, not proof of inbox delivery. All channel balances read the same organization Service Balance; never sum them. Amounts are integer currency minor units (INR 5021 is ₹50.21), accompanied by currency, reserved amount and last update. ### SMS ``` sent, err := client.SMS.Send(ctx, wrnexus.SmsSend{ Destination: "919000000000", TemplateName: "your-approved-template", SenderName: "your-verified-sender", Variables: map[string]string{"variable1":"Ajay"}, IdempotencyKey: "order-123-sms", }) if err != nil { panic(err) } status, err := client.SMS.CheckStatus(ctx, sent.MessageID) if err != nil { panic(err) } _ = status ``` ### WhatsApp ``` sent, err := client.WhatsApp.Send(ctx, wrnexus.WhatsAppSend{ To: "919000000000", Kind: "template", TemplateID: "your-approved-template-id", BodyValues: []string{"Ajay"}, IdempotencyKey: "order-123-whatsapp", }) if err != nil { panic(err) } _ = sent ``` ### Email ``` sent, err := client.Email.Send(ctx, wrnexus.EmailSend{ To: "recipient@example.com", SenderKey: "your-verified-sender-key", Subject: "Your order", TextBody: "Your order has been received.", }) if err != nil { panic(err) } _ = sent ``` ### Balance and reads ``` wallet, err := client.Balance(ctx, "sms") if err != nil { panic(err) } fmt.Println(wallet.Balance.AvailableMinor, wallet.Balance.Currency) // Import fmt. Each channel's Balance(ctx) reads this same wallet. ``` ## 6. All functions and response models JSON tags preserve wire names. Exported struct fields use Go names such as MessageID, TemplateID and AvailableMinor. Optional/nullable response fields use pointers; input fields use omitempty. DatabaseInteger.String() or BigInt() preserves PostgreSQL integer numbers/strings without float conversion. All API methods accept context.Context and return (typedResponse, error). Cancellation and deadlines can interrupt an in-flight request. *wrnexus.Error exposes Code, Status and RequestID. Snippet imports go at file scope; statements belong in a function. The optional HTTPClient transport is cloned and redirect rejection remains enforced. Read retries apply to HTTP 429/502/503/504, and sends never retry automatically. Reuse the original SMS/WhatsApp idempotency key only when recovering the same send. Email has no guaranteed idempotency input. Provider error text and your API key are excluded from SDK error messages. Response models include BalanceResponse / ServiceBalance, SmsSendResponse, WhatsAppSendResponse, EmailSendResponse, StatusResponse, MessagesResponse, TemplatesResponse, SmsSendersResponse and channel message/template rows. Send fee/replay fields can be omitted; nullable provider/error/receipt fields remain nullable. ## 7. Set up webhooks Serve your receiver at a public HTTPS route and register that exact URL and matching signing secret in Account → Webhooks. Select events, then use Send test. The signing secret is separate from your API key. SDK initialization does not create a public server or register the webhook. Keep untouched body bytes for verification. Default tolerance is 300 seconds and body limit is 1 MiB. Adapters acknowledge with 200 after callbacks finish, reject signatures with 401, oversized bodies with 413 and non-POST requests with 405; callback failures receive sanitized 500 responses. ### Receiver and callbacks ``` import ( "context" "encoding/json" "net/http" "os" wrnexus "registry.workroot.in/wrnexus/sdk" ) hook, err := wrnexus.NewWebhook(wrnexus.WebhookOptions{ URL: "https://your-domain.example/webhooks/wrnexus", Secret: os.Getenv("WRNEXUS_WEBHOOK_SECRET"), }) if err != nil { panic(err) } subscription := hook.On(wrnexus.SMSDelivered, func(ctx context.Context, data map[string]json.RawMessage, event wrnexus.WebhookEvent) error { // Persist event.ID with the business transaction. return nil }) hook.OnAny(func(ctx context.Context, kind string, data map[string]json.RawMessage, event wrnexus.WebhookEvent) error { return nil }) http.Handle("/webhooks/wrnexus", hook.Handler()) _ = subscription // hook.Off(subscription) removes the callback ``` ## 8. Webhook types, functions and usage Envelope: id, event, app, createdAt and event-specific data. Validate/narrow each event's data before business use. Specific callbacks run before central callbacks and complete sequentially. Central callbacks also receive future valid events and webhook.test. Persist event IDs with your business transaction or durable queue to prevent duplicate effects across retries, replicas and restarts. The SDK does not provide persistent deduplication; earlier callbacks can repeat when a later callback fails. Incoming secret headers are never trusted. - client.Webhook(options) / wrnexus.NewWebhook(options): Create receiver with URL, Secret, optional ToleranceSeconds pointer and MaxBodyBytes. Zero body limit selects default 1 MiB. - hook.URL(): Read public URL to register. - On(type, callback) / Off(subscription): Register specific (ctx, data, event) callbacks; returns subscription ID because Go functions cannot be compared. - OnAny(callback) / OffAny(subscription): Register central (ctx, type, data, event) callbacks; remove by subscription ID. - Handler(): net/http adapter with bounded raw-body reads and sanitized callback errors/panics. - Dispatch(ctx, raw, headers): Verify and invoke callbacks sequentially before returning WebhookEvent. - wrnexus.VerifyWebhook(raw, headers, secret, ...VerifyOptions): Verify without callbacks; options include ToleranceSeconds and a test Now time.Time. ## 9. Notifications preview All 98 Notifications gateway operations have typed inputs/results: recipients, destinations, groups, segments, templates, six send channels, campaigns, workflows, connections, exports and units. This is a preview API; native-device and production delivery verification remain separate rollout requirements. Notifications methods require a gateway deployment that enables the 2026-10-09.v55 preview contract. Package installation does not enable those routes in a deployment; configure endpoint explicitly when integrating against your preview gateway. Organization and workspace scope come from the API key. Do not send environment or organization overrides. Sends never retry automatically; preserve the same idempotency key when recovering an ambiguous request. Use the Typed methods (Go/Java) or _typed methods (Rust) for checked inputs and structured results. Unsuffixed methods retain raw JSON access. Sum types retain the contract's allowed alternatives; typed requests reject mixed guest/saved identities and urgent marketing. Required nullable fields retain null. CSV rejection errors expose at most 1,000 validated row/column/code issues, never raw cell values. The 41 Notifications constants are separate from the existing 20 messaging constants; use the same signed webhook helpers and durable event deduplication. ### Create a recipient using typed models ``` notifications, err := client.Notifications() if err != nil { return err } recipient, err := notifications.RecipientUpsertTyped(ctx, wrnexus.NotificationOperationRecipientUpsertInput{ CustomerID: "customer-42", }) if err != nil { return err } fmt.Println(recipient.Recipient.ID) ``` ## Social: Threads image approval Use the existing Account connection and a saved draft with one clean JPEG. This request creates a pending review only; decision and queue require their own operation grants. Keep API keys server-side, preserve explicit consent and the exact request key, and never automatically retry a write. ``` package main import ( "context" "log" wrnexus "registry.workroot.in/wrnexus/sdk" ) func main() { client, err := wrnexus.New(wrnexus.Options{}) // WRNEXUS_API_KEY if err != nil { log.Fatal(err) } review, err := client.Social.InWorkspace("your-workspace-id").RequestReview( context.Background(), wrnexus.SocialReviewRequest{ PostID: "your-post-id", Revision: 2, AccountIDs: []string{"selected-threads-account-id"}, ScheduledAt: nil, Timezone: "Asia/Kolkata", RequestKey: "threads-image-review-001", Threads: &wrnexus.SocialThreadsReview{MediaTransfer: true}, }) if err != nil { log.Fatal(err) } log.Print(review) // Pending review only; no publication is performed. } ``` Full Social operation reference: https://docs.wrnexus.com/reference/social ## All API functions ### client.SMS.Balance(ctx) Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: sms.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/balance ### client.WhatsApp.Balance(ctx) Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: whatsapp.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/balance ### client.Email.Balance(ctx) Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: email.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/email/balance ### client.SMS.Send(ctx, input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: sms.send. Response model: SmsSendResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/send ### client.SMS.CheckStatus(ctx, id) Read the current status and status record for a message ID returned by send(). Permission: sms.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/status ### client.SMS.Details(ctx, id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: sms.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/details ### client.SMS.List(ctx, ...ListOptions) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: sms.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/list ### client.SMS.Templates(ctx) Read templates available to the organization. Use a configured template when sending. Permission: sms.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/templates ### client.SMS.Senders(ctx) Read SMS sender IDs available to the organization. Permission: sms.senders. Response model: SmsSendersResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/senders ### client.WhatsApp.Send(ctx, input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: whatsapp.send. Response model: WhatsAppSendResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/send ### client.WhatsApp.CheckStatus(ctx, id) Read the current status and status record for a message ID returned by send(). Permission: whatsapp.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/status ### client.WhatsApp.Details(ctx, id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: whatsapp.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/details ### client.WhatsApp.List(ctx, ...ListOptions) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: whatsapp.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/list ### client.WhatsApp.Templates(ctx) Read templates available to the organization. Use a configured template when sending. Permission: whatsapp.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/templates ### client.Email.Send(ctx, input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: email.send. Response model: EmailSendResponse. HTTP reference: https://docs.wrnexus.com/reference/email/send ### client.Email.SendRequest(ctx, requestKey) Read the original actor-scoped saved send outcome without resubmitting. Keep the original key; running or uncertain requests require review. Permission: email.send-request. Response model: EmailSendRequest. HTTP reference: https://docs.wrnexus.com/reference/email/send-request ### client.Email.CheckStatus(ctx, id) Read the current status and status record for a message ID returned by send(). Permission: email.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/status ### client.Email.Details(ctx, id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: email.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/details ### client.Email.List(ctx, ...ListOptions) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: email.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/list ### client.Email.Templates(ctx) Read templates available to the organization. Use a configured template when sending. Permission: email.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/templates ### notifications.AppsTyped(ctx, input) List apps and their configured channel routes. Permission: notifications.apps. Response model: NotificationOperationAppsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/apps ### notifications.AppSaveTyped(ctx, input) Group Android, iOS and channel connections in one app. Permission: notifications.app-save. Response model: NotificationOperationAppSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-save ### notifications.AppSendTyped(ctx, input) Admit selected channels together with retry-safe billing. Permission: notifications.app-send. Response model: NotificationOperationAppSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-send ### notifications.PushAnalyticsTyped(ctx, input) Provider submission and SDK-observed device receipt, opening and reading. Permission: notifications.push-analytics. Response model: NotificationOperationPushAnalyticsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-analytics ### notifications.WorkflowRunsTyped(ctx, input) Browse scoped workflow run status without event payloads. Permission: notifications.workflow-runs. Response model: NotificationOperationWorkflowRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-runs ### notifications.WorkflowRunTyped(ctx, input) Read a retained run and its event/recipient snapshot. Permission: notifications.workflow-run. Response model: NotificationOperationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run ### notifications.WorkflowStepsTyped(ctx, input) Browse durable node outcomes and linked send processing. Permission: notifications.workflow-steps. Response model: NotificationOperationWorkflowStepsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-steps ### notifications.WorkflowRunCancelTyped(ctx, input) Cancel the current revision and stop linked pending work; accepted and uncertain provider submissions remain retained. Permission: notifications.workflow-run-cancel. Response model: NotificationOperationWorkflowRunCancelResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run-cancel ### notifications.WorkflowEventTyped(ctx, input) Record an idempotent recipient event and retain matching published workflow runs. Records a correlation key for event processing; omitted keys use the recipient ID. Permission: notifications.workflow-event. Response model: NotificationOperationWorkflowEventResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-event ### notifications.WorkflowsTyped(ctx, input) Browse scoped workflow drafts and active versions. Permission: notifications.workflows. Response model: NotificationOperationWorkflowsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflows ### notifications.WorkflowTyped(ctx, input) Read a scoped workflow draft. Permission: notifications.workflow. Response model: NotificationOperationWorkflowResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow ### notifications.WorkflowVersionsTyped(ctx, input) Browse retained workflow definitions and approval state. Permission: notifications.workflow-versions. Response model: NotificationOperationWorkflowVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-versions ### notifications.WorkflowVersionTyped(ctx, input) Read an immutable retained workflow definition. Permission: notifications.workflow-version. Response model: NotificationOperationWorkflowVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-version ### notifications.WorkflowSaveTyped(ctx, input) Create or revise a typed workflow graph. Send nodes support config.delivery.urgent=true only with transactional published content. Delivery requires the published version creator's active urgent permission and shared hourly allowance. Does not start runs. Permission: notifications.workflow-save. Response model: NotificationOperationWorkflowSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-save ### notifications.WorkflowPublishTyped(ctx, input) Retain a draft revision and its pinned templates; required approval stays pending. Does not start runs. Permission: notifications.workflow-publish. Response model: NotificationOperationWorkflowPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-publish ### notifications.WorkflowApproveTyped(ctx, input) Approve the exact retained version without replacing a newer active revision. Permission: notifications.workflow-approve. Response model: NotificationOperationWorkflowApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-approve ### notifications.CampaignDeliveriesTyped(ctx, input) Page through a scoped occurrence's per-recipient/channel delivery ledger, status, units and output identity. Permission: notifications.campaign-deliveries. Response model: NotificationOperationCampaignDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-deliveries ### notifications.CampaignSchedulesTyped(ctx, input) Page through scoped schedule history for a campaign, including cancelled versions. Permission: notifications.campaign-schedules. Response model: NotificationOperationCampaignSchedulesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedules ### notifications.CampaignScheduleCreateTyped(ctx, input) Register an approved immutable campaign version and capture schedule-time audience. Occurrence materialization and delivery use separate workers. Permission: notifications.campaign-schedule-create. Response model: NotificationOperationCampaignScheduleCreateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-create ### notifications.CampaignScheduleControlTyped(ctx, input) Revision-checked controls stop future occurrence creation and change queued runs. Already submitted deliveries require separate reconciliation. Permission: notifications.campaign-schedule-control. Response model: NotificationOperationCampaignScheduleControlResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-control ### notifications.CampaignScheduleTyped(ctx, input) Read scoped schedule state, revision, next occurrence and saved advisory estimate. Permission: notifications.campaign-schedule. Response model: NotificationOperationCampaignScheduleResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule ### notifications.CampaignRunsTyped(ctx, input) Page through scoped persisted occurrences and audience capture state. Permission: notifications.campaign-runs. Response model: NotificationOperationCampaignRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-runs ### notifications.CampaignEstimateTyped(ctx, input) Estimate current consent and policy eligible contacts/devices and unit bounds without reserving or sending. Advisory only; managed carrier quotes and transport readiness are evaluated separately. Permission: notifications.campaign-estimate. Response model: NotificationOperationCampaignEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-estimate ### notifications.CampaignAudiencePreviewTyped(ctx, input) Count and page current scoped campaign membership. This does not capture recipients or imply consent, channel eligibility, units or carrier costs. Permission: notifications.campaign-audience-preview. Response model: NotificationOperationCampaignAudiencePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-audience-preview ### notifications.CampaignSchedulePreviewTyped(ctx, input) Resolve the next local-calendar campaign times without saving, scheduling or sending. Explicit UTC/offset cutoff; monthly dates clamp, repeated times run once and skipped times shift forward. Permission: notifications.campaign-schedule-preview. Response model: NotificationOperationCampaignSchedulePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-preview ### notifications.CampaignsTyped(ctx, input) Page through scoped campaign drafts. Publishing prepares immutable versions; execution is separate. Permission: notifications.campaigns. Response model: NotificationOperationCampaignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaigns ### notifications.CampaignTyped(ctx, input) Read a scoped campaign configuration and revision. Permission: notifications.campaign. Response model: NotificationOperationCampaignResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign ### notifications.CampaignVersionTyped(ctx, input) Read immutable campaign configuration and publication/approval state. Permission: notifications.campaign-version. Response model: NotificationOperationCampaignVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version ### notifications.CampaignVersionsTyped(ctx, input) Browse scoped retained campaign versions and approval state. Permission: notifications.campaign-versions. Response model: NotificationOperationCampaignVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-versions ### notifications.CampaignVersionEstimateTyped(ctx, input) Review current advisory policy and unit counts and future dates using immutable version settings. Does not reserve, approve, schedule or send. Permission: notifications.campaign-version-estimate. Response model: NotificationOperationCampaignVersionEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version-estimate ### notifications.CampaignSaveTyped(ctx, input) Create or revise validated audience, schedule, delivery, limits and A/B settings. Optional config.delivery.urgent=true requires transactional template content. Delivery requires the scheduled sender's active urgent permission and shared hourly allowance per message/device. Does not schedule or send. Permission: notifications.campaign-save. Response model: NotificationOperationCampaignSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-save ### notifications.CampaignPublishTyped(ctx, input) Freeze a campaign revision and pin approved template content; required approval remains pending. Does not launch. Permission: notifications.campaign-publish. Response model: NotificationOperationCampaignPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-publish ### notifications.CampaignApproveTyped(ctx, input) Approve the exact immutable campaign version. Does not launch. Permission: notifications.campaign-approve. Response model: NotificationOperationCampaignApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-approve ### notifications.SegmentsTyped(ctx, input) Page through scoped dynamic recipient segments. Permission: notifications.segments. Response model: NotificationOperationSegmentsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segments ### notifications.SegmentTyped(ctx, input) Read saved audience rules and their current revision. Permission: notifications.segment. Response model: NotificationOperationSegmentResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment ### notifications.SegmentMembersTyped(ctx, input) Evaluate saved audience rules against current scoped profiles. Dispatch still rechecks consent and delivery policy. Permission: notifications.segment-members. Response model: NotificationOperationSegmentMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-members ### notifications.SegmentSaveTyped(ctx, input) Create or revise validated dynamic audience rules. Permission: notifications.segment-save. Response model: NotificationOperationSegmentSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-save ### notifications.SegmentPreviewTyped(ctx, input) Evaluate draft audience rules without saving, sending or changing consent. Permission: notifications.segment-preview. Response model: NotificationOperationSegmentPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-preview ### notifications.RecipientImportPreviewTyped(ctx, input) Validate up to 500 recipient rows and explicit destination consent without changing recipients or sending messages. Permission: notifications.recipient-import-preview. Response model: NotificationOperationRecipientImportPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import-preview ### notifications.InboxExportTyped(ctx, input) Owner-only scoped CSV of in-app creation, read and archive timestamps. Excludes titles, bodies, links and action content. Follow nextCursor to export the remaining records. Permission: notifications.inbox-export. Response model: NotificationOperationInboxExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/inbox-export ### notifications.DeliveryExportTyped(ctx, input) Owner-only scoped CSV of external handoff outcomes and earliest recorded delivery/read/bounce/complaint/failure timestamps. Empty receipt fields mean no evidence recorded. Accepted means provider acceptance, not confirmed delivery or read. Excludes content, addresses, credentials and attachment details; follow nextCursor with the same filters. Permission: notifications.delivery-export. Response model: NotificationOperationDeliveryExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/delivery-export ### notifications.RecipientExportTyped(ctx, input) Export scoped profile and destination CSV pages; preserves every address and explicit consent, excludes bearer tokens. Follow nextCursor for the remaining audience. Permission: notifications.recipient-export. Response model: NotificationOperationRecipientExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-export ### notifications.RecipientImportTyped(ctx, input) Atomically upsert validated recipient profiles and explicit destination consent; never sends messages or clears suppression. Permission: notifications.recipient-import. Response model: NotificationOperationRecipientImportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import ### notifications.RecipientBulkUpsertTyped(ctx, input) Atomically upsert up to 500 scoped profiles with optional explicit destination consent. Permission: notifications.recipient-bulk-upsert. Response model: NotificationOperationRecipientBulkUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-bulk-upsert ### notifications.GroupTyped(ctx, input) Read a scoped group and its current revision. Permission: notifications.group. Response model: NotificationOperationGroupResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group ### notifications.GroupMembersTyped(ctx, input) Page through scoped members or recipients available to add, with optional name or customer ID search. Permission: notifications.group-members. Response model: NotificationOperationGroupMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members ### notifications.GroupsTyped(ctx, input) List scoped recipient groups and membership counts. Permission: notifications.groups. Response model: NotificationOperationGroupsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/groups ### notifications.GroupSaveTyped(ctx, input) Create or revise a scoped recipient group. Permission: notifications.group-save. Response model: NotificationOperationGroupSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-save ### notifications.GroupMembersUpdateTyped(ctx, input) Atomically add and remove scoped recipients without changing consent. Permission: notifications.group-members-update. Response model: NotificationOperationGroupMembersUpdateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members-update ### notifications.WhatsappSendTyped(ctx, input) Reserve the notification processing fee from Service Balance and queue approved content through a scoped registered business number. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance; consent and provider approval still apply. Permission: notifications.whatsapp-send. Response model: NotificationOperationWhatsappSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/whatsapp-send ### notifications.SmsSendTyped(ctx, input) Reserve the notification processing fee from Service Balance and queue approved content through a verified sender. Select connectionId or useDefaultProvider=true. Optional backupConnectionIds retain order; the reserved managed backup requires allowPaidManagedBackup=true and maxManagedCostMinor. Backups follow confirmed pre-submission failures only. Retries retain reviewed routes; managed delivery uses Service Balance. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance. Permission: notifications.sms-send. Response model: NotificationOperationSmsSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-send ### notifications.MobileConnectionsTyped(ctx, input) Read scoped mobile provider setup without private credentials. Permission: notifications.mobile-connections. Response model: NotificationOperationMobileConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connections ### notifications.EmailConnectionsTyped(ctx, input) Read scoped Email provider metadata, form revision and delivery revision without SMTP credentials. Permission: notifications.email-connections. Response model: NotificationOperationEmailConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connections ### notifications.EmailConnectionSaveTyped(ctx, input) Configure authenticated customer SMTP (TLS on port 465 or STARTTLS on 587) or an assigned managed Email sender. Supply the current revision when editing; omit smtpPassword to retain it. Mode cannot change. Credentials are never returned. Permission: notifications.email-connection-save. Response model: NotificationOperationEmailConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connection-save ### notifications.ExternalSmsConnectionsTyped(ctx, input) Read scoped TLS SMPP provider metadata and country compliance settings without credentials. Permission: notifications.external-sms-connections. Response model: NotificationOperationExternalSmsConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connections ### notifications.SmsProviderDefaultTyped(ctx, input) Read the organization’s SMS default provider mode, identity and revision without credentials. Permission: notifications.sms-provider-default. Response model: NotificationOperationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default ### notifications.SmsProviderDefaultSaveTyped(ctx, input) Choose managed delivery or an active compliant external SMS provider. Supply the current settings revision; changing this default never alters existing queued sends. Permission: notifications.sms-provider-default-save. Response model: NotificationOperationSmsProviderDefaultSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default-save ### notifications.BrandingTyped(ctx, input) Read the display name, brand colour and logo shown on hosted preference pages and the recipient inbox for the organization. Permission: notifications.branding. Response model: NotificationOperationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding ### notifications.BrandingSaveTyped(ctx, input) Set the display name, brand colour (#rrggbb) and logo (PNG, JPEG or WebP up to 256 KiB, base64) shown to recipients. Omit a field to keep it, send null to clear it, and supply the current revision. Permission: notifications.branding-save. Response model: NotificationOperationBrandingSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding-save ### notifications.EmailDesignsTyped(ctx, input) List published Email-studio designs a template's Email content can use, with the variables each needs. Saving a template with email.design {templateId, versionId} copies that exact version in. Permission: notifications.email-designs. Response model: NotificationOperationEmailDesignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-designs ### notifications.CustomDomainsTyped(ctx, input) List hostnames for hosted preference pages with their DNS TXT verification record, CNAME target and verification status. Permission: notifications.custom-domains. Response model: NotificationOperationCustomDomainsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domains ### notifications.CustomDomainSaveTyped(ctx, input) Add a hostname for hosted preference pages. It routes only after verification. Platform, local and IP hosts are refused. Permission: notifications.custom-domain-save. Response model: NotificationOperationCustomDomainSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-save ### notifications.CustomDomainVerifyTyped(ctx, input) Check the hostname's _wrnexus-notifications TXT record. A host can be verified by only one organisation; unverified hosts stay pending with a reason. Permission: notifications.custom-domain-verify. Response model: NotificationOperationCustomDomainVerifyResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-verify ### notifications.CustomDomainRemoveTyped(ctx, input) Stop serving hosted preference pages on a hostname. Links already sent with that host stop working. Permission: notifications.custom-domain-remove. Response model: NotificationOperationCustomDomainRemoveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-remove ### notifications.ExternalSmsConnectionSaveTyped(ctx, input) Save a TLS SMPP connection and supported country compliance profile. Supply the current revision when editing; omitted credentials and compliance are retained. Credentials are never returned. Permission: notifications.external-sms-connection-save. Response model: NotificationOperationExternalSmsConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connection-save ### notifications.MobileConnectionSaveTyped(ctx, input) Configure a customer-owned FCM/APNs connection or an explicitly provisioned managed application. Permission: notifications.mobile-connection-save. Response model: NotificationOperationMobileConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connection-save ### notifications.MobilePushSendTyped(ctx, input) Freeze device targets and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate by default. Permission: notifications.mobile-push-send. Response model: NotificationOperationMobilePushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-send ### notifications.PushTemplateSendTyped(ctx, input) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.push-template-send. Response model: NotificationOperationPushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-template-send ### notifications.MobilePushTemplateSendTyped(ctx, input) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.mobile-push-template-send. Response model: NotificationOperationMobilePushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-template-send ### notifications.MobilePushRequestTyped(ctx, input) Read retained scoped mobile submission outcomes. Permission: notifications.mobile-push-request. Response model: NotificationOperationMobilePushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-request ### notifications.PushSendTyped(ctx, input) Freeze the active target devices and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate without provider contact. Permission: notifications.push-send. Response model: NotificationOperationPushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-send ### notifications.PushRequestTyped(ctx, input) Read the retained outcomes for a scoped web push request. Permission: notifications.push-request. Response model: NotificationOperationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-request ### notifications.PushConnectionsTyped(ctx, input) Read scoped web push connections and public subscription keys. Permission: notifications.push-connections. Response model: NotificationOperationPushConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connections ### notifications.PushConnectionSaveTyped(ctx, input) Configure a managed or customer-owned VAPID pair. Private credentials are write-only and encrypted. Permission: notifications.push-connection-save. Response model: NotificationOperationPushConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connection-save ### notifications.TemplatesTyped(ctx, input) List scoped in-app template drafts. Permission: notifications.templates. Response model: NotificationOperationTemplatesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/templates ### notifications.TemplateTyped(ctx, input) Read a draft and retained version history. Permission: notifications.template. Response model: NotificationOperationTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template ### notifications.TemplateSaveTyped(ctx, input) Save a draft with an optimistic revision check. Approval policy is fixed on creation. Permission: notifications.template-save. Response model: NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-save ### notifications.TemplatePublishTyped(ctx, input) Freeze a draft revision; approval-enabled templates wait for explicit approval. Permission: notifications.template-publish. Response model: NotificationOperationTemplatePublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-publish ### notifications.TemplateApproveTyped(ctx, input) Approve and publish an immutable submitted version. Permission: notifications.template-approve. Response model: NotificationOperationTemplateApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-approve ### notifications.TemplatePreviewTyped(ctx, input) Render content without sending or charging units. Permission: notifications.template-preview. Response model: NotificationOperationTemplatePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-preview ### notifications.TemplateSendTyped(ctx, input) Send the latest published version or an exact published version; retries retain their original version. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.template-send. Response model: NotificationOperationTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-send ### notifications.RecipientPreferenceLinkTyped(ctx, input) Issue short-lived, revocable access to the hosted preference page only. Permission: notifications.recipient-preference-link. Response model: NotificationOperationRecipientPreferenceLinkResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-preference-link ### notifications.RecipientTyped(ctx, input) Read a scoped recipient, preferences and in-app suppression. Permission: notifications.recipient. Response model: NotificationOperationRecipientResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient ### notifications.DestinationSaveTyped(ctx, input) Add or update a scoped email or phone destination with explicit consent and reversible delivery access. Permission: notifications.destination-save. Response model: NotificationOperationDestinationSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/destination-save ### notifications.EmailSendTyped(ctx, input) Queue Email using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive; senderKey is required only for legacy routing. Admission pins provider identity on replay. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.email-send. Response model: NotificationOperationEmailSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-send ### notifications.EmailTemplateSendTyped(ctx, input) Queue an exact or latest published Email template using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive. Retries retain the original version and provider identity. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.email-template-send. Response model: NotificationOperationEmailTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-template-send ### notifications.DispatchesTyped(ctx, input) Read scoped channel dispatch states, including unknown acceptance and simulations. Permission: notifications.dispatches. Response model: NotificationOperationDispatchesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/dispatches ### notifications.RecipientSuppressionTyped(ctx, input) Pause or resume in-app delivery with an audit reason. Permission: notifications.recipient-suppression. Response model: NotificationOperationRecipientSuppressionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-suppression ### notifications.RecipientsTyped(ctx, input) List permitted organization recipients. Permission: notifications.recipients. Response model: NotificationOperationRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipients ### notifications.RecipientUpsertTyped(ctx, input) Create or update a customer recipient. Permission: notifications.recipient-upsert. Response model: NotificationOperationRecipientUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-upsert ### notifications.RecipientTokenTyped(ctx, input) Issue a short-lived token for an existing recipient's inbox. Permission: notifications.recipient-token. Response model: NotificationOperationRecipientTokenResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token ### notifications.RecipientTokenRevokeTyped(ctx, input) Invalidate every outstanding token for one recipient. Permission: notifications.recipient-token-revoke. Response model: NotificationOperationRecipientTokenRevokeResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token-revoke ### notifications.SendTyped(ctx, input) Insert an in-app notification and charge the notification processing fee from Service Balance. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.send. Response model: NotificationOperationSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/send ### notifications.DeliveriesTyped(ctx, input) Read permitted recent in-app deliveries. Permission: notifications.deliveries. Response model: NotificationOperationDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/deliveries ### notifications.UnitsTyped(ctx, input) Read Service Balance billing, current notification processing rates and usage. The legacy units field reports affordable, pending and processed notification counts. Permission: notifications.units. Response model: NotificationOperationUnitsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/units ## Send input fields ### SmsSend - destination: Required recipient phone number with country code. - templateName, senderName: Required approved template name and verified sender name from your SMS configuration. - variables: Optional Record matching the template variables. - idempotencyKey: Optional stable identifier for this business send. Reuse it when recovering the same request. ### EmailSend - to, senderKey: Required recipient email and configured verified sender key. - fromName, subject: Optional sender display name and subject. A saved template can supply content. - htmlBody, textBody: Optional HTML and plain text content; supply content or a templateId. - templateId: Optional saved email template ID. Email has no guaranteed idempotency input. ### WhatsAppSend - to, kind: Required recipient and one of text, template, interactive, media, location, contacts or reaction. - number_id, reply_to, idempotency_key: Optional configured sending number, message being replied to, and stable business-send identifier. - text: Text content for kind: text. - template_id, body_values: Approved template ID and ordered string values for kind: template. - header_text, code, coupon_code, offer_expires_at, url_suffix: Template-specific header, authentication, coupon/offer and dynamic URL values. Supply only fields supported by the configured template. - media_kind, media_url, media_id, filename, caption: Hosted media reference and optional presentation fields. media_kind is image, video, audio, document or sticker. - latitude, longitude, location_name, address: Location coordinates as strings, with optional name and address. - contacts: Array of contacts with required name and phone; optional email and company. - contact_name, contact_phone, contact_email, contact_company: Fields for a single contact instead of the contacts array. - reaction_to, emoji: Message to react to and the reaction emoji. - interactive_type, body, header, footer: Interactive variant (buttons, list, link, product, products or flow) and display text. - buttons, rows, menu_button, section_title: String arrays and labels for interactive buttons or lists, matching the channel's configured format. - label, url, product_id, product_ids, flow_id, cta: Variant-specific link label/URL, catalog product IDs or flow ID and call-to-action. ## All webhook event types ### sms - wrnexus.SMSQueued — sms.message.queued: Accepted into the sending queue; not a delivery receipt. - wrnexus.SMSSubmitted — sms.message.submitted: Submitted to the SMS provider; delivery is still pending. - wrnexus.SMSDelivered — sms.message.delivered: The SMS delivery receipt reports delivery. - wrnexus.SMSFailed — sms.message.failed: Sending or delivery failed; inspect the event and message details. ### whatsapp - wrnexus.WhatsAppSent — whatsapp.message.sent: WhatsApp reports the outbound message as sent. - wrnexus.WhatsAppDelivered — whatsapp.message.delivered: WhatsApp reports delivery to the recipient. - wrnexus.WhatsAppRead — whatsapp.message.read: WhatsApp reports a read receipt when available. - wrnexus.WhatsAppFailed — whatsapp.message.failed: WhatsApp reports a failed outbound message. - wrnexus.WhatsAppReceived — whatsapp.message.received: An inbound WhatsApp message was received. - wrnexus.WhatsAppTemplateUpdated — whatsapp.template.updated: The platform recorded a template update. - wrnexus.WhatsAppOrderPaid — whatsapp.order.paid: The platform recorded a paid WhatsApp order. ### email - wrnexus.EmailQueued — email.message.queued: Email is queued for sending. - wrnexus.EmailSubmitted — email.message.submitted: Accepted by the mail server; this does not prove inbox receipt. - wrnexus.EmailFailed — email.message.failed: Email sending failed. - wrnexus.EmailTrackingUnknown — email.message.tracking_unknown: The platform cannot determine a tracked delivery state. - wrnexus.EmailOpened — email.message.opened: An email tracking open was recorded; tracking may be affected by mail clients. - wrnexus.EmailClicked — email.message.clicked: A tracked email link click was recorded. - wrnexus.EmailBounced — email.message.bounced: A bounce was recorded. - wrnexus.EmailComplained — email.message.complained: A spam complaint was recorded. - wrnexus.EmailUnsubscribed — email.message.unsubscribed: An unsubscribe was recorded. ### notifications - wrnexus.NotificationEventCAMPAIGN_RUN_COMPLETED — notifications.campaign.run.completed: Campaign occurrence completed - wrnexus.NotificationEventCAMPAIGN_RUN_EXPIRED — notifications.campaign.run.expired: Campaign occurrence expired - wrnexus.NotificationEventCAMPAIGN_RUN_CANCELLED — notifications.campaign.run.cancelled: Campaign occurrence cancelled - wrnexus.NotificationEventCAMPAIGN_SCHEDULED — notifications.campaign.scheduled: Campaign scheduled - wrnexus.NotificationEventCAMPAIGN_PAUSED — notifications.campaign.paused: Campaign paused - wrnexus.NotificationEventCAMPAIGN_RESUMED — notifications.campaign.resumed: Campaign resumed - wrnexus.NotificationEventCAMPAIGN_CANCELLED — notifications.campaign.cancelled: Campaign cancelled - wrnexus.NotificationEventCAMPAIGN_RUN_CREATED — notifications.campaign.run.created: Campaign occurrence created - wrnexus.NotificationEventCAMPAIGN_RUN_TARGETS_FROZEN — notifications.campaign.run.targets.frozen: Campaign delivery targets frozen - wrnexus.NotificationEventCAMPAIGN_AUDIENCE_CAPTURED — notifications.campaign.audience.captured: Campaign send-time audience captured - wrnexus.NotificationEventCAMPAIGN_SAVED — notifications.campaign.saved: Campaign draft saved - wrnexus.NotificationEventCAMPAIGN_SUBMITTED — notifications.campaign.submitted: Campaign version submitted for approval - wrnexus.NotificationEventWORKFLOW_SAVED — notifications.workflow.saved: Workflow draft saved - wrnexus.NotificationEventWORKFLOW_SUBMITTED — notifications.workflow.submitted: Workflow version submitted for approval - wrnexus.NotificationEventWORKFLOW_PUBLISHED — notifications.workflow.published: Workflow version published - wrnexus.NotificationEventWORKFLOW_EVENT_RECORDED — notifications.workflow.event.recorded: Workflow event recorded - wrnexus.NotificationEventWORKFLOW_RUN_STARTED — notifications.workflow.run.started: Workflow run started - wrnexus.NotificationEventWORKFLOW_RUN_CANCELLED — notifications.workflow.run.cancelled: Workflow run cancelled - wrnexus.NotificationEventWORKFLOW_RUN_COMPLETED — notifications.workflow.run.completed: Workflow run completed - wrnexus.NotificationEventWORKFLOW_RUN_FAILED — notifications.workflow.run.failed: Workflow run failed - wrnexus.NotificationEventWORKFLOW_STEP_COMPLETED — notifications.workflow.step.completed: Workflow step completed - wrnexus.NotificationEventWORKFLOW_SEND_ADMITTED — notifications.workflow.send.admitted: Workflow send admitted - wrnexus.NotificationEventCAMPAIGN_PUBLISHED — notifications.campaign.published: Campaign version prepared for launch - wrnexus.NotificationEventGROUP_SAVED — notifications.group.saved: Recipient group saved - wrnexus.NotificationEventGROUP_MEMBERS_UPDATED — notifications.group.members.updated: Recipient group members updated - wrnexus.NotificationEventSEGMENT_SAVED — notifications.segment.saved: Recipient segment saved - wrnexus.NotificationEventMESSAGE_QUEUED — notifications.message.queued: Notification queued - wrnexus.NotificationEventMESSAGE_ACCEPTED — notifications.message.accepted: Notification accepted by provider or inbox - wrnexus.NotificationEventMESSAGE_REJECTED — notifications.message.rejected: Notification rejected before acceptance - wrnexus.NotificationEventMESSAGE_UNKNOWN — notifications.message.unknown: Notification acceptance needs reconciliation - wrnexus.NotificationEventMESSAGE_CANCELLED — notifications.message.cancelled: Unsent notification cancelled - wrnexus.NotificationEventMESSAGE_SIMULATED — notifications.message.simulated: Test notification simulated - wrnexus.NotificationEventMESSAGE_RECONCILED — notifications.message.reconciled: Notification acceptance reconciled - wrnexus.NotificationEventMESSAGE_RESUMED — notifications.message.resumed: Notification submission resumed - wrnexus.NotificationEventCONNECTION_UPDATED — notifications.connection.updated: Notification connection updated - wrnexus.NotificationEventDEVICE_REGISTERED — notifications.device.registered: Notification device registered - wrnexus.NotificationEventDEVICE_ROTATED — notifications.device.rotated: Notification device token rotated - wrnexus.NotificationEventDEVICE_UNREGISTERED — notifications.device.unregistered: Notification device unregistered - wrnexus.NotificationEventDESTINATION_UPDATED — notifications.destination.updated: Recipient destination updated - wrnexus.NotificationEventPREFERENCES_UPDATED — notifications.preferences.updated: Recipient preferences updated - wrnexus.NotificationEventTEMPLATE_PUBLISHED — notifications.template.published: Notification template published # Rust SDK 0.4.1 Human guide: https://docs.wrnexus.com/sdk?language=rust&version=0.4.1 ## 1. How to install Rust 1.92+. Blocking server client, serde response models and Rustls HTTPS. Use this published version from the WRNexus registry. Downloads are public; publishing requires authentication. ### Package installation ``` # .cargo/config.toml [registries.wrnexus] index = "sparse+https://registry.workroot.in/repository/cargo-public/" # Cargo.toml [dependencies] wrnexus-sdk = { version = "=0.4.1", registry = "wrnexus" } ``` ## 2. Get an API key Open Account → API keys, create a key and choose the channel.operation scopes your integration needs. Wallet reads require sms.balance, whatsapp.balance or email.balance; existing keys do not automatically gain them. Store the key in your server secret configuration. Account membership, allowed IPs, verified senders/templates and available balance still apply. Sends can use your account balance. Keep keys out of browser/mobile bundles and logs. ## 3. How to configure Set the server environment before starting your app. The SDK does not load .env files. An explicit key/endpoint takes precedence; the endpoint defaults to https://api.wrnexus.com. Timeout defaults to 30 seconds; optional read retries range from 0 to 3. HTTPS is required except literal loopback, and redirects are rejected. ### Server environment ``` WRNEXUS_API_KEY=your-api-key WRNEXUS_API_ENDPOINT=https://api.wrnexus.com WRNEXUS_WEBHOOK_SECRET=your-webhook-signing-secret ``` ### Client options ``` let client = Client::new(Options { timeout: std::time::Duration::from_secs(30), read_retries: 0, ..Options::default() })?; // api_key and endpoint explicitly override environment. ``` ## 4. How to initialize Create one client for your server integration. Initialization configures it; network requests begin when you call an operation. ### Create client ``` use wrnexus_sdk::{Client, Options}; let client = Client::new(Options::default())?; ``` ## 5. How to use: code examples Each snippet reuses the initialized client. Replace illustrative recipients, templates and senders with your account's configuration. WhatsApp supports all current text/template/media/interactive/location/contact/reaction inputs. Email submitted means mail-server acceptance, not proof of inbox delivery. All channel balances read the same organization Service Balance; never sum them. Amounts are integer currency minor units (INR 5021 is ₹50.21), accompanied by currency, reserved amount and last update. ### SMS ``` use wrnexus_sdk::SmsSend; let sent = client.sms().send(&SmsSend { destination: "919000000000".into(), template_name: "your-approved-template".into(), sender_name: "your-verified-sender".into(), idempotency_key: Some("order-123-sms".into()), ..Default::default() })?; let status = client.sms().check_status(&sent.message_id)?; ``` ### WhatsApp ``` use wrnexus_sdk::WhatsAppSend; let sent = client.whatsapp().send(&WhatsAppSend { to: "919000000000".into(), kind: "template".into(), template_id: Some("your-approved-template-id".into()), body_values: Some(vec!["Ajay".into()]), idempotency_key: Some("order-123-whatsapp".into()), ..Default::default() })?; ``` ### Email ``` use wrnexus_sdk::EmailSend; let sent = client.email().send(&EmailSend { to: "recipient@example.com".into(), sender_key: "your-verified-sender-key".into(), subject: Some("Your order".into()), text_body: Some("Your order has been received.".into()), ..Default::default() })?; ``` ### Balance and reads ``` let wallet = client.balance("sms")?.balance; println!("{} {}", wallet.available_minor, wallet.currency); let rows = client.sms().list(wrnexus_sdk::ListOptions::default())?; for message in rows.messages { println!("{} {}", message.id, message.status); } ``` ## 6. All functions and response models Public serde structs use snake_case Rust fields and exact wire names. Option represents nullable/optional fields; send inputs support Default for omitted optional fields. DatabaseInteger.decimal_string() retains exact database integer numbers or strings. ApiResult names the shared success envelope, avoiding Rust's built-in Result. API methods return Result with code, status and request_id. Rust snippets belong in a function returning Result and use ?. This is a blocking SDK: use your runtime's blocking pool in async applications. RequestOptions cancellation is checked before calls and during retry waits; in-flight requests use the configured timeout. Read retries apply to HTTP 429/502/503/504, and sends never retry automatically. Reuse the original SMS/WhatsApp idempotency key only when recovering the same send. Email has no guaranteed idempotency input. Provider error text and your API key are excluded from SDK error messages. Response models include BalanceResponse / ServiceBalance, SmsSendResponse, WhatsAppSendResponse, EmailSendResponse, StatusResponse, MessagesResponse, TemplatesResponse, SmsSendersResponse and channel message/template rows. Send fee/replay fields can be omitted; nullable provider/error/receipt fields remain nullable. ## 7. Set up webhooks Serve your receiver at a public HTTPS route and register that exact URL and matching signing secret in Account → Webhooks. Select events, then use Send test. The signing secret is separate from your API key. SDK initialization does not create a public server or register the webhook. Keep untouched body bytes for verification. Default tolerance is 300 seconds and body limit is 1 MiB. Adapters acknowledge with 200 after callbacks finish, reject signatures with 401, oversized bodies with 413 and non-POST requests with 405; callback failures receive sanitized 500 responses. ### Receiver and callbacks ``` use wrnexus_sdk::{Webhook, WebhookOptions, Headers, events}; let hook = Webhook::new(WebhookOptions::new( "https://your-domain.example/webhooks/wrnexus", std::env::var("WRNEXUS_WEBHOOK_SECRET").expect("Set webhook secret"), ))?; let subscription = hook.on(events::SMS_DELIVERED, |data, event| { // Persist event.id with the business transaction. Ok(()) }); hook.on_any(|kind, data, event| { Ok(()) }); // In your HTTP route, read at most hook.max_body_bytes() + 1 bytes. // Preserve the original body and collect headers in Headers. // let response = hook.receive(method, raw_body, &headers); // Map response.status, body and optional allow header to your framework. ``` ## 8. Webhook types, functions and usage Envelope: id, event, app, createdAt and event-specific data. Validate/narrow each event's data before business use. Specific callbacks run before central callbacks and complete sequentially. Central callbacks also receive future valid events and webhook.test. Persist event IDs with your business transaction or durable queue to prevent duplicate effects across retries, replicas and restarts. The SDK does not provide persistent deduplication; earlier callbacks can repeat when a later callback fails. Incoming secret headers are never trusted. - client.webhook(options) / Webhook::new(options): Create receiver with WebhookOptions::new(url, secret); override tolerance_seconds/body limit if needed. - hook.url() / max_body_bytes(): Read configured public URL and body limit for your HTTP adapter. - on(type, callback) / off(subscription): Specific (data, event) callbacks return Result<(), Error>; remove by returned subscription ID. - on_any(callback) / off_any(subscription): Central (type, data, event) callbacks; subscription removal and sequential completion. - receive(method, raw, &headers): Framework-neutral WebhookResponse. Bound body reads first; map status/body/allow to your web framework. - dispatch(raw, &headers): Verify and invoke callbacks; returns WebhookEvent or sanitized Error. - verify_webhook(raw, &headers, secret, VerifyOptions): Verify without callbacks; options include tolerance_seconds=300 and optional test now (Unix seconds). ## 9. Notifications preview All 98 Notifications gateway operations have typed inputs/results: recipients, destinations, groups, segments, templates, six send channels, campaigns, workflows, connections, exports and units. This is a preview API; native-device and production delivery verification remain separate rollout requirements. Notifications methods require a gateway deployment that enables the 2026-10-09.v55 preview contract. Package installation does not enable those routes in a deployment; configure endpoint explicitly when integrating against your preview gateway. Organization and workspace scope come from the API key. Do not send environment or organization overrides. Sends never retry automatically; preserve the same idempotency key when recovering an ambiguous request. Use the Typed methods (Go/Java) or _typed methods (Rust) for checked inputs and structured results. Unsuffixed methods retain raw JSON access. Sum types retain the contract's allowed alternatives; typed requests reject mixed guest/saved identities and urgent marketing. Required nullable fields retain null. CSV rejection errors expose at most 1,000 validated row/column/code issues, never raw cell values. The 41 Notifications constants are separate from the existing 20 messaging constants; use the same signed webhook helpers and durable event deduplication. ### Create a recipient using typed models ``` use wrnexus_sdk::notification_models::NotificationOperationRecipientUpsertInput; let notifications = client.notifications_for_key(); let recipient = notifications.recipient_upsert_typed(NotificationOperationRecipientUpsertInput { customer_id: "customer-42".into(), name: Some("Asha".into()), language: None, attributes: None, }, wrnexus_sdk::RequestOptions::default())?; println!("{}", recipient.recipient.id); ``` ## Social: Threads image approval Use the existing Account connection and a saved draft with one clean JPEG. This request creates a pending review only; decision and queue require their own operation grants. Keep API keys server-side, preserve explicit consent and the exact request key, and never automatically retry a write. ``` use wrnexus_sdk::{Client, Options, RequestOptions}; use wrnexus_sdk::social::{ReviewRequest, ThreadsReview}; fn main() -> Result<(), Box> { let client = Client::new(Options::default())?; // WRNEXUS_API_KEY let social = client.social(); let review = social.in_workspace("your-workspace-id") .request_review_with_threads(ReviewRequest { post_id: "your-post-id", revision: 2, account_ids: vec!["selected-threads-account-id"], scheduled_at: None, timezone: "Asia/Kolkata", request_key: "threads-image-review-001", youtube: None, x: None, instagram: None, }, ThreadsReview { media_transfer: true }, RequestOptions::default())?; println!("{:?}", review.data); // Pending review only. Ok(()) } ``` Full Social operation reference: https://docs.wrnexus.com/reference/social ## All API functions ### client.sms().balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: sms.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/balance ### client.whatsapp().balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: whatsapp.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/balance ### client.email().balance() Read the same shared organization wallet through this channel. Never sum the three channel balances. Permission: email.balance. Response model: BalanceResponse. HTTP reference: https://docs.wrnexus.com/reference/email/balance ### client.sms().send(&input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: sms.send. Response model: SmsSendResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/send ### client.sms().check_status(id) Read the current status and status record for a message ID returned by send(). Permission: sms.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/status ### client.sms().details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: sms.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/details ### client.sms().list(ListOptions) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: sms.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/list ### client.sms().templates() Read templates available to the organization. Use a configured template when sending. Permission: sms.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/templates ### client.sms().senders() Read SMS sender IDs available to the organization. Permission: sms.senders. Response model: SmsSendersResponse. HTTP reference: https://docs.wrnexus.com/reference/sms/senders ### client.whatsapp().send(&input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: whatsapp.send. Response model: WhatsAppSendResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/send ### client.whatsapp().check_status(id) Read the current status and status record for a message ID returned by send(). Permission: whatsapp.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/status ### client.whatsapp().details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: whatsapp.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/details ### client.whatsapp().list(ListOptions) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: whatsapp.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/list ### client.whatsapp().templates() Read templates available to the organization. Use a configured template when sending. Permission: whatsapp.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/whatsapp/templates ### client.email().send(&input) Send a message using the channel-specific input in the examples above. Requires configured senders, approved templates where applicable and sufficient balance. Permission: email.send. Response model: EmailSendResponse. HTTP reference: https://docs.wrnexus.com/reference/email/send ### client.email().send_request(requestKey) Read the original actor-scoped saved send outcome without resubmitting. Keep the original key; running or uncertain requests require review. Permission: email.send-request. Response model: EmailSendRequest. HTTP reference: https://docs.wrnexus.com/reference/email/send-request ### client.email().check_status(id) Read the current status and status record for a message ID returned by send(). Permission: email.status. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/status ### client.email().details(id) Read the stored message details for that ID. Fields differ by channel; SMS and WhatsApp details include additional fields absent from lists. Permission: email.details. Response model: StatusResponse. HTTP reference: https://docs.wrnexus.com/reference/email/details ### client.email().list(ListOptions) Read messages with optional limit and status filters. Default limit 20, maximum 100. There is no pagination cursor in this release. Permission: email.list. Response model: MessagesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/list ### client.email().templates() Read templates available to the organization. Use a configured template when sending. Permission: email.templates. Response model: TemplatesResponse. HTTP reference: https://docs.wrnexus.com/reference/email/templates ### notifications.apps_typed(input, options) List apps and their configured channel routes. Permission: notifications.apps. Response model: NotificationOperationAppsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/apps ### notifications.app_save_typed(input, options) Group Android, iOS and channel connections in one app. Permission: notifications.app-save. Response model: NotificationOperationAppSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-save ### notifications.app_send_typed(input, options) Admit selected channels together with retry-safe billing. Permission: notifications.app-send. Response model: NotificationOperationAppSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/app-send ### notifications.push_analytics_typed(input, options) Provider submission and SDK-observed device receipt, opening and reading. Permission: notifications.push-analytics. Response model: NotificationOperationPushAnalyticsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-analytics ### notifications.workflow_runs_typed(input, options) Browse scoped workflow run status without event payloads. Permission: notifications.workflow-runs. Response model: NotificationOperationWorkflowRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-runs ### notifications.workflow_run_typed(input, options) Read a retained run and its event/recipient snapshot. Permission: notifications.workflow-run. Response model: NotificationOperationWorkflowRunResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run ### notifications.workflow_steps_typed(input, options) Browse durable node outcomes and linked send processing. Permission: notifications.workflow-steps. Response model: NotificationOperationWorkflowStepsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-steps ### notifications.workflow_run_cancel_typed(input, options) Cancel the current revision and stop linked pending work; accepted and uncertain provider submissions remain retained. Permission: notifications.workflow-run-cancel. Response model: NotificationOperationWorkflowRunCancelResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-run-cancel ### notifications.workflow_event_typed(input, options) Record an idempotent recipient event and retain matching published workflow runs. Records a correlation key for event processing; omitted keys use the recipient ID. Permission: notifications.workflow-event. Response model: NotificationOperationWorkflowEventResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-event ### notifications.workflows_typed(input, options) Browse scoped workflow drafts and active versions. Permission: notifications.workflows. Response model: NotificationOperationWorkflowsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflows ### notifications.workflow_typed(input, options) Read a scoped workflow draft. Permission: notifications.workflow. Response model: NotificationOperationWorkflowResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow ### notifications.workflow_versions_typed(input, options) Browse retained workflow definitions and approval state. Permission: notifications.workflow-versions. Response model: NotificationOperationWorkflowVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-versions ### notifications.workflow_version_typed(input, options) Read an immutable retained workflow definition. Permission: notifications.workflow-version. Response model: NotificationOperationWorkflowVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-version ### notifications.workflow_save_typed(input, options) Create or revise a typed workflow graph. Send nodes support config.delivery.urgent=true only with transactional published content. Delivery requires the published version creator's active urgent permission and shared hourly allowance. Does not start runs. Permission: notifications.workflow-save. Response model: NotificationOperationWorkflowSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-save ### notifications.workflow_publish_typed(input, options) Retain a draft revision and its pinned templates; required approval stays pending. Does not start runs. Permission: notifications.workflow-publish. Response model: NotificationOperationWorkflowPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-publish ### notifications.workflow_approve_typed(input, options) Approve the exact retained version without replacing a newer active revision. Permission: notifications.workflow-approve. Response model: NotificationOperationWorkflowApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/workflow-approve ### notifications.campaign_deliveries_typed(input, options) Page through a scoped occurrence's per-recipient/channel delivery ledger, status, units and output identity. Permission: notifications.campaign-deliveries. Response model: NotificationOperationCampaignDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-deliveries ### notifications.campaign_schedules_typed(input, options) Page through scoped schedule history for a campaign, including cancelled versions. Permission: notifications.campaign-schedules. Response model: NotificationOperationCampaignSchedulesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedules ### notifications.campaign_schedule_create_typed(input, options) Register an approved immutable campaign version and capture schedule-time audience. Occurrence materialization and delivery use separate workers. Permission: notifications.campaign-schedule-create. Response model: NotificationOperationCampaignScheduleCreateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-create ### notifications.campaign_schedule_control_typed(input, options) Revision-checked controls stop future occurrence creation and change queued runs. Already submitted deliveries require separate reconciliation. Permission: notifications.campaign-schedule-control. Response model: NotificationOperationCampaignScheduleControlResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-control ### notifications.campaign_schedule_typed(input, options) Read scoped schedule state, revision, next occurrence and saved advisory estimate. Permission: notifications.campaign-schedule. Response model: NotificationOperationCampaignScheduleResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule ### notifications.campaign_runs_typed(input, options) Page through scoped persisted occurrences and audience capture state. Permission: notifications.campaign-runs. Response model: NotificationOperationCampaignRunsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-runs ### notifications.campaign_estimate_typed(input, options) Estimate current consent and policy eligible contacts/devices and unit bounds without reserving or sending. Advisory only; managed carrier quotes and transport readiness are evaluated separately. Permission: notifications.campaign-estimate. Response model: NotificationOperationCampaignEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-estimate ### notifications.campaign_audience_preview_typed(input, options) Count and page current scoped campaign membership. This does not capture recipients or imply consent, channel eligibility, units or carrier costs. Permission: notifications.campaign-audience-preview. Response model: NotificationOperationCampaignAudiencePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-audience-preview ### notifications.campaign_schedule_preview_typed(input, options) Resolve the next local-calendar campaign times without saving, scheduling or sending. Explicit UTC/offset cutoff; monthly dates clamp, repeated times run once and skipped times shift forward. Permission: notifications.campaign-schedule-preview. Response model: NotificationOperationCampaignSchedulePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-schedule-preview ### notifications.campaigns_typed(input, options) Page through scoped campaign drafts. Publishing prepares immutable versions; execution is separate. Permission: notifications.campaigns. Response model: NotificationOperationCampaignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaigns ### notifications.campaign_typed(input, options) Read a scoped campaign configuration and revision. Permission: notifications.campaign. Response model: NotificationOperationCampaignResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign ### notifications.campaign_version_typed(input, options) Read immutable campaign configuration and publication/approval state. Permission: notifications.campaign-version. Response model: NotificationOperationCampaignVersionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version ### notifications.campaign_versions_typed(input, options) Browse scoped retained campaign versions and approval state. Permission: notifications.campaign-versions. Response model: NotificationOperationCampaignVersionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-versions ### notifications.campaign_version_estimate_typed(input, options) Review current advisory policy and unit counts and future dates using immutable version settings. Does not reserve, approve, schedule or send. Permission: notifications.campaign-version-estimate. Response model: NotificationOperationCampaignVersionEstimateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-version-estimate ### notifications.campaign_save_typed(input, options) Create or revise validated audience, schedule, delivery, limits and A/B settings. Optional config.delivery.urgent=true requires transactional template content. Delivery requires the scheduled sender's active urgent permission and shared hourly allowance per message/device. Does not schedule or send. Permission: notifications.campaign-save. Response model: NotificationOperationCampaignSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-save ### notifications.campaign_publish_typed(input, options) Freeze a campaign revision and pin approved template content; required approval remains pending. Does not launch. Permission: notifications.campaign-publish. Response model: NotificationOperationCampaignPublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-publish ### notifications.campaign_approve_typed(input, options) Approve the exact immutable campaign version. Does not launch. Permission: notifications.campaign-approve. Response model: NotificationOperationCampaignApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/campaign-approve ### notifications.segments_typed(input, options) Page through scoped dynamic recipient segments. Permission: notifications.segments. Response model: NotificationOperationSegmentsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segments ### notifications.segment_typed(input, options) Read saved audience rules and their current revision. Permission: notifications.segment. Response model: NotificationOperationSegmentResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment ### notifications.segment_members_typed(input, options) Evaluate saved audience rules against current scoped profiles. Dispatch still rechecks consent and delivery policy. Permission: notifications.segment-members. Response model: NotificationOperationSegmentMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-members ### notifications.segment_save_typed(input, options) Create or revise validated dynamic audience rules. Permission: notifications.segment-save. Response model: NotificationOperationSegmentSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-save ### notifications.segment_preview_typed(input, options) Evaluate draft audience rules without saving, sending or changing consent. Permission: notifications.segment-preview. Response model: NotificationOperationSegmentPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/segment-preview ### notifications.recipient_import_preview_typed(input, options) Validate up to 500 recipient rows and explicit destination consent without changing recipients or sending messages. Permission: notifications.recipient-import-preview. Response model: NotificationOperationRecipientImportPreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import-preview ### notifications.inbox_export_typed(input, options) Owner-only scoped CSV of in-app creation, read and archive timestamps. Excludes titles, bodies, links and action content. Follow nextCursor to export the remaining records. Permission: notifications.inbox-export. Response model: NotificationOperationInboxExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/inbox-export ### notifications.delivery_export_typed(input, options) Owner-only scoped CSV of external handoff outcomes and earliest recorded delivery/read/bounce/complaint/failure timestamps. Empty receipt fields mean no evidence recorded. Accepted means provider acceptance, not confirmed delivery or read. Excludes content, addresses, credentials and attachment details; follow nextCursor with the same filters. Permission: notifications.delivery-export. Response model: NotificationOperationDeliveryExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/delivery-export ### notifications.recipient_export_typed(input, options) Export scoped profile and destination CSV pages; preserves every address and explicit consent, excludes bearer tokens. Follow nextCursor for the remaining audience. Permission: notifications.recipient-export. Response model: NotificationOperationRecipientExportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-export ### notifications.recipient_import_typed(input, options) Atomically upsert validated recipient profiles and explicit destination consent; never sends messages or clears suppression. Permission: notifications.recipient-import. Response model: NotificationOperationRecipientImportResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-import ### notifications.recipient_bulk_upsert_typed(input, options) Atomically upsert up to 500 scoped profiles with optional explicit destination consent. Permission: notifications.recipient-bulk-upsert. Response model: NotificationOperationRecipientBulkUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-bulk-upsert ### notifications.group_typed(input, options) Read a scoped group and its current revision. Permission: notifications.group. Response model: NotificationOperationGroupResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group ### notifications.group_members_typed(input, options) Page through scoped members or recipients available to add, with optional name or customer ID search. Permission: notifications.group-members. Response model: NotificationOperationGroupMembersResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members ### notifications.groups_typed(input, options) List scoped recipient groups and membership counts. Permission: notifications.groups. Response model: NotificationOperationGroupsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/groups ### notifications.group_save_typed(input, options) Create or revise a scoped recipient group. Permission: notifications.group-save. Response model: NotificationOperationGroupSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-save ### notifications.group_members_update_typed(input, options) Atomically add and remove scoped recipients without changing consent. Permission: notifications.group-members-update. Response model: NotificationOperationGroupMembersUpdateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/group-members-update ### notifications.whatsapp_send_typed(input, options) Reserve the notification processing fee from Service Balance and queue approved content through a scoped registered business number. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance; consent and provider approval still apply. Permission: notifications.whatsapp-send. Response model: NotificationOperationWhatsappSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/whatsapp-send ### notifications.sms_send_typed(input, options) Reserve the notification processing fee from Service Balance and queue approved content through a verified sender. Select connectionId or useDefaultProvider=true. Optional backupConnectionIds retain order; the reserved managed backup requires allowPaidManagedBackup=true and maxManagedCostMinor. Backups follow confirmed pre-submission failures only. Retries retain reviewed routes; managed delivery uses Service Balance. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance. Permission: notifications.sms-send. Response model: NotificationOperationSmsSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-send ### notifications.mobile_connections_typed(input, options) Read scoped mobile provider setup without private credentials. Permission: notifications.mobile-connections. Response model: NotificationOperationMobileConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connections ### notifications.email_connections_typed(input, options) Read scoped Email provider metadata, form revision and delivery revision without SMTP credentials. Permission: notifications.email-connections. Response model: NotificationOperationEmailConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connections ### notifications.email_connection_save_typed(input, options) Configure authenticated customer SMTP (TLS on port 465 or STARTTLS on 587) or an assigned managed Email sender. Supply the current revision when editing; omit smtpPassword to retain it. Mode cannot change. Credentials are never returned. Permission: notifications.email-connection-save. Response model: NotificationOperationEmailConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-connection-save ### notifications.external_sms_connections_typed(input, options) Read scoped TLS SMPP provider metadata and country compliance settings without credentials. Permission: notifications.external-sms-connections. Response model: NotificationOperationExternalSmsConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connections ### notifications.sms_provider_default_typed(input, options) Read the organization’s SMS default provider mode, identity and revision without credentials. Permission: notifications.sms-provider-default. Response model: NotificationOperationSmsProviderDefaultResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default ### notifications.sms_provider_default_save_typed(input, options) Choose managed delivery or an active compliant external SMS provider. Supply the current settings revision; changing this default never alters existing queued sends. Permission: notifications.sms-provider-default-save. Response model: NotificationOperationSmsProviderDefaultSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/sms-provider-default-save ### notifications.branding_typed(input, options) Read the display name, brand colour and logo shown on hosted preference pages and the recipient inbox for the organization. Permission: notifications.branding. Response model: NotificationOperationBrandingResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding ### notifications.branding_save_typed(input, options) Set the display name, brand colour (#rrggbb) and logo (PNG, JPEG or WebP up to 256 KiB, base64) shown to recipients. Omit a field to keep it, send null to clear it, and supply the current revision. Permission: notifications.branding-save. Response model: NotificationOperationBrandingSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/branding-save ### notifications.email_designs_typed(input, options) List published Email-studio designs a template's Email content can use, with the variables each needs. Saving a template with email.design {templateId, versionId} copies that exact version in. Permission: notifications.email-designs. Response model: NotificationOperationEmailDesignsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-designs ### notifications.custom_domains_typed(input, options) List hostnames for hosted preference pages with their DNS TXT verification record, CNAME target and verification status. Permission: notifications.custom-domains. Response model: NotificationOperationCustomDomainsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domains ### notifications.custom_domain_save_typed(input, options) Add a hostname for hosted preference pages. It routes only after verification. Platform, local and IP hosts are refused. Permission: notifications.custom-domain-save. Response model: NotificationOperationCustomDomainSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-save ### notifications.custom_domain_verify_typed(input, options) Check the hostname's _wrnexus-notifications TXT record. A host can be verified by only one organisation; unverified hosts stay pending with a reason. Permission: notifications.custom-domain-verify. Response model: NotificationOperationCustomDomainVerifyResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-verify ### notifications.custom_domain_remove_typed(input, options) Stop serving hosted preference pages on a hostname. Links already sent with that host stop working. Permission: notifications.custom-domain-remove. Response model: NotificationOperationCustomDomainRemoveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/custom-domain-remove ### notifications.external_sms_connection_save_typed(input, options) Save a TLS SMPP connection and supported country compliance profile. Supply the current revision when editing; omitted credentials and compliance are retained. Credentials are never returned. Permission: notifications.external-sms-connection-save. Response model: NotificationOperationExternalSmsConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/external-sms-connection-save ### notifications.mobile_connection_save_typed(input, options) Configure a customer-owned FCM/APNs connection or an explicitly provisioned managed application. Permission: notifications.mobile-connection-save. Response model: NotificationOperationMobileConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-connection-save ### notifications.mobile_push_send_typed(input, options) Freeze device targets and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate by default. Permission: notifications.mobile-push-send. Response model: NotificationOperationMobilePushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-send ### notifications.push_template_send_typed(input, options) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.push-template-send. Response model: NotificationOperationPushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-template-send ### notifications.mobile_push_template_send_typed(input, options) Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Permission: notifications.mobile-push-template-send. Response model: NotificationOperationMobilePushTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-template-send ### notifications.mobile_push_request_typed(input, options) Read retained scoped mobile submission outcomes. Permission: notifications.mobile-push-request. Response model: NotificationOperationMobilePushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/mobile-push-request ### notifications.push_send_typed(input, options) Freeze the active target devices and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate without provider contact. Permission: notifications.push-send. Response model: NotificationOperationPushSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-send ### notifications.push_request_typed(input, options) Read the retained outcomes for a scoped web push request. Permission: notifications.push-request. Response model: NotificationOperationPushRequestResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-request ### notifications.push_connections_typed(input, options) Read scoped web push connections and public subscription keys. Permission: notifications.push-connections. Response model: NotificationOperationPushConnectionsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connections ### notifications.push_connection_save_typed(input, options) Configure a managed or customer-owned VAPID pair. Private credentials are write-only and encrypted. Permission: notifications.push-connection-save. Response model: NotificationOperationPushConnectionSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/push-connection-save ### notifications.templates_typed(input, options) List scoped in-app template drafts. Permission: notifications.templates. Response model: NotificationOperationTemplatesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/templates ### notifications.template_typed(input, options) Read a draft and retained version history. Permission: notifications.template. Response model: NotificationOperationTemplateResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template ### notifications.template_save_typed(input, options) Save a draft with an optimistic revision check. Approval policy is fixed on creation. Permission: notifications.template-save. Response model: NotificationOperationTemplateSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-save ### notifications.template_publish_typed(input, options) Freeze a draft revision; approval-enabled templates wait for explicit approval. Permission: notifications.template-publish. Response model: NotificationOperationTemplatePublishResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-publish ### notifications.template_approve_typed(input, options) Approve and publish an immutable submitted version. Permission: notifications.template-approve. Response model: NotificationOperationTemplateApproveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-approve ### notifications.template_preview_typed(input, options) Render content without sending or charging units. Permission: notifications.template-preview. Response model: NotificationOperationTemplatePreviewResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-preview ### notifications.template_send_typed(input, options) Send the latest published version or an exact published version; retries retain their original version. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.template-send. Response model: NotificationOperationTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/template-send ### notifications.recipient_preference_link_typed(input, options) Issue short-lived, revocable access to the hosted preference page only. Permission: notifications.recipient-preference-link. Response model: NotificationOperationRecipientPreferenceLinkResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-preference-link ### notifications.recipient_typed(input, options) Read a scoped recipient, preferences and in-app suppression. Permission: notifications.recipient. Response model: NotificationOperationRecipientResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient ### notifications.destination_save_typed(input, options) Add or update a scoped email or phone destination with explicit consent and reversible delivery access. Permission: notifications.destination-save. Response model: NotificationOperationDestinationSaveResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/destination-save ### notifications.email_send_typed(input, options) Queue Email using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive; senderKey is required only for legacy routing. Admission pins provider identity on replay. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.email-send. Response model: NotificationOperationEmailSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-send ### notifications.email_template_send_typed(input, options) Queue an exact or latest published Email template using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive. Retries retain the original version and provider identity. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Permission: notifications.email-template-send. Response model: NotificationOperationEmailTemplateSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/email-template-send ### notifications.dispatches_typed(input, options) Read scoped channel dispatch states, including unknown acceptance and simulations. Permission: notifications.dispatches. Response model: NotificationOperationDispatchesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/dispatches ### notifications.recipient_suppression_typed(input, options) Pause or resume in-app delivery with an audit reason. Permission: notifications.recipient-suppression. Response model: NotificationOperationRecipientSuppressionResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-suppression ### notifications.recipients_typed(input, options) List permitted organization recipients. Permission: notifications.recipients. Response model: NotificationOperationRecipientsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipients ### notifications.recipient_upsert_typed(input, options) Create or update a customer recipient. Permission: notifications.recipient-upsert. Response model: NotificationOperationRecipientUpsertResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-upsert ### notifications.recipient_token_typed(input, options) Issue a short-lived token for an existing recipient's inbox. Permission: notifications.recipient-token. Response model: NotificationOperationRecipientTokenResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token ### notifications.recipient_token_revoke_typed(input, options) Invalidate every outstanding token for one recipient. Permission: notifications.recipient-token-revoke. Response model: NotificationOperationRecipientTokenRevokeResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/recipient-token-revoke ### notifications.send_typed(input, options) Insert an in-app notification and charge the notification processing fee from Service Balance. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Permission: notifications.send. Response model: NotificationOperationSendResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/send ### notifications.deliveries_typed(input, options) Read permitted recent in-app deliveries. Permission: notifications.deliveries. Response model: NotificationOperationDeliveriesResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/deliveries ### notifications.units_typed(input, options) Read Service Balance billing, current notification processing rates and usage. The legacy units field reports affordable, pending and processed notification counts. Permission: notifications.units. Response model: NotificationOperationUnitsResult. HTTP reference: https://docs.wrnexus.com/reference/notifications/units ## Send input fields ### SmsSend - destination: Required recipient phone number with country code. - templateName, senderName: Required approved template name and verified sender name from your SMS configuration. - variables: Optional Record matching the template variables. - idempotencyKey: Optional stable identifier for this business send. Reuse it when recovering the same request. ### EmailSend - to, senderKey: Required recipient email and configured verified sender key. - fromName, subject: Optional sender display name and subject. A saved template can supply content. - htmlBody, textBody: Optional HTML and plain text content; supply content or a templateId. - templateId: Optional saved email template ID. Email has no guaranteed idempotency input. ### WhatsAppSend - to, kind: Required recipient and one of text, template, interactive, media, location, contacts or reaction. - number_id, reply_to, idempotency_key: Optional configured sending number, message being replied to, and stable business-send identifier. - text: Text content for kind: text. - template_id, body_values: Approved template ID and ordered string values for kind: template. - header_text, code, coupon_code, offer_expires_at, url_suffix: Template-specific header, authentication, coupon/offer and dynamic URL values. Supply only fields supported by the configured template. - media_kind, media_url, media_id, filename, caption: Hosted media reference and optional presentation fields. media_kind is image, video, audio, document or sticker. - latitude, longitude, location_name, address: Location coordinates as strings, with optional name and address. - contacts: Array of contacts with required name and phone; optional email and company. - contact_name, contact_phone, contact_email, contact_company: Fields for a single contact instead of the contacts array. - reaction_to, emoji: Message to react to and the reaction emoji. - interactive_type, body, header, footer: Interactive variant (buttons, list, link, product, products or flow) and display text. - buttons, rows, menu_button, section_title: String arrays and labels for interactive buttons or lists, matching the channel's configured format. - label, url, product_id, product_ids, flow_id, cta: Variant-specific link label/URL, catalog product IDs or flow ID and call-to-action. ## All webhook event types ### sms - events::SMS_QUEUED — sms.message.queued: Accepted into the sending queue; not a delivery receipt. - events::SMS_SUBMITTED — sms.message.submitted: Submitted to the SMS provider; delivery is still pending. - events::SMS_DELIVERED — sms.message.delivered: The SMS delivery receipt reports delivery. - events::SMS_FAILED — sms.message.failed: Sending or delivery failed; inspect the event and message details. ### whatsapp - events::WHATSAPP_SENT — whatsapp.message.sent: WhatsApp reports the outbound message as sent. - events::WHATSAPP_DELIVERED — whatsapp.message.delivered: WhatsApp reports delivery to the recipient. - events::WHATSAPP_READ — whatsapp.message.read: WhatsApp reports a read receipt when available. - events::WHATSAPP_FAILED — whatsapp.message.failed: WhatsApp reports a failed outbound message. - events::WHATSAPP_RECEIVED — whatsapp.message.received: An inbound WhatsApp message was received. - events::WHATSAPP_TEMPLATE_UPDATED — whatsapp.template.updated: The platform recorded a template update. - events::WHATSAPP_ORDER_PAID — whatsapp.order.paid: The platform recorded a paid WhatsApp order. ### email - events::EMAIL_QUEUED — email.message.queued: Email is queued for sending. - events::EMAIL_SUBMITTED — email.message.submitted: Accepted by the mail server; this does not prove inbox receipt. - events::EMAIL_FAILED — email.message.failed: Email sending failed. - events::EMAIL_TRACKING_UNKNOWN — email.message.tracking_unknown: The platform cannot determine a tracked delivery state. - events::EMAIL_OPENED — email.message.opened: An email tracking open was recorded; tracking may be affected by mail clients. - events::EMAIL_CLICKED — email.message.clicked: A tracked email link click was recorded. - events::EMAIL_BOUNCED — email.message.bounced: A bounce was recorded. - events::EMAIL_COMPLAINED — email.message.complained: A spam complaint was recorded. - events::EMAIL_UNSUBSCRIBED — email.message.unsubscribed: An unsubscribe was recorded. ### notifications - notification_events::CAMPAIGN_RUN_COMPLETED — notifications.campaign.run.completed: Campaign occurrence completed - notification_events::CAMPAIGN_RUN_EXPIRED — notifications.campaign.run.expired: Campaign occurrence expired - notification_events::CAMPAIGN_RUN_CANCELLED — notifications.campaign.run.cancelled: Campaign occurrence cancelled - notification_events::CAMPAIGN_SCHEDULED — notifications.campaign.scheduled: Campaign scheduled - notification_events::CAMPAIGN_PAUSED — notifications.campaign.paused: Campaign paused - notification_events::CAMPAIGN_RESUMED — notifications.campaign.resumed: Campaign resumed - notification_events::CAMPAIGN_CANCELLED — notifications.campaign.cancelled: Campaign cancelled - notification_events::CAMPAIGN_RUN_CREATED — notifications.campaign.run.created: Campaign occurrence created - notification_events::CAMPAIGN_RUN_TARGETS_FROZEN — notifications.campaign.run.targets.frozen: Campaign delivery targets frozen - notification_events::CAMPAIGN_AUDIENCE_CAPTURED — notifications.campaign.audience.captured: Campaign send-time audience captured - notification_events::CAMPAIGN_SAVED — notifications.campaign.saved: Campaign draft saved - notification_events::CAMPAIGN_SUBMITTED — notifications.campaign.submitted: Campaign version submitted for approval - notification_events::WORKFLOW_SAVED — notifications.workflow.saved: Workflow draft saved - notification_events::WORKFLOW_SUBMITTED — notifications.workflow.submitted: Workflow version submitted for approval - notification_events::WORKFLOW_PUBLISHED — notifications.workflow.published: Workflow version published - notification_events::WORKFLOW_EVENT_RECORDED — notifications.workflow.event.recorded: Workflow event recorded - notification_events::WORKFLOW_RUN_STARTED — notifications.workflow.run.started: Workflow run started - notification_events::WORKFLOW_RUN_CANCELLED — notifications.workflow.run.cancelled: Workflow run cancelled - notification_events::WORKFLOW_RUN_COMPLETED — notifications.workflow.run.completed: Workflow run completed - notification_events::WORKFLOW_RUN_FAILED — notifications.workflow.run.failed: Workflow run failed - notification_events::WORKFLOW_STEP_COMPLETED — notifications.workflow.step.completed: Workflow step completed - notification_events::WORKFLOW_SEND_ADMITTED — notifications.workflow.send.admitted: Workflow send admitted - notification_events::CAMPAIGN_PUBLISHED — notifications.campaign.published: Campaign version prepared for launch - notification_events::GROUP_SAVED — notifications.group.saved: Recipient group saved - notification_events::GROUP_MEMBERS_UPDATED — notifications.group.members.updated: Recipient group members updated - notification_events::SEGMENT_SAVED — notifications.segment.saved: Recipient segment saved - notification_events::MESSAGE_QUEUED — notifications.message.queued: Notification queued - notification_events::MESSAGE_ACCEPTED — notifications.message.accepted: Notification accepted by provider or inbox - notification_events::MESSAGE_REJECTED — notifications.message.rejected: Notification rejected before acceptance - notification_events::MESSAGE_UNKNOWN — notifications.message.unknown: Notification acceptance needs reconciliation - notification_events::MESSAGE_CANCELLED — notifications.message.cancelled: Unsent notification cancelled - notification_events::MESSAGE_SIMULATED — notifications.message.simulated: Test notification simulated - notification_events::MESSAGE_RECONCILED — notifications.message.reconciled: Notification acceptance reconciled - notification_events::MESSAGE_RESUMED — notifications.message.resumed: Notification submission resumed - notification_events::CONNECTION_UPDATED — notifications.connection.updated: Notification connection updated - notification_events::DEVICE_REGISTERED — notifications.device.registered: Notification device registered - notification_events::DEVICE_ROTATED — notifications.device.rotated: Notification device token rotated - notification_events::DEVICE_UNREGISTERED — notifications.device.unregistered: Notification device unregistered - notification_events::DESTINATION_UPDATED — notifications.destination.updated: Recipient destination updated - notification_events::PREFERENCES_UPDATED — notifications.preferences.updated: Recipient preferences updated - notification_events::TEMPLATE_PUBLISHED — notifications.template.published: Notification template published ## HTTP API operations ### GET /contacts/records Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.records ``` curl "https://api.wrnexus.com/contacts/records?query=Example&after=&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "contacts": [], "nextCursor": null } } ``` ### GET /contacts/record Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.record ``` curl "https://api.wrnexus.com/contacts/record?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 1 } } ``` ### POST /contacts/create Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.create ``` curl -X POST "https://api.wrnexus.com/contacts/create" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "record": { "kind": "person", "displayName": "API example contact" }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /contacts/update Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.update ``` curl -X POST "https://api.wrnexus.com/contacts/update" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "record": { "kind": "person", "displayName": "API example contact" }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /contacts/archive Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.archive ``` curl -X POST "https://api.wrnexus.com/contacts/archive" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /contacts/links Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.links ``` curl "https://api.wrnexus.com/contacts/links?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### POST /contacts/link Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.link ``` curl -X POST "https://api.wrnexus.com/contacts/link" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "target": { "version": 1, "appKey": "contacts", "recordType": "person", "recordId": "contact_fixture", "scope": { "kind": "organization", "organizationId": "organization_fixture", "workspaceId": null, "environment": "test" } }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /contacts/method-add Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.method-add ``` curl -X POST "https://api.wrnexus.com/contacts/method-add" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "method": { "kind": "email", "value": "contact@example.invalid" }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /contacts/method-retire Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: contacts.method-retire ``` curl -X POST "https://api.wrnexus.com/contacts/method-retire" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "methodId": "method_fixture", "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /notes/records Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.records ``` curl "https://api.wrnexus.com/notes/records?query=Example&after=&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "notes": [], "nextCursor": null } } ``` ### GET /notes/record Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.record ``` curl "https://api.wrnexus.com/notes/record?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 1 } } ``` ### POST /notes/create Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.create ``` curl -X POST "https://api.wrnexus.com/notes/create" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "record": { "title": "API example note", "document": { "version": 1, "blocks": [ { "type": "paragraph", "text": "Example context." } ] } }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /notes/update Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.update ``` curl -X POST "https://api.wrnexus.com/notes/update" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "record": { "title": "API example note", "document": { "version": 1, "blocks": [ { "type": "paragraph", "text": "Example context." } ] } }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /notes/archive Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.archive ``` curl -X POST "https://api.wrnexus.com/notes/archive" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /notes/links Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.links ``` curl "https://api.wrnexus.com/notes/links?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### POST /notes/link Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.link ``` curl -X POST "https://api.wrnexus.com/notes/link" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "target": { "version": 1, "appKey": "contacts", "recordType": "person", "recordId": "contact_fixture", "scope": { "kind": "organization", "organizationId": "organization_fixture", "workspaceId": null, "environment": "test" } }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /notes/revisions Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.revisions ``` curl "https://api.wrnexus.com/notes/revisions?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### POST /notes/restore Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: notes.restore ``` curl -X POST "https://api.wrnexus.com/notes/restore" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "restoreRevision": 1, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /tasks/records Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.records ``` curl "https://api.wrnexus.com/tasks/records?query=Example&after=&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "tasks": [], "nextCursor": null } } ``` ### GET /tasks/record Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.record ``` curl "https://api.wrnexus.com/tasks/record?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 1 } } ``` ### POST /tasks/create Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.create ``` curl -X POST "https://api.wrnexus.com/tasks/create" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "record": { "title": "API example task" }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /tasks/update Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.update ``` curl -X POST "https://api.wrnexus.com/tasks/update" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "record": { "title": "API example task" }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /tasks/archive Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.archive ``` curl -X POST "https://api.wrnexus.com/tasks/archive" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /tasks/links Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.links ``` curl "https://api.wrnexus.com/tasks/links?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### POST /tasks/link Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.link ``` curl -X POST "https://api.wrnexus.com/tasks/link" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "target": { "version": 1, "appKey": "contacts", "recordType": "person", "recordId": "contact_fixture", "scope": { "kind": "organization", "organizationId": "organization_fixture", "workspaceId": null, "environment": "test" } }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /tasks/status Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.status ``` curl -X POST "https://api.wrnexus.com/tasks/status" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "status": "done", "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /tasks/assign Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.assign ``` curl -X POST "https://api.wrnexus.com/tasks/assign" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "userId": null, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /tasks/checklist Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.checklist ``` curl "https://api.wrnexus.com/tasks/checklist?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### POST /tasks/checklist-save Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.checklist-save ``` curl -X POST "https://api.wrnexus.com/tasks/checklist-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "items": [], "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /tasks/watchers Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.watchers ``` curl "https://api.wrnexus.com/tasks/watchers?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### POST /tasks/watchers-save Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.watchers-save ``` curl -X POST "https://api.wrnexus.com/tasks/watchers-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "users": [], "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /tasks/recurrence-save Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: tasks.recurrence-save ``` curl -X POST "https://api.wrnexus.com/tasks/recurrence-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "rule": null, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /calendar/reminders Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: calendar.reminders ``` curl "https://api.wrnexus.com/calendar/reminders?after=&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "items": [], "nextCursor": null } } ``` ### GET /calendar/reminder Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: calendar.reminder ``` curl "https://api.wrnexus.com/calendar/reminder?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 1 } } ``` ### POST /calendar/reminder-save Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: calendar.reminder-save ``` curl -X POST "https://api.wrnexus.com/calendar/reminder-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "reminder": { "title": "API example reminder", "at": "2099-10-20T10:00:00.000Z", "timezone": "UTC" }, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### POST /calendar/reminder-stop Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: calendar.reminder-stop ``` curl -X POST "https://api.wrnexus.com/calendar/reminder-stop" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "record_fixture", "revision": 1, "requestKey": "9e4c53a4-cf18-4c14-b58c-488d62118d63" }' ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": { "id": "record_fixture", "revision": 2 } } ``` ### GET /calendar/reminder-jobs Version 1 shared productivity operation. Organization, environment and workspace are fixed by the key; record permissions are rechecked. Required scope: calendar.reminder-jobs ``` curl "https://api.wrnexus.com/calendar/reminder-jobs?id=record_fixture" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "version": 1, "data": [] } ``` ### GET /sms/balance Read the organization’s shared Service Balance in minor currency units. Required scope: sms.balance ``` curl "https://api.wrnexus.com/sms/balance" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "balance": { "availableMinor": 5021, "reservedMinor": 0, "currency": "INR", "updatedAt": "2026-10-05T00:00:00.000Z" }, "requestId": "example-request-id" } ``` ### GET /whatsapp/balance Read the organization’s shared Service Balance in minor currency units. Required scope: whatsapp.balance ``` curl "https://api.wrnexus.com/whatsapp/balance" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "balance": { "availableMinor": 5021, "reservedMinor": 0, "currency": "INR", "updatedAt": "2026-10-05T00:00:00.000Z" }, "requestId": "example-request-id" } ``` ### GET /email/balance Read the organization’s shared Service Balance in minor currency units. Required scope: email.balance ``` curl "https://api.wrnexus.com/email/balance" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "balance": { "availableMinor": 5021, "reservedMinor": 0, "currency": "INR", "updatedAt": "2026-10-05T00:00:00.000Z" }, "requestId": "example-request-id" } ``` ### POST /sms/send Send an approved template to one number. Required scope: sms.send ``` curl -X POST "https://api.wrnexus.com/sms/send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "destination": "+919876543210", "templateName": "login_otp", "senderName": "WRNXUS", "variables": { "otp": "482913" }, "idempotencyKey": "order-1042-otp" }' ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "msg_2h6k9f3s", "status": "queued", "message": "Queued: WRNexus is busy, sending shortly.", "requestId": "req_8a2f1c" } ``` ### GET /sms/status Current delivery status of one message. Required scope: sms.status ``` curl "https://api.wrnexus.com/sms/status?id=msg_2h6k9f3s" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "msg_2h6k9f3s", "status": "delivered", "requestId": "req_9b3e2d" } ``` ### GET /sms/details Full details of one message. Required scope: sms.details ``` curl "https://api.wrnexus.com/sms/details?id=msg_2h6k9f3s" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "msg_2h6k9f3s", "status": "delivered", "message": { "id": "msg_2h6k9f3s", "destination": "+919876543210", "templateName": "login_otp", "senderName": "WRNXUS", "status": "delivered", "deliveredAt": "2026-09-23T06:12:04.000Z", "createdAt": "2026-09-23T06:11:58.000Z" }, "requestId": "req_1f7a4b" } ``` ### GET /sms/list Recent messages, newest first. Required scope: sms.list ``` curl "https://api.wrnexus.com/sms/list?limit=20&status=delivered" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messages": [ { "id": "msg_2h6k9f3s", "destination": "+919876543210", "status": "delivered" }, { "id": "msg_9d1e5a2p", "destination": "+919812345678", "status": "delivered" } ], "requestId": "req_5c8d3e" } ``` ### GET /sms/templates Approved templates you can send. Required scope: sms.templates ``` curl "https://api.wrnexus.com/sms/templates" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "templates": [ { "id": "tpl_login_otp", "name": "login_otp", "category": "authentication", "status": "approved" } ], "requestId": "req_2a9f7b" } ``` ### GET /sms/senders Verified sender IDs you can send from. Required scope: sms.senders ``` curl "https://api.wrnexus.com/sms/senders" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "senders": [ { "id": "sid_wrnxus", "senderName": "WRNXUS", "status": "verified" } ], "requestId": "req_6e1c4d" } ``` ### POST /whatsapp/send Send a text or approved template message. Required scope: whatsapp.send ``` curl -X POST "https://api.wrnexus.com/whatsapp/send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "+919876543210", "kind": "template", "template_id": "tpl_order_update", "body_values": { "order_id": "10432", "status": "shipped" }, "number_id": "num_5f2a9c", "idempotency_key": "order-10432-update" }' ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "wa_7c3f9e1d", "status": "sent", "message": "Message sent.", "requestId": "req_4b6a2f" } ``` ### GET /whatsapp/status Current status of one message. Required scope: whatsapp.status ``` curl "https://api.wrnexus.com/whatsapp/status?id=wa_7c3f9e1d" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "wa_7c3f9e1d", "status": "delivered", "requestId": "req_9e2d7c" } ``` ### GET /whatsapp/details Full details of one message. Required scope: whatsapp.details ``` curl "https://api.wrnexus.com/whatsapp/details?id=wa_7c3f9e1d" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "wa_7c3f9e1d", "status": "read", "message": { "id": "wa_7c3f9e1d", "direction": "outbound", "type": "template", "status": "read", "to_wa_id": "919876543210", "sentAt": "2026-09-23T06:20:00.000Z", "deliveredAt": "2026-09-23T06:20:03.000Z", "readAt": "2026-09-23T06:21:47.000Z" }, "requestId": "req_3d8f1a" } ``` ### GET /whatsapp/list Recent messages, newest first. Required scope: whatsapp.list ``` curl "https://api.wrnexus.com/whatsapp/list?limit=20&status=delivered" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messages": [ { "id": "wa_7c3f9e1d", "to_wa_id": "919876543210", "status": "delivered" } ], "requestId": "req_7f4b2e" } ``` ### GET /whatsapp/templates Approved templates you can send. Required scope: whatsapp.templates ``` curl "https://api.wrnexus.com/whatsapp/templates" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "templates": [ { "id": "tpl_order_update", "name": "order_update", "language": "en", "category": "UTILITY", "status": "approved" } ], "requestId": "req_1c5a8d" } ``` ### POST /email/send Send an email from an assigned sender. Required scope: email.send ``` curl -X POST "https://api.wrnexus.com/email/send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "customer@example.com", "senderKey": "billing@yourdomain.com", "fromName": "Your Business", "subject": "Your invoice is ready", "htmlBody": "

Hi there, your invoice #1042 is attached.

", "textBody": "Hi there, your invoice #1042 is attached." }' ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "em_4a7d2f9c", "status": "queued", "message": "Queued.", "requestId": "req_2e9c4a" } ``` ### GET /email/send-request Read the original actor-scoped saved send outcome without resubmitting. Keep the original key; running or uncertain requests require review. Required scope: email.send-request ``` curl "https://api.wrnexus.com/email/send-request" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /email/status Current delivery status of one email. Required scope: email.status ``` curl "https://api.wrnexus.com/email/status?id=em_4a7d2f9c" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "em_4a7d2f9c", "status": "delivered", "requestId": "req_8d1f6b" } ``` ### GET /email/details Full details of one email. Required scope: email.details ``` curl "https://api.wrnexus.com/email/details?id=em_4a7d2f9c" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "messageId": "em_4a7d2f9c", "status": "delivered", "message": { "id": "em_4a7d2f9c", "to": "customer@example.com", "subject": "Your invoice is ready", "status": "delivered", "deliveredAt": "2026-09-23T06:30:12.000Z", "createdAt": "2026-09-23T06:30:01.000Z" }, "requestId": "req_9a3e7c" } ``` ### GET /email/list Recent emails, newest first. Required scope: email.list ``` curl "https://api.wrnexus.com/email/list?limit=20&status=delivered" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "emails": [ { "id": "em_4a7d2f9c", "to": "customer@example.com", "status": "delivered" } ], "requestId": "req_5f2b8d" } ``` ### GET /email/templates Templates you can send. Required scope: email.templates ``` curl "https://api.wrnexus.com/email/templates" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "templates": [ { "id": "tpl_invoice_ready", "name": "invoice_ready", "status": "active" } ], "requestId": "req_3b7c1e" } ``` ### GET /seo/websites Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.websites ``` curl "https://api.wrnexus.com/seo/websites" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/ai-models Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.ai-models ``` curl "https://api.wrnexus.com/seo/ai-models" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/ai-reviews Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.ai-reviews ``` curl "https://api.wrnexus.com/seo/ai-reviews" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/ai-review-batches Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.ai-review-batches ``` curl "https://api.wrnexus.com/seo/ai-review-batches" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/audits Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.audits ``` curl "https://api.wrnexus.com/seo/audits" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/findings Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.findings ``` curl "https://api.wrnexus.com/seo/findings" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/keywords Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.keywords ``` curl "https://api.wrnexus.com/seo/keywords" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/content Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.content ``` curl "https://api.wrnexus.com/seo/content" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/versions Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.versions ``` curl "https://api.wrnexus.com/seo/versions" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/approvals Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.approvals ``` curl "https://api.wrnexus.com/seo/approvals" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/publications Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.publications ``` curl "https://api.wrnexus.com/seo/publications" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/publication-checks Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.publication-checks ``` curl "https://api.wrnexus.com/seo/publication-checks" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/media Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.media ``` curl "https://api.wrnexus.com/seo/media" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/research Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.research ``` curl "https://api.wrnexus.com/seo/research" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /seo/metrics Read organization-scoped SEO records in the organization workspace with cursor pagination. Required scope: seo.metrics ``` curl "https://api.wrnexus.com/seo/metrics" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/ai-review-start Explicitly request AI review of every retained page in a completed site audit, with one total charge limit. Required scope: seo.ai-review-start ``` curl -X POST "https://api.wrnexus.com/seo/ai-review-start" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "auditId": "completed-audit-id", "modelId": "configured-model-id", "requestKey": "11111111-1111-4111-8111-111111111111", "maxChargeMinor": 1000 }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/ai-review-resume Resume the same incomplete review using its original paid operation identities. Required scope: seo.ai-review-resume ``` curl -X POST "https://api.wrnexus.com/seo/ai-review-resume" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "id": "site-review-id" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/ai-review-cancel Stop remaining batches; an in-flight paid batch may still finish and charge. Required scope: seo.ai-review-cancel ``` curl -X POST "https://api.wrnexus.com/seo/ai-review-cancel" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "id": "site-review-id" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/website-create Add a public HTTPS website; ownership verification remains a separate operation. Required scope: seo.website-create ``` curl -X POST "https://api.wrnexus.com/seo/website-create" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Example business website", "url": "https://example.com", "locale": "en", "goal": "Help visitors understand our services.", "maxPages": 100, "maxDepth": 3 }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/audit-start Queue a bounded audit of an ownership-verified site. Required scope: seo.audit-start ``` curl -X POST "https://api.wrnexus.com/seo/audit-start" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "verified-site-id" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/keyword-add Map a keyword to a site, country, language and device. Required scope: seo.keyword-add ``` curl -X POST "https://api.wrnexus.com/seo/keyword-add" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "query": "business website planning", "country": "IN", "language": "en", "device": "desktop", "targetUrl": "https://example.com/services", "cluster": "Website planning" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/content-save Update an existing article with revision guards. Initial article creation uses the editor. Required scope: seo.content-save ``` curl -X POST "https://api.wrnexus.com/seo/content-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "article-id", "revision": 1, "title": "Planning a business website", "slug": "planning-a-business-website", "locale": "en", "description": "A practical website planning checklist.", "body": "Start with your audience, goals and the content they need." }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/content-create Create an article draft once using a UUID request key. Reusing the key requires identical content. Required scope: seo.content-create ``` curl -X POST "https://api.wrnexus.com/seo/content-create" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "requestKey": "11111111-1111-4111-8111-111111111111", "title": "Planning a business website", "slug": "planning-a-business-website", "locale": "en", "description": "A practical website planning checklist.", "body": "Start with your audience, goals and the content they need." }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/wordpress-media Copy a saved PNG or JPEG image block to WordPress and save a new draft version. Requires edit and publish permissions, accepted bridge and a UUID requestKey. Reuse the key after uncertainty; newer article edits are preserved. Required scope: seo.wordpress-media ``` curl -X POST "https://api.wrnexus.com/seo/wordpress-media" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "article-id", "revision": 1, "blockIndex": 0, "requestKey": "11111111-1111-4111-8111-111111111111" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/publication-check Inspect a completed publication's public static response against its reviewed version. Requires publish permission and verified ownership. Records observations without claiming indexing or ranking. Required scope: seo.publication-check ``` curl -X POST "https://api.wrnexus.com/seo/publication-check" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/wordpress-choices Read permitted category, tag, author and featured-image choices and cache the bounded result. Requires edit permission and verified ownership. Specify siteId or an existing article id; search narrows the choices. Required scope: seo.wordpress-choices ``` curl -X POST "https://api.wrnexus.com/seo/wordpress-choices" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "search": "website" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/wordpress-import Import a post as an unapproved draft using siteId, remoteId and a UUID requestKey; refresh an existing bound article using id and its current revision. Requires edit permission. Unsupported content fails without saving. Required scope: seo.wordpress-import ``` curl -X POST "https://api.wrnexus.com/seo/wordpress-import" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "remoteId": "123", "requestKey": "11111111-1111-4111-8111-111111111111" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/review-request Assign an active reviewer to the exact current document version. Required scope: seo.review-request ``` curl -X POST "https://api.wrnexus.com/seo/review-request" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "article-id", "revision": 1, "reviewerId": "active-reviewer-user-id" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/review-decide The assigned reviewer approves or requests changes on an exact version. Required scope: seo.review-decide ``` curl -X POST "https://api.wrnexus.com/seo/review-decide" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "article-id", "revision": 1, "decision": "approved", "note": "Reviewed this exact version." }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/research-start Reserve allowance and queue a paid job using a unique request key. Required scope: seo.research-start ``` curl -X POST "https://api.wrnexus.com/seo/research-start" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "siteId": "site-id", "kind": "keywords", "requestKey": "11111111-1111-4111-8111-111111111111", "seed": "business website planning", "locationCode": 2356, "language": "en" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### POST /seo/publish Publish an approved article version or reconcile the same durable operation key. Required scope: seo.publish ``` curl -X POST "https://api.wrnexus.com/seo/publish" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "approved-article-id", "revision": 1, "requestKey": "11111111-1111-4111-8111-111111111111" }' ``` Illustrative response (not live account data): ``` { "ok": true } ``` ### GET /social/usage Read purchased Social limits, distinct selected-account count and current UTC-month publication and per-provider request usage across the organization. Requires current workspace manage permission and exact API operation grant. Read-only; unavailable legacy totals are null; no provider request. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.usage ``` curl "https://api.wrnexus.com/social/usage?workspace=workspace-id&workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "scope": "organization", "enforced": false, "sampled_at": "2026-10-22T12:00:00.000Z", "month": { "key": "2026-10", "starts_at": "2026-10-01T00:00:00.000Z", "ends_at": "2026-11-01T00:00:00.000Z" }, "plan": { "active": true, "name": "Social Starter", "period_start": "2026-10-01T00:00:00.000Z", "period_end": "2026-11-01T00:00:00.000Z", "analytics_retention_days": 90 }, "accounts": { "selected": 2, "limit": 5, "remaining": 3, "over_limit": false }, "publications": { "state": "current", "consumed": 90, "reserved": 10, "limit": 500, "remaining": 400, "over_limit": false }, "provider_requests": [ { "provider": "youtube", "state": "current", "used": 0, "limit": 10000, "remaining": 10000, "over_limit": false }, { "provider": "facebook", "state": "current", "used": 0, "limit": 10000, "remaining": 10000, "over_limit": false }, { "provider": "instagram", "state": "current", "used": 0, "limit": 10000, "remaining": 10000, "over_limit": false }, { "provider": "linkedin", "state": "current", "used": 0, "limit": 10000, "remaining": 10000, "over_limit": false }, { "provider": "x", "state": "unavailable", "used": null, "limit": 10000, "remaining": null, "over_limit": null } ] }, "requestId": "illustrative-request" } ``` ### GET /social/report-logo Read the captured private PNG and current revision with workspace read permission. Does not fetch the source file. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-logo ``` curl "https://api.wrnexus.com/social/report-logo?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 0, "logo": null, "updated_by": null, "updated_at": null }, "requestId": "illustrative-request" } ``` ### GET /social/report-logo-versions Read up to50 immutable revision metadata rows, newest first, using an exclusive before cursor. Image bytes are excluded. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-logo-versions ``` curl "https://api.wrnexus.com/social/report-logo-versions?workspace=workspace-id&before=3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 2, "has_logo": false, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "illustrative-request" } ``` ### GET /social/report-logo-version Read one immutable positive logo revision, including its captured PNG. Requires current workspace read permission. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-logo-version ``` curl "https://api.wrnexus.com/social/report-logo-version?workspace=workspace-id&revision=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 2, "logo": null, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/save-report-logo Capture a clean accessible private Drive PNG using a node_id/drive_workspace_id logo reference, or null to clear. Requires current read/manage, optimistic revision and exact requestKey. Exact retries recover without rereading Drive. New reports freeze the image; prior reports stay unchanged. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-report-logo ``` curl -X POST "https://api.wrnexus.com/social/save-report-logo?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 0, "logo": { "node_id": "drive-file-id", "drive_workspace_id": "drive-workspace-id" }, "requestKey": "logo_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1 }, "requestId": "illustrative-request" } ``` ### GET /social/report-branding Read workspace report display name, readable accent color and closing note. Current read permission required. Existing saved reports keep captured branding. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-branding ``` curl "https://api.wrnexus.com/social/report-branding?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 0, "branding": { "display_name": null, "accent_color": "#047857", "closing_note": null }, "updated_by": null, "updated_at": null }, "requestId": "illustrative-request" } ``` ### GET /social/report-branding-versions Read up to50 immutable branding revisions, newest first, using an exclusive before revision cursor. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-branding-versions ``` curl "https://api.wrnexus.com/social/report-branding-versions?workspace=workspace-id&before=3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 2, "branding": { "display_name": "Example workspace", "accent_color": "#16365f", "closing_note": "Prepared for internal review." }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "illustrative-request" } ``` ### GET /social/report-branding-version Read one immutable positive branding revision. Does not restore or modify it. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-branding-version ``` curl "https://api.wrnexus.com/social/report-branding-version?workspace=workspace-id&revision=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 2, "branding": { "display_name": "Example workspace", "accent_color": "#16365f", "closing_note": "Prepared for internal review." }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/save-report-branding Save workspace branding using optimistic revision and an exact-input requestKey. Requires current read and manage. Null display name uses Account identity; null closing note clears it. Applies to new saved reports only. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-report-branding ``` curl -X POST "https://api.wrnexus.com/social/save-report-branding?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 2, "branding": { "display_name": null, "accent_color": "#16365f", "closing_note": null }, "requestKey": "branding_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 3 }, "requestId": "illustrative-request" } ``` ### GET /social/dm-reminder-settings Read separate default-disabled workspace DM review policy and aggregate delivery records. Requires current read and moderation. Does not plan, deliver or retry a reminder. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-reminder-settings ``` curl "https://api.wrnexus.com/social/dm-reminder-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 0, "policy": { "enabled": false, "after_seconds": 86400, "repeat_seconds": null, "recipient_ids": [] }, "updated_by": null, "updated_at": null, "delivery_summary": { "counts": { "pending": 0, "processing": 0, "accepted": 0, "cancelled": 0 }, "as_of": "2026-10-22T12:00:00.000Z" } }, "requestId": "illustrative-request" } ``` ### GET /social/dm-reminder-versions Read immutable workspace DM policy revisions, up to50 per page. Current read and moderation required. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-reminder-versions ``` curl "https://api.wrnexus.com/social/dm-reminder-versions?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 1, "policy": { "enabled": false, "after_seconds": 86400, "repeat_seconds": null, "recipient_ids": [] }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "illustrative-request" } ``` ### GET /social/dm-reminder-version Read one saved positive policy revision; never restores it. Current read and moderation required. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-reminder-version ``` curl "https://api.wrnexus.com/social/dm-reminder-version?workspace=workspace-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1, "policy": { "enabled": false, "after_seconds": 86400, "repeat_seconds": null, "recipient_ids": [] }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-reminder-recipients Search current Account members with workspace read and moderation. Requires current read, moderation and management. Creates no membership or access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-reminder-recipients ``` curl "https://api.wrnexus.com/social/dm-reminder-recipients?workspace=workspace-id&q=Member&page=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "value": "member-id", "label": "Member", "description": "member-id" } ], "truncated": false }, "requestId": "illustrative-request" } ``` ### POST /social/save-dm-reminder-settings Save separate explicit timing/recipient opt-in using optimistic revision and exact-input requestKey. Requires current read, moderation and management; every recipient is rechecked. Delivery needs configured private-alert worker/signing and current inbox preferences. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-dm-reminder-settings ``` curl -X POST "https://api.wrnexus.com/social/save-dm-reminder-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 0, "policy": { "enabled": false, "after_seconds": 86400, "repeat_seconds": null, "recipient_ids": [] }, "requestKey": "dm_policy_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1 }, "requestId": "illustrative-request" } ``` ### POST /social/generate-instagram-dm-draft Explicit user brief shared with configured AI provider under a Service Balance spending limit. Requires current read, moderation and AI generation permissions. Bound to the selected Account connection. Does not read an inbox or send. Exact retries recover one paid request; human review required. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.generate-instagram-dm-draft ``` curl -X POST "https://api.wrnexus.com/social/generate-instagram-dm-draft?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "requestKey": "dm_draft_001", "modelId": "configured-text-model", "prompt": "Write a helpful greeting using these approved opening hours.", "maxChargeMinor": 10, "currency": "INR" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "ai-run-id", "account_id": "account-id", "status": "completed", "text": "Hello! How can we help?", "currency": "INR", "charged_minor": 1, "error_code": null, "review_required": true }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-dm-drafts Private metadata for your selected account connection and workspace. Reads never retry generation or charges. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-dm-drafts ``` curl "https://api.wrnexus.com/social/instagram-dm-drafts?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account-id", "items": [ { "id": "ai-run-id", "status": "completed", "currency": "INR", "charged_minor": 1, "model_name": "Configured text model", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-dm-draft Private generated text and recorded spending. Same actor, workspace and selected account connection required. Does not generate or send. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-dm-draft ``` curl "https://api.wrnexus.com/social/instagram-dm-draft?workspace=workspace-id&accountId=account-id&id=ai-run-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "ai-run-id", "account_id": "account-id", "status": "completed", "currency": "INR", "charged_minor": 1, "reserved_limit_minor": 10, "model_name": "Configured text model", "created_at": "2026-10-22T12:00:00.000Z", "text": "Hello! How can we help?", "text_available": true, "error_code": null, "review_required": true }, "requestId": "illustrative-request" } ``` ### GET /social/approval-queue List up to fifty exact-version approval summaries by status and identity. Does not decide or queue a request. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.approval-queue ``` curl "https://api.wrnexus.com/social/approval-queue?workspace=workspace-id&status=pending" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "review-id", "post_id": "post-id", "revision": 1, "current_revision": 1, "stale": false, "account_ids": [ "account-id" ], "scheduled_at": null, "timezone": "Asia/Kolkata", "requested_by": "member-id", "requested_at": "2026-10-22T12:00:00.000Z", "status": "pending", "decided_by": null, "decided_at": null, "title": "Launch draft" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/send-instagram-direct-message Requires reviewed=true, exact operation and current read/moderation, Account read/send consent, verified standard window and shared AI conversation control. Recipient is derived from messageRef. Optional savedReply identifies the immutable source version; reviewed text may be edited. Exact retries preserve source and recover the saved result; unknown attempts never resend. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-instagram-direct-message ``` curl -X POST "https://api.wrnexus.com/social/send-instagram-direct-message?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "messageRef": "encrypted-message-reference", "requestKey": "reviewed_dm_request_001", "text": "Reviewed reply.", "reviewed": true }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "account_id": "account-id", "state": "unknown", "text": "Reviewed reply.", "subject": "123456789", "recipient_id": "999999999", "conversation_id": "t_conversation", "acknowledgement": null, "dispatch_at": "2026-10-22T12:00:00.000Z", "cancelled_at": null, "control_settled_at": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/preview-instagram-dm-saved-reply Local immutable template rendering with current read/moderation. Uses Instagram variant and explicit variable values;1000 UTF-8 bytes maximum. Creates no send and proves no provider consent/window. Human review remains required. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.preview-instagram-dm-saved-reply ``` curl -X POST "https://api.wrnexus.com/social/preview-instagram-dm-saved-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "saved-reply-id", "revision": 1, "variables": { "first_name": "Reader", "account_name": "Our team" } }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "saved-reply-id", "revision": 1, "current_revision": 1, "is_current": true, "name": "Welcome", "platform": "instagram", "body": "Hello Reader from Our team.", "variables": [ "first_name", "account_name" ], "channel": "instagram_direct_message", "review_required": true }, "requestId": "illustrative-request" } ``` ### POST /social/recover-instagram-direct-message-send Original actor only with current read/moderation access. recover settles known final reservations without sending. cancel-undispatched requires confirmCancellation=true and refuses a dispatch marker. Never retries a provider send. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.recover-instagram-direct-message-send ``` curl -X POST "https://api.wrnexus.com/social/recover-instagram-direct-message-send?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "action": "cancel-undispatched", "confirmCancellation": true }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "account_id": "account-id", "state": "not_dispatched", "text": "Reviewed reply.", "subject": "123456789", "recipient_id": "999999999", "conversation_id": "t_conversation", "acknowledgement": null, "dispatch_at": null, "cancelled_at": "2026-10-22T12:00:00.000Z", "control_settled_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/verify-instagram-direct-message-send Original actor with current read/moderation and selected account consent. Requires confirmMatch=true and a fresh encrypted outbound inbox message reference. Exact saved conversation, recipient, text and dispatch time must match. Reads Instagram without resending; returns private verification metadata, not delivery/read status. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.verify-instagram-direct-message-send ``` curl -X POST "https://api.wrnexus.com/social/verify-instagram-direct-message-send?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "messageRef": "fresh-encrypted-outbound-message-reference", "confirmMatch": true }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "account_id": "account-id", "state": "accepted", "text": "Reviewed reply.", "subject": "123456789", "recipient_id": "999999999", "conversation_id": "t_conversation", "acknowledgement": { "recipient_id": "999999999", "message_id": "message-id" }, "dispatch_at": "2026-10-22T12:00:00.000Z", "cancelled_at": null, "control_settled_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "verification": { "provider_created_at": "2026-10-22T12:00:00.000Z", "verified_at": "2026-10-22T12:00:00.000Z" } }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-direct-message-sends Metadata-only history for the original actor in this workspace, with current read/moderation access. Up to50 rows in descending creation/ID order; after is a scoped saved-request cursor. No provider calls or text decryption. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-direct-message-sends ``` curl "https://api.wrnexus.com/social/instagram-direct-message-sends?workspace=workspace-id&after=previous-send-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "send-id", "account_id": "account-id", "account_name": "Selected Instagram account", "state": "not_dispatched", "cancelled_at": "2026-10-22T12:00:00.000Z", "dispatch_at": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/dm-notes Current workspace read and moderation access. Metadata-only50-row seek pages; no note text or provider reads. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-notes ``` curl "https://api.wrnexus.com/social/dm-notes?workspace=workspace-id&conversationId=dm-id&after=previous-note-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "note-id", "conversation_id": "dm-id", "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/dm-note Current workspace read and moderation access. Opens one encrypted local note; no provider call. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-note ``` curl "https://api.wrnexus.com/social/dm-note?workspace=workspace-id&id=note-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "note-id", "conversation_id": "dm-id", "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "body": "Private team note.\nFor authorized teammates only." }, "requestId": "illustrative-request" } ``` ### POST /social/add-dm-note Immutable local team note. Exact request retries converge; body limit4000 characters. Never sent to a provider. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.add-dm-note ``` curl -X POST "https://api.wrnexus.com/social/add-dm-note?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "conversationId": "dm-id", "body": "Private team note.\nFor authorized teammates only.", "requestKey": "private_note_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "note-id" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-conversations Current read and moderation access. Local tracked metadata only; scoped seek pages of50. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-conversations ``` curl "https://api.wrnexus.com/social/dm-conversations?workspace=workspace-id&status=open&assignment=me" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "dm-id", "account_id": "account-id", "provider": "instagram", "status": "open", "assignee_id": "member-id", "revision": 1, "event_sequence": 1, "created_by": "member-id", "updated_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "last_event_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null, "coverage": "tracked_only" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-conversation Current read and moderation access. Metadata only; no provider call. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-conversation ``` curl "https://api.wrnexus.com/social/dm-conversation?workspace=workspace-id&id=dm-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "assignee": null, "event_counts": { "tracked": 1, "status_changed": 0, "assignment_changed": 0, "send_admitted": 0, "send_started": 0, "send_accepted": 0, "send_cancelled": 0, "send_verified": 0 }, "event_coverage": "since_tracking", "id": "dm-id", "account_id": "account-id", "provider": "instagram", "status": "open", "assignee_id": null, "revision": 1, "event_sequence": 1, "created_by": "member-id", "updated_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "last_event_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-conversation-history Current read and moderation access. Events since tracking,50 at a time. Receipt links remain original-actor private. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-conversation-history ``` curl "https://api.wrnexus.com/social/dm-conversation-history?workspace=workspace-id&id=dm-id&before=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "dm-id", "items": [ { "position": 1, "kind": "tracked", "actor_id": "member-id", "send_id": null, "details": { "status": "open" }, "created_at": "2026-10-22T12:00:00.000Z" } ], "nextBefore": null, "coverage": "since_tracking" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-conversation-summary Current read and moderation access. Exact local status and assignment counts, not provider engagement. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-conversation-summary ``` curl "https://api.wrnexus.com/social/dm-conversation-summary?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "total": 1, "open": 1, "pending": 0, "resolved": 0, "assigned": 0, "unassigned": 1, "coverage": "tracked_only", "source": "social.dm_conversations", "sampled_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-conversation-messages Fresh Account message-read consent and provider membership required. Returns fresh actor-private message references; no saved text. Follow after to search another provider page. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-conversation-messages ``` curl "https://api.wrnexus.com/social/dm-conversation-messages?workspace=workspace-id&id=dm-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "dm-id", "account_id": "account-id", "provider": "instagram", "items": [ { "id": "provider-message-id", "createdAt": "2026-10-22T12:00:00.000Z", "ref": "fresh-encrypted-message-reference" } ], "nextCursor": null, "found": true, "coverage": "latest_20_messages", "collected_at": "2026-10-22T12:00:00.000Z", "source": "instagram.conversation.messages" }, "requestId": "illustrative-request" } ``` ### POST /social/track-instagram-dm-conversation Explicit tracking through a fresh scoped message reference. Existing status is preserved. No message is sent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.track-instagram-dm-conversation ``` curl -X POST "https://api.wrnexus.com/social/track-instagram-dm-conversation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "messageRef": "fresh-encrypted-message-reference", "requestKey": "track_dm_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "dm-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### POST /social/set-dm-conversation-status Scoped idempotency and optimistic revision required. Local workflow only. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.set-dm-conversation-status ``` curl -X POST "https://api.wrnexus.com/social/set-dm-conversation-status?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "dm-id", "revision": 1, "status": "pending", "requestKey": "status_dm_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "dm-id", "revision": 2 }, "requestId": "illustrative-request" } ``` ### POST /social/assign-dm-conversation Selected teammate must currently have workspace read and moderation access. Null removes assignment. Does not transfer AI handoff. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.assign-dm-conversation ``` curl -X POST "https://api.wrnexus.com/social/assign-dm-conversation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "dm-id", "revision": 2, "assigneeId": null, "requestKey": "assign_dm_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "dm-id", "revision": 2 }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-direct-message-send Original actor only, with current read and moderation access in the exact workspace. Returns saved text and acknowledgement without provider calls or resending. Accepted does not prove delivery or reading. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-direct-message-send ``` curl "https://api.wrnexus.com/social/instagram-direct-message-send?workspace=workspace-id&id=send-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "account_id": "account-id", "state": "accepted", "text": "Reviewed reply.", "subject": "123456789", "recipient_id": "999999999", "conversation_id": "t_conversation", "acknowledgement": { "recipient_id": "999999999", "message_id": "message-id" }, "dispatch_at": "2026-10-22T12:00:00.000Z", "cancelled_at": null, "control_settled_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-inbox-conversations Fresh read through selected Account message-read consent. Requires current Social read and moderation access. Provider-returned coverage excludes some inactive Requests; encrypted references expire after15 minutes. Does not persist messages or send replies. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-inbox-conversations ``` curl "https://api.wrnexus.com/social/instagram-inbox-conversations?workspace=workspace-id&id=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account-id", "provider": "instagram", "items": [ { "id": "t_conversation", "updatedAt": "2026-10-22T12:00:00.000Z", "ref": "encrypted-conversation-reference" } ], "nextCursor": null, "coverage": "provider_returned", "collected_at": "2026-10-22T12:00:00.000Z", "source": "instagram.account.conversations" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-inbox-messages Fresh conversation membership check using its scoped ref. Returns up to20 recent message identities with separate detail refs; no message text. Requires current read and moderation access and Account message-read consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-inbox-messages ``` curl "https://api.wrnexus.com/social/instagram-inbox-messages?workspace=workspace-id&id=account-id&ref=encrypted-conversation-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account-id", "provider": "instagram", "conversation_id": "t_conversation", "items": [ { "id": "message-id", "createdAt": "2026-10-22T12:00:00.000Z", "ref": "encrypted-message-reference" } ], "coverage": "latest_20_messages", "collected_at": "2026-10-22T12:00:00.000Z", "source": "instagram.conversation.messages" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-inbox-message Rechecks selected account, conversation and latest20 message membership before returning private literal text. Requires exact scoped ref and current read/moderation/Account consent. No attachment fetch or sending. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-inbox-message ``` curl "https://api.wrnexus.com/social/instagram-inbox-message?workspace=workspace-id&id=account-id&ref=encrypted-message-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account-id", "provider": "instagram", "conversation_id": "t_conversation", "message": { "id": "message-id", "fromId": "999999999", "toId": "123456789", "createdAt": "2026-10-22T12:00:00.000Z", "text": "Private message for human review.", "direction": "inbound" }, "collected_at": "2026-10-22T12:00:00.000Z", "source": "instagram.conversation.message" }, "requestId": "illustrative-request" } ``` ### GET /social/workspaces Owner-only paginated workspace records. Does not select a content workspace or grant permissions. Required scope: social.workspaces ``` curl "https://api.wrnexus.com/social/workspaces?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "workspace-id", "name": "Existing Account workspace" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/workspace-members Owner-only paginated Account placements and saved Social grant members for one workspace. Required scope: social.workspace-members ``` curl "https://api.wrnexus.com/social/workspace-members?workspace=workspace-id&id=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "workspace": { "id": "workspace-id", "name": "Existing Account workspace" }, "items": [ { "user_id": "moderator-id", "name": "Existing moderator", "status": "active" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/workspace-member Owner-only current workspace/global Social permissions, eligibility, snapshot hash and recent access audits. Required scope: social.workspace-member ``` curl "https://api.wrnexus.com/social/workspace-member?workspace=workspace-id&id=workspace-id&userId=moderator-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "workspace": { "id": "workspace-id", "name": "Existing Account workspace" }, "member": { "id": "moderator-id", "name": "Existing moderator", "role": "member", "organization_status": "active", "workspace_status": "active", "app_assigned": true, "profile_available": true, "archived": false }, "eligible": true, "permissions": [ "social.moderate" ], "organization_permissions": [ "social.access" ], "permissions_hash": "47abf42de640bc3919a725b355d205880b2ee3603f97c35e525fdc9b8d0ff669", "events": [] }, "requestId": "illustrative-request" } ``` ### POST /social/set-workspace-permissions Owner-only exact action selection for an existing Account member/workspace. Requires a current permission snapshot and exact retry key. Does not invite members or enable workspace content selection. Required scope: social.set-workspace-permissions ``` curl -X POST "https://api.wrnexus.com/social/set-workspace-permissions?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workspaceId": "workspace-id", "userId": "member-id", "permissions": [ "social.read" ], "requestKey": "workspace_permissions_001", "expectedHash": "0000000000000000000000000000000000000000000000000000000000000000" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "workspace_id": "workspace-id", "user_id": "member-id", "permissions": [ "social.read" ], "event_id": "event-id" }, "requestId": "illustrative-request" } ``` ### POST /social/queue-series Queue explicit approved occurrences from one current series version atomically. Requires current social.publish. Does not approve, reserve allowance or reset existing targets; exact retries recover original identities. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.queue-series ``` curl -X POST "https://api.wrnexus.com/social/queue-series?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "series-id", "revision": 1, "reviewIds": [ "review-id" ], "requestKey": "series_queue_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "series-id", "revision": 1, "items": [ { "review_id": "review-id", "post_id": "post-id", "revision": 1, "targets": [ { "id": "publication-id", "account_id": "account-id", "due_at": "2026-10-22T12:00:00.000Z", "state": "queued" } ] } ] }, "requestId": "illustrative-request" } ``` ### POST /social/cancel-series Cancel eligible pending/approved occurrences and their unstarted publishing targets, preserving protected work. Requires current social.publish; exact retries recover the original receipt. No provider operation occurs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.cancel-series ``` curl -X POST "https://api.wrnexus.com/social/cancel-series?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "series-id", "requestKey": "series_cancel_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "series-id", "cancelled_review_ids": [ "review-id" ], "protected_review_ids": [], "unchanged_review_ids": [], "cancelled_by": "member-id", "cancelled_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/repeat-review Create 1–52 dated pending approval requests with daily, weekly or monthly local-calendar repetition (monthly dates clamp to shorter month ends). Requires current social.update and social.publish. Each occurrence requires separate approval; this never queues work. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.repeat-review ``` curl -X POST "https://api.wrnexus.com/social/repeat-review?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "review-id", "revision": 1, "firstLocal": "2030-11-01T09:00", "timezone": "Asia/Kolkata", "frequency": "weekly", "count": 2, "requestKey": "review_repeat_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "series-id", "source_review_id": "review-id", "post_id": "post-id", "revision": 1, "frequency": "weekly", "first_local": "2030-11-01T09:00", "timezone": "Asia/Kolkata", "items": [ { "ordinal": 0, "id": "occurrence-1", "scheduled_at": "2030-11-01T03:30:00.000Z" }, { "ordinal": 1, "id": "occurrence-2", "scheduled_at": "2030-11-08T03:30:00.000Z" } ] }, "requestId": "illustrative-request" } ``` ### GET /social/review-series Read scoped series settings and current per-occurrence approval status and content freshness. Requires social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.review-series ``` curl "https://api.wrnexus.com/social/review-series?workspace=workspace-id&id=series-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "series-id", "source_review_id": "review-id", "post_id": "post-id", "revision": 1, "frequency": "weekly", "occurrence_count": 2, "timezone": "Asia/Kolkata", "first_local": "2026-11-01T17:30", "created_at": "2026-10-22T12:00:00.000Z", "items": [ { "ordinal": 0, "review_id": "occurrence-review-1", "scheduled_at": "2026-11-01T12:00:00.000Z", "status": "pending", "stale": false }, { "ordinal": 1, "review_id": "occurrence-review-2", "scheduled_at": "2026-11-08T12:00:00.000Z", "status": "pending", "stale": false } ] }, "requestId": "illustrative-request" } ``` ### GET /social/post-series Read up to 50 scoped repeat schedules for a post. Requires social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-series ``` curl "https://api.wrnexus.com/social/post-series?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "series-id", "source_review_id": "review-id", "post_id": "post-id", "revision": 1, "frequency": "weekly", "occurrence_count": 2, "timezone": "Asia/Kolkata", "first_local": "2026-11-01T17:30", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/duplicate-post Copy an exact owned content version, with optional currently authorised clean Drive attachments. Requires social.read and social.create. Starts independent history without approval, schedule or publishing. Exact retries reuse the draft. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.duplicate-post ``` curl -X POST "https://api.wrnexus.com/social/duplicate-post?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "revision": 1, "title": "Copied draft", "includeMedia": false, "requestKey": "post_duplicate_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "post": { "id": "copied-post-id", "organization_id": "organization-id", "workspace_id": "workspace-id", "title": "Copied draft", "body": "Reviewed draft content", "revision": 1, "created_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "source_post_id": "post-id", "source_revision": 1, "media_count": 0 }, "requestId": "illustrative-request" } ``` ### GET /social/text-drafts Read up to 50 of the key creator’s Social text requests, newest first, with stored states and charges. Requires social.ai.generate; no provider operation or charge settlement occurs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.text-drafts ``` curl "https://api.wrnexus.com/social/text-drafts?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "draft-id", "status": "completed", "currency": "INR", "charged_minor": 25, "created_at": "2026-10-22T12:00:00.000Z", "model_name": "Configured text model" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/studio-exports Read up to 50 manual MP4 exports owned by the key creator in the selected workspace. Requires social.create. Reads do not encode, save or retry work. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.studio-exports ``` curl "https://api.wrnexus.com/social/studio-exports?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "export-id", "name": "launch.mp4", "duration": 6, "status": "saved", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/studio-designs List up to 50 saved composition summaries belonging to the key creator and selected workspace. Requires social.create. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.studio-designs ``` curl "https://api.wrnexus.com/social/studio-designs?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "design-id", "revision": 1, "name": "Launch design", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/studio-design Read an owned saved composition and current revision. Drive references grant no file access. Requires social.create. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.studio-design ``` curl "https://api.wrnexus.com/social/studio-design?workspace=workspace-id&id=design-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "design-id", "revision": 1, "composition": { "name": "Launch design", "headline": "Launch announcement", "caption": "Reviewed caption", "layout": "square", "background": "#152a2f", "foreground": "#ffffff", "imageFit": "cover", "overlay": 0, "format": "image", "duration": 6, "backgroundFile": null }, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/save-studio-design Save settings only with social.create, an exact request key and revision. Create with id null and revision zero. No media generation, Drive upload, attachment or publishing occurs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-studio-design ``` curl -X POST "https://api.wrnexus.com/social/save-studio-design?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "revision": 0, "composition": { "name": "Launch design", "headline": "Launch announcement", "caption": "Reviewed caption", "layout": "square", "background": "#152a2f", "foreground": "#ffffff", "imageFit": "cover", "overlay": 0, "format": "image", "duration": 6, "backgroundFile": null }, "requestKey": "studio_design_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "design-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### GET /social/studio-export Read an owned export status and saved Drive reference. Requires social.create. A saved reference grants no file access; Drive permission and scan rules still apply. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.studio-export ``` curl "https://api.wrnexus.com/social/studio-export?workspace=workspace-id&id=export-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "export-id", "name": "launch.mp4", "duration": 6, "status": "saved", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "file": { "workspace": "drive-workspace-id", "id": "drive-node-id" } }, "requestId": "illustrative-request" } ``` ### GET /social/text-draft Read an owned Social text request and its completed usable text. Supplier metadata and unfinished text are excluded; saving a post remains separate. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.text-draft ``` curl "https://api.wrnexus.com/social/text-draft?workspace=workspace-id&id=draft-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "draft-id", "status": "completed", "currency": "INR", "charged_minor": 25, "created_at": "2026-10-22T12:00:00.000Z", "model_name": "Configured text model", "reserved_limit_minor": 50, "text": "Illustrative generated text for human review.", "text_available": true, "error_code": null }, "requestId": "illustrative-request" } ``` ### GET /social/text-models Read configured priced text models and wallet currency for the Social draft builder. Requires social.ai.generate; this does not spend balance. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.text-models ``` curl "https://api.wrnexus.com/social/text-models?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "currency": "INR", "items": [ { "id": "model-id", "name": "Configured text model" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/generate-text Generate an actor-owned draft through the shared AI gateway with an explicit currency, charge cap and exact retry key. The prompt can request drafting, translation or platform adaptation; browser task controls prepare that prompt without adding API fields. May reserve/spend Service Balance; never saves or publishes a post. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.generate-text ``` curl -X POST "https://api.wrnexus.com/social/generate-text?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "requestKey": "text_generate_001", "modelId": "model-id", "prompt": "Draft a launch post for human review.", "maxChargeMinor": 50, "currency": "INR" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "draft-id", "status": "completed", "text": "Illustrative generated text for human review.", "currency": "INR", "charged_minor": 25, "error_code": null }, "requestId": "illustrative-request" } ``` ### GET /social/overview Read scoped saved-post, current approval and per-account publishing-state counts. Stored states are not a provider refresh; only published targets confirm publication. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.overview ``` curl "https://api.wrnexus.com/social/overview?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "saved_posts": 1, "pending_reviews": 0, "approved_unqueued_reviews": 0, "publication_targets": [ { "state": "queued", "count": 0 }, { "state": "processing", "count": 0 }, { "state": "uploaded", "count": 0 }, { "state": "published", "count": 0 }, { "state": "failed", "count": 0 }, { "state": "unknown", "count": 0 }, { "state": "paused", "count": 0 }, { "state": "cancelled", "count": 0 } ], "sampled_at": "2026-10-22T12:00:00.000Z", "metrics": [ { "metric": "social.saved_posts", "label": "Saved posts", "value": 1, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.pending_reviews", "label": "Pending current reviews", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.approved_unqueued_reviews", "label": "Approved current reviews without targets", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_queued", "label": "Publication targets · queued", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_processing", "label": "Publication targets · processing", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_uploaded", "label": "Publication targets · uploaded", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_published", "label": "Publication targets · published", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_failed", "label": "Publication targets · failed", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_unknown", "label": "Publication targets · unknown", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_paused", "label": "Publication targets · paused", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" }, { "metric": "social.publications_cancelled", "label": "Publication targets · cancelled", "value": 0, "unit": "count", "source": "social.workflow", "period_kind": "count_at_sample" } ] }, "requestId": "illustrative-request" } ``` ### GET /social/account-health Read the saved Account consent check for one selected account with social.read. Null health means no matching check. Stale results do not prove current provider access. No token refresh or provider request. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.account-health ``` curl "https://api.wrnexus.com/social/account-health?workspace=workspace-id&id=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account-id", "provider": "facebook", "health": null, "source": "account.saved_consent" }, "requestId": "illustrative-request" } ``` ### POST /social/begin-media-upload Reserve private Drive storage for an actor-owned file using exact metadata and requestKey. Uses 4 MiB chunks and an original one-hour expiry; Drive plan limits apply. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.begin-media-upload ``` curl -X POST "https://api.wrnexus.com/social/begin-media-upload?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "example.png", "size": 71, "sha256": "8de1139cc6f6b0f2202d1c911d9232bed5fa38976272bd4f0812bba44a4ff2fc", "driveWorkspaceId": "drive-workspace-id", "requestKey": "media_resumable_upload_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "upload-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png", "size": 71, "state": "reserved", "chunk_bytes": 4194304, "total_parts": 1, "received_parts": [], "expires_at": "2026-10-23T12:00:00.000Z", "node_id": null, "scan_status": null }, "requestId": "illustrative-request" } ``` ### POST /social/upload-media-part Write an immutable numbered chunk using its SHA-256 and canonical base64. Retries must preserve bytes; this does not finalise or attach the file. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.upload-media-part ``` curl -X POST "https://api.wrnexus.com/social/upload-media-part?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "upload-id", "part": 0, "sha256": "8de1139cc6f6b0f2202d1c911d9232bed5fa38976272bd4f0812bba44a4ff2fc", "base64": "iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAADklEQVR4nGP4DwUMMAYAj4IP8TylVlEAAAAASUVORK5CYII=" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "upload-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png", "size": 71, "state": "reserved", "chunk_bytes": 4194304, "total_parts": 1, "received_parts": [ 0 ], "expires_at": "2026-10-23T12:00:00.000Z", "node_id": null, "scan_status": null }, "requestId": "illustrative-request" } ``` ### POST /social/complete-media-upload Verify all chunks and the full file checksum, then finalise private Drive storage once. Scanning and attachment remain separate. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.complete-media-upload ``` curl -X POST "https://api.wrnexus.com/social/complete-media-upload?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "upload-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "upload-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png", "size": 71, "state": "complete", "chunk_bytes": 4194304, "total_parts": 1, "received_parts": [ 0 ], "expires_at": "2026-10-23T12:00:00.000Z", "node_id": "drive-node-id", "scan_status": "pending" }, "requestId": "illustrative-request" } ``` ### POST /social/cancel-media-upload Cancel an owned incomplete upload and release its reserved storage. Completed files cannot be cancelled here. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.cancel-media-upload ``` curl -X POST "https://api.wrnexus.com/social/cancel-media-upload?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "upload-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "upload-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png", "size": 71, "state": "cancelled", "chunk_bytes": 4194304, "total_parts": 1, "received_parts": [], "expires_at": "2026-10-23T12:00:00.000Z", "node_id": null, "scan_status": null }, "requestId": "illustrative-request" } ``` ### GET /social/media-upload Read an actor-owned resumable upload, received parts, original expiry and completed file scan status with current Social read and Drive access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.media-upload ``` curl "https://api.wrnexus.com/social/media-upload?workspace=workspace-id&id=upload-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "upload-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png", "size": 71, "state": "reserved", "chunk_bytes": 4194304, "total_parts": 1, "received_parts": [], "expires_at": "2026-10-23T12:00:00.000Z", "node_id": null, "scan_status": null }, "requestId": "illustrative-request" } ``` ### POST /social/upload-media Upload up to 8 MiB of base64 file bytes into an authorised private Drive workspace with social.update. Exact requestKey retries reuse one file; scanning and attachment remain separate. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.upload-media ``` curl -X POST "https://api.wrnexus.com/social/upload-media?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "example.png", "base64": "iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAADklEQVR4nGP4DwUMMAYAj4IP8TylVlEAAAAASUVORK5CYII=", "driveWorkspaceId": "drive-workspace-id", "requestKey": "media_single_upload_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "node_id": "drive-node-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png", "scan_status": "pending" }, "requestId": "illustrative-request" } ``` ### GET /social/accounts List up to 50 selected social identities in the selected content workspace (organisation default when omitted). Credentials are never returned. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.accounts ``` curl "https://api.wrnexus.com/social/accounts?after=account-cursor" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "account-id", "provider": "facebook", "provider_account_id": "123456", "name": "Selected Page", "selected_at": "2026-10-19T10:00:00.000Z" } ], "nextCursor": null }, "requestId": "request-id" } ``` ### GET /social/account Read one selected social identity. Provider consent is managed in Account. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.account ``` curl "https://api.wrnexus.com/social/account?id=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "account-id", "provider": "facebook", "provider_account_id": "123456", "name": "Selected Page", "selected_at": "2026-10-19T10:00:00.000Z" }, "requestId": "request-id" } ``` ### GET /social/account-metrics Read latest stored provider counts with source, collection time and unavailable reasons. This does not refresh providers. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.account-metrics ``` curl "https://api.wrnexus.com/social/account-metrics?id=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": [ { "account_id": "account-id", "provider": "facebook", "provider_account_id": "123456", "metric": "facebookFollowers", "value": 125, "unavailable_reason": null, "source": "facebook.page", "collected_at": "2026-10-19T12:00:00.000Z", "period_kind": "count_at_collection" } ], "requestId": "request-id" } ``` ### GET /social/account-metric-history Read 50 stored counts for one selected account and provider metric with social.read. Scoped chronological cursors preserve unavailable values, zero, source and collection time. No provider request is made. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.account-metric-history ``` curl "https://api.wrnexus.com/social/account-metric-history?workspace=workspace-id&id=account-id&metric=facebookFollowers" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "account-id", "provider": "facebook", "provider_account_id": "123456", "metric": "facebookFollowers", "items": [ { "id": "account-measurement-id", "metric": "facebookFollowers", "value": 125, "unavailable_reason": null, "source": "facebook.page", "collected_at": "2026-10-22T12:00:00.000Z", "period_kind": "count_at_collection" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/create-post Create a draft and its first immutable version. Retries require the same requestKey and exact input. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.create-post ``` curl -X POST "https://api.wrnexus.com/social/create-post" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Launch draft", "body": "Content for review", "requestKey": "draft_create_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "post-id", "organization_id": "organization-id", "workspace_id": "organization-id", "title": "Launch draft", "body": "Content for review", "revision": 1, "created_by": "member-id", "created_at": "2026-10-19T10:00:00.000Z", "updated_at": "2026-10-19T10:00:00.000Z" }, "requestId": "request-id" } ``` ### POST /social/update-post Save a new content version using the current revision. Reusing a requestKey with changed input returns a conflict. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.update-post ``` curl -X POST "https://api.wrnexus.com/social/update-post" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "title": "Revised draft", "body": "Updated content for review", "revision": 1, "requestKey": "draft_update_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "post-id", "organization_id": "organization-id", "workspace_id": "organization-id", "title": "Revised draft", "body": "Updated content for review", "revision": 2, "created_by": "member-id", "created_at": "2026-10-19T10:00:00.000Z", "updated_at": "2026-10-19T10:05:00.000Z" }, "requestId": "request-id" } ``` ### GET /social/posts List drafts in the selected content workspace (organisation default when omitted). Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.posts ``` curl "https://api.wrnexus.com/social/posts?after=cursor" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [], "nextCursor": null }, "requestId": "request-id" } ``` ### GET /social/post Read a post in the selected content workspace (organisation default when omitted). Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post ``` curl "https://api.wrnexus.com/social/post?id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "post-id", "organization_id": "organization-id", "workspace_id": "organization-id", "title": "Launch draft", "body": "Content for review", "revision": 1, "created_by": "member-id", "created_at": "2026-10-19T10:00:00.000Z", "updated_at": "2026-10-19T10:00:00.000Z" }, "requestId": "request-id" } ``` ### GET /social/post-versions Read up to 100 immutable post versions with shared text and saved platform-text variants. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-versions ``` curl "https://api.wrnexus.com/social/post-versions?id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": [ { "revision": 1, "title": "Launch draft", "body": "Content for review", "actor_id": "member-id", "created_at": "2026-10-19T10:00:00.000Z", "media_json": "[]" } ], "requestId": "request-id" } ``` ### GET /social/post-version Read one exact immutable post revision with saved platform text and media references; file access is checked separately. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-version ``` curl "https://api.wrnexus.com/social/post-version?workspace=workspace-id&id=post-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1, "title": "Launch draft", "created_at": "2026-10-22T12:00:00.000Z", "body": "Content for review", "actor_id": "member-id", "media_json": "[]", "variants": { "facebook": "Reviewed Facebook caption" } }, "requestId": "illustrative-request" } ``` ### GET /social/post-version-history Page through immutable version metadata, newest first, with up to 50 items and a nextBefore revision cursor. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-version-history ``` curl "https://api.wrnexus.com/social/post-version-history?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 1, "title": "Launch draft", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextBefore": null }, "requestId": "illustrative-request" } ``` ### GET /social/post-variants Read the current post revision and platform overrides in the selected workspace with social.read. Missing platforms use shared text. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-variants ``` curl "https://api.wrnexus.com/social/post-variants?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "post-id", "revision": 1, "variants": { "facebook": "Reviewed Facebook caption" } }, "requestId": "illustrative-request" } ``` ### GET /social/calendar Read a UTC calendar month with reviewed version titles, stale approval markers and per-account results. Requires social.read and an explicit YYYY-MM month. Returns at most 500 scheduled requests with a truncation flag; does not queue, refresh providers or publish. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.calendar ``` curl "https://api.wrnexus.com/social/calendar?workspace=workspace-id&month=2026-11" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "month": "2026-11", "title": "November 2026", "previous": "2026-10", "next": "2026-12", "days": [ { "date": "2026-11-01", "number": 1, "inMonth": true, "items": [ { "id": "occurrence-review-1", "post_id": "post-id", "title": "Launch draft", "revision": 1, "current_revision": 1, "scheduled_at": "2026-11-01T12:00:00.000Z", "timezone": "Asia/Kolkata", "status": "pending", "stale": false, "versionAvailable": true, "time": "12:00", "targets": [] } ] }, { "date": "2026-11-02", "number": 2, "inMonth": true, "items": [] }, { "date": "2026-11-03", "number": 3, "inMonth": true, "items": [] }, { "date": "2026-11-04", "number": 4, "inMonth": true, "items": [] }, { "date": "2026-11-05", "number": 5, "inMonth": true, "items": [] }, { "date": "2026-11-06", "number": 6, "inMonth": true, "items": [] }, { "date": "2026-11-07", "number": 7, "inMonth": true, "items": [] }, { "date": "2026-11-08", "number": 8, "inMonth": true, "items": [ { "id": "occurrence-review-2", "post_id": "post-id", "title": "Launch draft", "revision": 1, "current_revision": 1, "scheduled_at": "2026-11-08T12:00:00.000Z", "timezone": "Asia/Kolkata", "status": "pending", "stale": false, "versionAvailable": true, "time": "12:00", "targets": [] } ] }, { "date": "2026-11-09", "number": 9, "inMonth": true, "items": [] }, { "date": "2026-11-10", "number": 10, "inMonth": true, "items": [] }, { "date": "2026-11-11", "number": 11, "inMonth": true, "items": [] }, { "date": "2026-11-12", "number": 12, "inMonth": true, "items": [] }, { "date": "2026-11-13", "number": 13, "inMonth": true, "items": [] }, { "date": "2026-11-14", "number": 14, "inMonth": true, "items": [] }, { "date": "2026-11-15", "number": 15, "inMonth": true, "items": [] }, { "date": "2026-11-16", "number": 16, "inMonth": true, "items": [] }, { "date": "2026-11-17", "number": 17, "inMonth": true, "items": [] }, { "date": "2026-11-18", "number": 18, "inMonth": true, "items": [] }, { "date": "2026-11-19", "number": 19, "inMonth": true, "items": [] }, { "date": "2026-11-20", "number": 20, "inMonth": true, "items": [] }, { "date": "2026-11-21", "number": 21, "inMonth": true, "items": [] }, { "date": "2026-11-22", "number": 22, "inMonth": true, "items": [] }, { "date": "2026-11-23", "number": 23, "inMonth": true, "items": [] }, { "date": "2026-11-24", "number": 24, "inMonth": true, "items": [] }, { "date": "2026-11-25", "number": 25, "inMonth": true, "items": [] }, { "date": "2026-11-26", "number": 26, "inMonth": true, "items": [] }, { "date": "2026-11-27", "number": 27, "inMonth": true, "items": [] }, { "date": "2026-11-28", "number": 28, "inMonth": true, "items": [] }, { "date": "2026-11-29", "number": 29, "inMonth": true, "items": [] }, { "date": "2026-11-30", "number": 30, "inMonth": true, "items": [] }, { "date": "2026-12-01", "number": 1, "inMonth": false, "items": [] }, { "date": "2026-12-02", "number": 2, "inMonth": false, "items": [] }, { "date": "2026-12-03", "number": 3, "inMonth": false, "items": [] }, { "date": "2026-12-04", "number": 4, "inMonth": false, "items": [] }, { "date": "2026-12-05", "number": 5, "inMonth": false, "items": [] }, { "date": "2026-12-06", "number": 6, "inMonth": false, "items": [] }, { "date": "2026-12-07", "number": 7, "inMonth": false, "items": [] }, { "date": "2026-12-08", "number": 8, "inMonth": false, "items": [] }, { "date": "2026-12-09", "number": 9, "inMonth": false, "items": [] }, { "date": "2026-12-10", "number": 10, "inMonth": false, "items": [] }, { "date": "2026-12-11", "number": 11, "inMonth": false, "items": [] }, { "date": "2026-12-12", "number": 12, "inMonth": false, "items": [] } ], "truncated": false }, "requestId": "illustrative-request" } ``` ### GET /social/publication-comment-replies Read up to 50 reply summaries under a freshly verified top-level video comment. Actor-bound encrypted references, current moderation and fresh Account ownership checks. No sending. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-comment-replies ``` curl "https://api.wrnexus.com/social/publication-comment-replies?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "youtube", "video_id": "abcdefghijk", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "parent-comment-id", "items": [ { "id": "reply-comment-id", "author": "Reader", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "parent_id": "parent-comment-id", "excerpt": "Literal reply for human review.", "excerpt_truncated": false, "ref": "encrypted-reply-reference" } ], "nextCursor": null, "source": "youtube.comments.list" }, "requestId": "illustrative-request" } ``` ### GET /social/publication-comment-reply Read one reply using its parent comment reference and private reply reference. Verify parent/video and page replies with bounded lookup. No sending or moderation writes. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-comment-reply ``` curl "https://api.wrnexus.com/social/publication-comment-reply?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference&reply=encrypted-reply-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "youtube", "video_id": "abcdefghijk", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "parent-comment-id", "reply": { "id": "reply-comment-id", "author": "Reader", "text": "Literal reply for human review.", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "parent_id": "parent-comment-id" }, "source": "youtube.comments.list" }, "requestId": "illustrative-request" } ``` ### POST /social/reconcile-publication-reply Confirm a selected existing reply against fresh parent/video, author, exact original text and time evidence. Never sends, retries or marks absent evidence as failed. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reconcile-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/reconcile-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "ref": "fresh-encrypted-parent-reference", "replyId": "reply-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "youtube", "state": "sent", "provider_reply_id": "reply-id", "failure_code": null, "body": "Reviewed YouTube reply.", "saved_reply": null, "reconciliation": { "provider_published_at": "2026-10-22T12:00:00.000Z", "verified_at": "2026-10-22T12:00:00.000Z" }, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/send-publication-reply Send text once to a verified top-level comment with current moderation consent and single-channel identity. Durable request-key receipt and unresolved-parent protection; unknown outcomes are never automatically resent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/send-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "body": "Reviewed YouTube reply.", "requestKey": "reviewed_youtube_reply_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "youtube", "state": "unknown", "provider_reply_id": null, "failure_code": null, "body": "Reviewed YouTube reply.", "saved_reply": null, "reconciliation": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/send-x-publication-reply Send reviewed weighted 280-character text once to a verified invited parent, with explicit Account reviewed-reply consent, AI disclosure and social.moderate. Unknown intent precedes the sole provider POST; uncertain outcomes never repost. Requires this exact operation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-x-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/send-x-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "body": "Reviewed X reply", "madeWithAi": false, "requestKey": "reviewed_x_reply_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "made_with_ai": false, "state": "unknown", "provider_reply_id": null, "failure_code": null, "body": "Reviewed X reply", "saved_reply": null, "reconciliation": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/confirm-x-publication-reply GET-only verification of the original sender’s saved acknowledged ID with a fresh parent reference. No caller reply ID, lost-ack inference or new provider POST. Requires social.moderate and this exact operation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.confirm-x-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/confirm-x-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "ref": "fresh-encrypted-parent-reference" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "made_with_ai": false, "state": "sent", "provider_reply_id": "790", "failure_code": null, "body": "Reviewed X reply", "saved_reply": null, "reconciliation": { "provider_published_at": "2026-10-22T12:00:00.000Z", "verified_at": "2026-10-22T12:00:00.000Z" }, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/send-linkedin-publication-reply Send reviewed text of at most 1250 characters once to a verified parent with current Account comment read/write consent and social.moderate. Durable unknown intent precedes the sole provider POST; uncertain outcomes never repost. Requires this exact key operation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-linkedin-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/send-linkedin-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "body": "Reviewed LinkedIn reply.", "requestKey": "reviewed_linkedin_reply_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "urn:li:comment:(urn:li:activity:456,789)", "provider": "linkedin", "state": "unknown", "provider_reply_id": null, "failure_code": null, "body": "Reviewed LinkedIn reply.", "saved_reply": null, "reconciliation": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/confirm-linkedin-publication-reply GET-only evidence for the original sender’s saved acknowledged reply ID and parent reference. No caller reply ID, inferred lost-ack mapping, new send or automatic POST retry. Requires social.moderate and this exact operation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.confirm-linkedin-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/confirm-linkedin-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "ref": "fresh-encrypted-parent-reference" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "urn:li:comment:(urn:li:activity:456,789)", "provider": "linkedin", "state": "sent", "provider_reply_id": "urn:li:comment:(urn:li:activity:456,790)", "failure_code": null, "body": "Reviewed LinkedIn reply.", "saved_reply": null, "reconciliation": { "provider_published_at": "2026-10-22T12:00:00.000Z", "verified_at": "2026-10-22T12:00:00.000Z" }, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/send-instagram-publication-reply Send reviewed text of at most 2000 characters once to a verified visible parent with current Account comment consent and social.moderate. Durable unknown intent precedes the sole provider POST; uncertain outcomes never repost. Requires this exact key operation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-instagram-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/send-instagram-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "body": "Reviewed Instagram reply.", "requestKey": "reviewed_instagram_reply_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "instagram", "state": "unknown", "provider_reply_id": null, "failure_code": null, "body": "Reviewed Instagram reply.", "saved_reply": null, "reconciliation": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/confirm-instagram-publication-reply GET-only evidence for the original sender’s saved acknowledged reply ID and parent reference. No caller reply ID, inferred lost-ack mapping, new send or automatic POST retry. Requires social.moderate and this exact operation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.confirm-instagram-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/confirm-instagram-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "ref": "fresh-encrypted-parent-reference" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "instagram", "state": "sent", "provider_reply_id": "790", "failure_code": null, "body": "Reviewed Instagram reply.", "saved_reply": null, "reconciliation": { "provider_published_at": "2026-10-22T12:00:00.000Z", "verified_at": "2026-10-22T12:00:00.000Z" }, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/send-facebook-publication-reply Send text once to a verified parent with explicit Account reply consent, current moderation, Page task and reply capability. Durable intent precedes dispatch; uncertain outcomes never automatically repost. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-facebook-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/send-facebook-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "body": "Reviewed Facebook reply.", "requestKey": "reviewed_facebook_reply_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "facebook", "state": "unknown", "provider_reply_id": null, "failure_code": null, "body": "Reviewed Facebook reply.", "saved_reply": null, "reconciliation": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/reconcile-facebook-publication-reply Use fresh read-only nested evidence to match the original Page, parent, exact text, binding and submission window. Requires current moderation and comment reads; never sends a reply. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reconcile-facebook-publication-reply ``` curl -X POST "https://api.wrnexus.com/social/reconcile-facebook-publication-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "send-id", "ref": "fresh-encrypted-parent-reference", "replyId": "456_790" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "facebook", "state": "sent", "provider_reply_id": "456_790", "failure_code": null, "body": "Reviewed Facebook reply.", "saved_reply": null, "reconciliation": { "provider_published_at": "2026-10-22T12:00:00.000Z", "verified_at": "2026-10-22T12:00:00.000Z" }, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/reply-sends Read 50 send summaries for the original creator and workspace. No provider calls. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reply-sends ``` curl "https://api.wrnexus.com/social/reply-sends?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "state": "unknown", "provider_reply_id": null, "failure_code": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/reply-send Read the exact submitted text and durable sent, failed or unknown outcome. Current moderation access required; no retry action. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reply-send ``` curl "https://api.wrnexus.com/social/reply-send?workspace=workspace-id&id=send-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "state": "unknown", "provider_reply_id": null, "failure_code": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "body": "Reviewed reply for human review.", "made_with_ai": false, "reconciliation": null, "saved_reply": { "id": "saved-reply-id", "revision": 1 } }, "requestId": "illustrative-request" } ``` ### GET /social/publication-comments Read up to 50 YouTube thread summaries from the selected queue, nullable provider reply capability and reply counts for an owned confirmed publication. Current moderation, Account consent and channel/video ownership are rechecked. No sending or persistence. Optional moderationStatus selects published, heldForReview or likelySpam; non-published queues require Account manage consent and queue-bound cursors. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-comments ``` curl "https://api.wrnexus.com/social/publication-comments?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "youtube", "video_id": "abcdefghijk", "collected_at": "2026-10-22T12:00:00.000Z", "items": [ { "id": "parent-comment-id", "author": "Reader", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "reply_count": 1, "can_reply": true, "excerpt": "Literal comment for human review.", "excerpt_truncated": false, "ref": "encrypted-parent-reference" } ], "nextCursor": null, "source": "youtube.commentThreads.list" }, "requestId": "illustrative-request" } ``` ### GET /social/publication-comment Read a top-level comment through its actor/publication-bound reference and verified video thread page. References expire after 15 minutes; moved-comment lookup is bounded to ten pages. No sending, replies or moderation action. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-comment ``` curl "https://api.wrnexus.com/social/publication-comment?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "youtube", "video_id": "abcdefghijk", "collected_at": "2026-10-22T12:00:00.000Z", "comment": { "id": "parent-comment-id", "author": "Reader", "text": "Literal comment for human review.", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "reply_count": 1, "can_reply": true }, "source": "youtube.commentThreads.list" }, "requestId": "illustrative-request" } ``` ### GET /social/publication-outcome Read the exact stored published/failed outcome identity, content revision, actor when known and time with current social.read. A null record means no evidence was captured; current status is never used to infer or backfill it. No provider is contacted and no webhook delivery is implied. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-outcome ``` curl "https://api.wrnexus.com/social/publication-outcome?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "state": "unknown", "record": null, "source": "social.publication_outcomes" }, "requestId": "illustrative-request" } ``` ### GET /social/publication-metrics Read latest stored measurements for the exact publication account and provider post with social.read. Measurements match the selected account provider while it exists; disconnected history remains readable. Missing values stay unavailable; no provider refresh occurs. Returns at most 500 metrics with a truncation flag. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-metrics ``` curl "https://api.wrnexus.com/social/publication-metrics?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "post_id": "post-id", "account_id": "account-id", "provider_post_id": "123_456", "truncated": false, "metrics": [ { "account_id": "account-id", "provider": "facebook", "provider_post_id": "123_456", "metric": "facebookReactions", "value": 0, "period_start": "2026-10-22T12:00:00.000Z", "period_end": "2026-10-22T12:00:00.000Z", "collected_at": "2026-10-22T12:00:00.000Z", "unavailable_reason": null, "source": "facebook.post.reactions.summary", "period_kind": "count_at_collection" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/refresh-linkedin-publication-metrics Collect eleven lifetime counts for an exact confirmed member publication with social.manage, explicit Account r_member_postAnalytics consent and API version 202608 or later. Reserves eleven LinkedIn provider requests before reading; a failed or interrupted batch retains its admission and stores no partial sample. Publishing allowance is unchanged. Counts are best-effort and missing values remain unavailable. POST is never automatically retried. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.refresh-linkedin-publication-metrics ``` curl -X POST "https://api.wrnexus.com/social/refresh-linkedin-publication-metrics" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "collected_at": "2026-10-21T12:00:00.000Z", "measurements": 11 }, "requestId": "request-id" } ``` ### POST /social/refresh-x-publication-metrics Refresh six public combined X counts for an exact confirmed publication with social.manage and current Account read consent. One bounded provider GET is admitted against the X request budget; publishing allowance is unchanged. Missing counts remain unavailable. Every explicit refresh may use a provider read; POST is never automatically retried. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.refresh-x-publication-metrics ``` curl -X POST "https://api.wrnexus.com/social/refresh-x-publication-metrics" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "collected_at": "2026-10-21T12:00:00.000Z", "measurements": 6 }, "requestId": "request-id" } ``` ### GET /social/instagram-publication-replies Read up to 50 current replies through a scoped expiring parent reference. Verifies owned media and parent membership before and after reads; requires social.moderate and current Account comment consent. No provider writes. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-publication-replies ``` curl "https://api.wrnexus.com/social/instagram-publication-replies?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "instagram", "provider_post_id": "456", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "789", "items": [ { "id": "790", "author": "reader", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false, "excerpt": "Literal reply for human review.", "excerpt_truncated": false, "ref": "encrypted-reply-reference" } ], "nextCursor": null, "source": "instagram.comment.replies" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-publication-reply Read current reply text through its parent and reply references. Both references expire after 15 minutes and are actor/workspace/publication bound; membership lookup is bounded. Requires current social.moderate and Account consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-publication-reply ``` curl "https://api.wrnexus.com/social/instagram-publication-reply?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference&reply=encrypted-reply-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "instagram", "provider_post_id": "456", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "789", "comment": { "id": "790", "text": "Literal reply for human review.", "author": "reader", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false }, "source": "instagram.comment.replies" }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-publication-replies Read up to 50 current replies through a scoped expiring parent reference. Verifies owned media and parent membership before and after reads; requires social.moderate and current Account comment consent. No provider writes. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-publication-replies ``` curl "https://api.wrnexus.com/social/linkedin-publication-replies?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "linkedin", "provider_post_id": "urn:li:share:456", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "urn:li:comment:(urn:li:activity:999,789)", "items": [ { "id": "790", "urn": "urn:li:comment:(urn:li:activity:999,790)", "object": "urn:li:activity:999", "actor": "urn:li:person:reader", "createdAt": "2026-10-22T12:00:00.000Z", "likes": 0, "excerpt": "Literal reply for human review.", "excerpt_truncated": false, "ref": "encrypted-reply-reference" } ], "nextCursor": null, "source": "linkedin.socialActions.commentReplies" }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-publication-reply Read current reply text through its parent and reply references. Both references expire after 15 minutes and are actor/workspace/publication bound; membership lookup is bounded. Requires current social.moderate and Account consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-publication-reply ``` curl "https://api.wrnexus.com/social/linkedin-publication-reply?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference&reply=encrypted-reply-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "linkedin", "provider_post_id": "urn:li:share:456", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "urn:li:comment:(urn:li:activity:999,789)", "comment": { "id": "790", "urn": "urn:li:comment:(urn:li:activity:999,790)", "object": "urn:li:activity:999", "actor": "urn:li:person:reader", "text": "Literal reply for human review.", "createdAt": "2026-10-22T12:00:00.000Z", "likes": 0 }, "source": "linkedin.socialActions.commentReplies" }, "requestId": "illustrative-request" } ``` ### GET /social/x-publication-replies Read up to 50 direct replies to a current parent comment on a saved X publication. Requires social.moderate and current Account read consent. Parent membership is verified before and after the child edge; five provider GETs per read, recent seven-day coverage and encrypted parent-bound cursors. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.x-publication-replies ``` curl "https://api.wrnexus.com/social/x-publication-replies?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "x", "provider_post_id": "456", "parent_id": "789", "items": [ { "id": "790", "authorId": "999", "conversationId": "444", "parentId": "789", "createdAt": null, "likes": 0, "replies": null, "excerpt": "Illustrative nested reply", "excerpt_truncated": false, "ref": "encrypted-child-reference" } ], "nextCursor": null, "coverage": "recent_7_days", "collected_at": "2026-10-22T12:00:00.000Z", "source": "x.search.recent.nested_replies" }, "requestId": "x-replies" } ``` ### GET /social/x-publication-reply Read exact current reply text using parent and child scoped references. Requires social.moderate/current Account consent; five admitted GETs revalidate parent and publication membership. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.x-publication-reply ``` curl "https://api.wrnexus.com/social/x-publication-reply?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference&reply=encrypted-child-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "x", "provider_post_id": "456", "parent_id": "789", "reply": { "id": "790", "authorId": "999", "conversationId": "444", "parentId": "789", "text": "Illustrative nested reply", "createdAt": null, "likes": 0, "replies": null }, "collected_at": "2026-10-22T12:00:00.000Z", "source": "x.post.nested_reply" }, "requestId": "x-reply" } ``` ### GET /social/x-publication-comments Read up to 50 direct replies from the last seven days for a saved confirmed X publication. Requires social.moderate and current Account X read consent. Encrypted scoped references expire after 15 minutes. Each list read charges three provider GETs; empty search is not lifetime zero engagement. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.x-publication-comments ``` curl "https://api.wrnexus.com/social/x-publication-comments?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "x", "provider_post_id": "456", "items": [ { "id": "789", "authorId": "999", "conversationId": "444", "parentId": "456", "createdAt": null, "likes": 0, "replies": null, "excerpt": "Illustrative direct reply", "excerpt_truncated": false, "ref": "encrypted-comment-reference" } ], "nextCursor": null, "coverage": "recent_7_days", "collected_at": "2026-10-22T12:00:00.000Z", "source": "x.search.recent.direct_replies" }, "requestId": "x-comments" } ``` ### GET /social/x-publication-comment Read current exact direct-reply text through an expiring actor/workspace/publication reference. Requires social.moderate and current Account read consent; three bounded provider GETs revalidate publication identity and membership. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.x-publication-comment ``` curl "https://api.wrnexus.com/social/x-publication-comment?workspace=workspace-id&id=publication-id&ref=encrypted-comment-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "x", "provider_post_id": "456", "comment": { "id": "789", "authorId": "999", "conversationId": "444", "parentId": "456", "text": "Illustrative direct reply", "createdAt": null, "likes": 0, "replies": null }, "collected_at": "2026-10-22T12:00:00.000Z", "source": "x.post.direct_reply" }, "requestId": "x-comment" } ``` ### GET /social/linkedin-publication-comments Read up to 50 current top-level comments from a saved confirmed LinkedIn publication. Requires social.moderate and current Account restricted comment-read consent. Encrypted scoped references expire after 15 minutes; no provider writes or persisted text. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-publication-comments ``` curl "https://api.wrnexus.com/social/linkedin-publication-comments?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "linkedin", "provider_post_id": "urn:li:share:456", "collected_at": "2026-10-22T12:00:00.000Z", "items": [ { "id": "789", "urn": "urn:li:comment:(urn:li:activity:999,789)", "object": "urn:li:activity:999", "actor": "urn:li:person:reader", "createdAt": "2026-10-22T12:00:00.000Z", "likes": 0, "excerpt": "Literal comment for human review.", "excerpt_truncated": false, "ref": "encrypted-parent-reference" } ], "nextCursor": null, "source": "linkedin.socialActions.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-publication-comment Read current comment text through an expiring scoped list reference. Membership lookup is bounded to eleven bounded comment pages. Requires social.moderate and current Account restricted comment-read consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-publication-comment ``` curl "https://api.wrnexus.com/social/linkedin-publication-comment?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "linkedin", "provider_post_id": "urn:li:share:456", "collected_at": "2026-10-22T12:00:00.000Z", "comment": { "id": "789", "urn": "urn:li:comment:(urn:li:activity:999,789)", "object": "urn:li:activity:999", "actor": "urn:li:person:reader", "text": "Literal comment for human review.", "createdAt": "2026-10-22T12:00:00.000Z", "likes": 0 }, "source": "linkedin.socialActions.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-publication-comments Read up to 50 current top-level comments from a confirmed owned Instagram publication. Requires social.moderate and current Account comment consent. Encrypted scoped references expire after 15 minutes; no provider writes or persisted text. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-publication-comments ``` curl "https://api.wrnexus.com/social/instagram-publication-comments?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "instagram", "provider_post_id": "456", "collected_at": "2026-10-22T12:00:00.000Z", "items": [ { "id": "789", "author": "reader", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false, "excerpt": "Literal comment for human review.", "excerpt_truncated": false, "ref": "encrypted-parent-reference" } ], "nextCursor": null, "source": "instagram.post.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-publication-comment Read current comment text through an expiring scoped list reference. Membership lookup is bounded to ten media comment pages. Requires social.moderate and current Account comment consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-publication-comment ``` curl "https://api.wrnexus.com/social/instagram-publication-comment?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "instagram", "provider_post_id": "456", "collected_at": "2026-10-22T12:00:00.000Z", "comment": { "id": "789", "text": "Literal comment for human review.", "author": "reader", "like_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false }, "source": "instagram.post.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-publication-comments Read up to 50 live top-level comments from a confirmed published Page post. Requires social.moderate, current Account Page read consent and this exact key operation. Paging references are encrypted, scoped and expire after 15 minutes. No replies, provider writes or persistent comment content. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-publication-comments ``` curl "https://api.wrnexus.com/social/facebook-publication-comments?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-22T12:00:00.000Z", "items": [ { "id": "789", "author": "Reader", "author_id": "222", "can_reply": true, "like_count": 0, "reply_count": 1, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false, "is_private": false, "excerpt": "Literal comment for human review.", "excerpt_truncated": false, "ref": "encrypted-parent-reference" } ], "nextCursor": null, "source": "facebook.post.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-publication-comment Read a current top-level comment through a scoped expiring reference from its verified Page post. Requires social.moderate and current Account consent. Lookup is bounded to ten post-comment pages; there is no arbitrary comment-ID lookup or provider write. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-publication-comment ``` curl "https://api.wrnexus.com/social/facebook-publication-comment?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-22T12:00:00.000Z", "comment": { "id": "789", "text": "Literal comment for human review.", "author": "Reader", "author_id": "222", "can_reply": true, "like_count": 0, "reply_count": 1, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false, "is_private": false }, "source": "facebook.post.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-publication-replies Read up to 50 replies to a verified top-level comment. Requires the parent reference, current social.moderate and Account consent. Opaque paging is bound to the parent and actor; no provider writes or stored comment text. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-publication-replies ``` curl "https://api.wrnexus.com/social/facebook-publication-replies?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "789", "items": [ { "id": "790", "author": "Reader", "author_id": "222", "can_reply": true, "like_count": 0, "reply_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false, "is_private": false, "excerpt": "Literal reply for human review.", "excerpt_truncated": false, "ref": "encrypted-reply-reference" } ], "nextCursor": null, "source": "facebook.comment.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-publication-reply Read current reply text through scoped parent and reply references. Parent membership is rechecked before and after bounded lookup. Requires current social.moderate and Account consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-publication-reply ``` curl "https://api.wrnexus.com/social/facebook-publication-reply?workspace=workspace-id&id=publication-id&ref=encrypted-parent-reference&reply=encrypted-reply-reference" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-22T12:00:00.000Z", "parent_id": "789", "comment": { "id": "790", "text": "Literal reply for human review.", "author": "Reader", "author_id": "222", "can_reply": true, "like_count": 0, "reply_count": 0, "published_at": "2026-10-22T12:00:00.000Z", "is_hidden": false, "is_private": false }, "source": "facebook.comment.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/publication-metric-history Read 50 immutable measurements for an exact publication, provider and metric with social.read. The provider must match the selected account while it exists; disconnected history remains readable. A selection change during the read refuses the result. Chronological cursor pages retain zero, missing values, source and reporting periods. This never calls a provider. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-metric-history ``` curl "https://api.wrnexus.com/social/publication-metric-history?workspace=workspace-id&id=publication-id&provider=facebook&metric=facebookReactions" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "post_id": "post-id", "account_id": "account-id", "provider_post_id": "123_456", "provider": "facebook", "metric": "facebookReactions", "items": [ { "id": "measurement-id", "account_id": "account-id", "provider": "facebook", "provider_post_id": "123_456", "metric": "facebookReactions", "value": 0, "period_start": "2026-10-22T12:00:00.000Z", "period_end": "2026-10-22T12:00:00.000Z", "collected_at": "2026-10-22T12:00:00.000Z", "unavailable_reason": null, "source": "facebook.post.reactions.summary", "period_kind": "count_at_collection" }, { "id": "earlier-measurement-id", "account_id": "account-id", "provider": "facebook", "provider_post_id": "123_456", "metric": "facebookReactions", "value": null, "period_start": "2026-10-21T12:00:00.000Z", "period_end": "2026-10-21T12:00:00.000Z", "collected_at": "2026-10-21T12:00:00.000Z", "unavailable_reason": "Provider count unavailable", "source": "facebook.post.reactions.summary", "period_kind": "count_at_collection" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/apply-text-variant Apply reviewed text from an owned completed text request to one platform caption. Requires social.update and social.ai.generate, the opened post revision and exact requestKey. Creates a new revision without generation, spending, approval or publication. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.apply-text-variant ``` curl -X POST "https://api.wrnexus.com/social/apply-text-variant?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "revision": 1, "draftId": "draft-id", "platform": "x", "body": "Human-reviewed generated copy", "requestKey": "text_variant_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "post-id", "revision": 2, "draft_id": "draft-id", "platform": "x" }, "requestId": "illustrative-request" } ``` ### POST /social/set-post-variants Replace platform overrides with social.update, the opened revision and an exact requestKey. An empty map restores shared text. Creates a new immutable revision and requires fresh approval; does not publish. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.set-post-variants ``` curl -X POST "https://api.wrnexus.com/social/set-post-variants?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "revision": 1, "variants": { "x": "Reviewed X copy", "linkedin": "Reviewed LinkedIn copy" }, "requestKey": "post_variants_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "post-id", "revision": 2, "variants": { "x": "Reviewed X copy", "linkedin": "Reviewed LinkedIn copy" } }, "requestId": "illustrative-request" } ``` ### GET /social/post-media Read the current revision and its Drive attachment references. This does not grant file access or report current scan status. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-media ``` curl "https://api.wrnexus.com/social/post-media?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "post_id": "post-id", "revision": 1, "format_checks": [ { "provider": "facebook", "label": "Facebook", "supported": true, "message": "Text post" }, { "provider": "instagram", "label": "Instagram", "supported": false, "message": "Attach one JPEG image, one MP4 reel, or 2–10 JPEG/MP4 carousel files. Export JPEG or MP4 from the media studio." }, { "provider": "linkedin", "label": "LinkedIn", "supported": true, "message": "Text post" }, { "provider": "youtube", "label": "YouTube", "supported": false, "message": "Attach one MP4 or WebM video." }, { "provider": "x", "label": "X", "supported": true, "message": "Text post" } ], "items": [] }, "requestId": "illustrative-request" } ``` ### GET /social/post-reviews List up to 50 approval requests for a post, ordered by identity, with a continuation cursor. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-reviews ``` curl "https://api.wrnexus.com/social/post-reviews?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "review-id", "post_id": "post-id", "revision": 1, "current_revision": 1, "stale": false, "account_ids": [ "account-id" ], "scheduled_at": null, "timezone": "Asia/Kolkata", "requested_by": "member-id", "requested_at": "2026-10-22T12:00:00.000Z", "status": "pending", "decided_by": null, "decided_at": null } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/review Read an approval decision, schedule, material provider choices and exact reviewed content snapshot, including selected platform-text variants. This does not approve or publish. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.review ``` curl "https://api.wrnexus.com/social/review?workspace=workspace-id&id=review-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "review-id", "post_id": "post-id", "revision": 1, "current_revision": 1, "stale": false, "account_ids": [ "account-id" ], "scheduled_at": null, "timezone": "Asia/Kolkata", "requested_by": "member-id", "requested_at": "2026-10-22T12:00:00.000Z", "status": "pending", "decided_by": null, "decided_at": null, "provider_options": { "facebook": { "published": true, "madeWithAi": false } }, "content": { "title": "Launch draft", "body": "Content for review", "variants": { "facebook": "Reviewed Facebook caption" }, "media": [] } }, "requestId": "illustrative-request" } ``` ### POST /social/decide-review Approve or reject an exact reviewed revision with social.approve. Retries require the same requestKey and input; this does not queue or publish. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.decide-review ``` curl -X POST "https://api.wrnexus.com/social/decide-review?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "review-id", "revision": 1, "decision": "approved", "requestKey": "review_decide_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "review-id", "post_id": "post-id", "revision": 1, "status": "approved", "decided_by": "approver-id", "decided_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/request-review Create a pending approval for an exact post version, selected accounts and provider choices with social.update. LinkedIn accepts text or one still JPEG/PNG image; dispatch checks private Drive bytes and publishing consent, and confirms only a positive Post receipt. Older image jobs retain their recorded status-read requirements. Threads accepts text up to 500 characters or one clean Drive JPEG with threads.mediaTransfer=true. This does not queue or publish. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.request-review ``` curl -X POST "https://api.wrnexus.com/social/request-review?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "postId": "post-id", "revision": 1, "accountIds": [ "account-id" ], "scheduledAt": null, "timezone": "Asia/Kolkata", "x": { "madeWithAi": false }, "requestKey": "review_request_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "review-id", "post_id": "post-id", "revision": 1, "current_revision": 1, "stale": false, "account_ids": [ "account-id" ], "scheduled_at": null, "timezone": "Asia/Kolkata", "requested_by": "member-id", "requested_at": "2026-10-22T12:00:00.000Z", "status": "pending", "decided_by": null, "decided_at": null, "provider_options": { "x": { "madeWithAi": false } }, "content": { "title": "Reviewed draft", "body": "Reviewed draft content", "variants": {}, "media": [] } }, "requestId": "illustrative-request" } ``` ### POST /social/attach-media Attach an authorised, clean Drive file to the current post version with social.update and an idempotency requestKey. No file URL or grant is created. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.attach-media ``` curl -X POST "https://api.wrnexus.com/social/attach-media?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "revision": 1, "driveNodeId": "clean-drive-node-id", "driveWorkspaceId": "drive-workspace-id", "requestKey": "media_attach_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "post_id": "post-id", "revision": 2, "items": [ { "node_id": "clean-drive-node-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/reorder-media Save an exact ordered permutation of current attachment IDs with social.update, the current revision and an idempotency requestKey. Creates a new version; prior approval snapshots and Drive files are preserved. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reorder-media ``` curl -X POST "https://api.wrnexus.com/social/reorder-media?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "revision": 1, "driveNodeIds": [ "clean-drive-node-id" ], "requestKey": "media_reorder_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "post_id": "post-id", "revision": 2, "items": [ { "node_id": "clean-drive-node-id", "drive_workspace_id": "drive-workspace-id", "name": "example.png" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/remove-media Remove a reference from the current post version with social.update and an idempotency requestKey. The Drive file and previous versions are preserved. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.remove-media ``` curl -X POST "https://api.wrnexus.com/social/remove-media?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "post-id", "revision": 1, "driveNodeId": "clean-drive-node-id", "requestKey": "media_remove_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "post_id": "post-id", "revision": 2, "items": [] }, "requestId": "illustrative-request" } ``` ### POST /social/queue-review Queue an exact approved revision with social.publish and a requestKey. The worker rechecks access, content, Drive and allowance before provider dispatch. Scheduled targets more than five minutes late pause for a new review before allowance reservation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.queue-review ``` curl -X POST "https://api.wrnexus.com/social/queue-review?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "review-id", "revision": 1, "requestKey": "review_queue_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "review_id": "review-id", "post_id": "post-id", "revision": 1, "targets": [ { "id": "publication-id", "account_id": "account-id", "due_at": "2026-10-22T12:00:00.000Z", "state": "queued" } ] }, "requestId": "illustrative-request" } ``` ### GET /social/post-publications List up to 50 per-account publishing targets ordered by identity with a continuation cursor. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-publications ``` curl "https://api.wrnexus.com/social/post-publications?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "publication-id", "review_id": "review-id", "post_id": "post-id", "revision": 1, "account_id": "account-id", "provider": "facebook", "due_at": "2026-10-22T12:00:00.000Z", "state": "queued", "provider_post_id": null, "failure_code": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/publication Read one per-account target state, reported provider identity and nullable aggregate LinkedIn image, X media and Instagram carousel/Story workflow progress without credentials, leases or upload sessions. Progress counts and cadence hints grant no action authority. Only published state confirms publication. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication ``` curl "https://api.wrnexus.com/social/publication?id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "review_id": "review-id", "post_id": "post-id", "revision": 2, "account_id": "linkedin-account", "provider": "linkedin", "due_at": "2026-10-21T00:00:00.000Z", "state": "unknown", "provider_post_id": null, "failure_code": "linkedin-image-processing-pending", "created_at": "2026-10-21T00:00:00.000Z", "updated_at": "2026-10-21T00:01:00.000Z", "x_media": null, "x_video": null, "instagram_carousel": null, "linkedin_video": null, "linkedin_image": { "phase": "processing", "counts": { "initialized": 1, "uploaded": 0, "ready": 0, "published": 0 }, "checks": 2, "automatic_stopped": false, "next_check_at": "2026-10-21T00:02:00.000Z", "updated_at": "2026-10-21T00:01:00.000Z", "source": "social.linkedin_image_jobs" } }, "requestId": "request-id" } ``` ### POST /social/confirm-instagram-story Use current Account consent and GET-only evidence for the original publisher’s durable accepted Story ID. Requires social.publish and this exact key operation. Does not create or publish media, reset check budgets or consume allowance without positive evidence. Explicit calls may read the provider; a committed confirmation returns its durable result. No automatic POST retry. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.confirm-instagram-story ``` curl -X POST "https://api.wrnexus.com/social/confirm-instagram-story?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "state": "published", "provider_post_id": "777", "changed": true, "source": "instagram.saved_story_confirmation" }, "requestId": "illustrative-request" } ``` ### POST /social/cancel-publication Cancel a queued or paused target with social.publish and a requestKey. Active claims, attempts, uploads, held/consumed allowance and provider posts prevent cancellation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.cancel-publication ``` curl -X POST "https://api.wrnexus.com/social/cancel-publication?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "requestKey": "publication_cancel_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "post_id": "post-id", "revision": 1, "state": "cancelled", "cancelled_by": "member-id", "cancelled_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/resume-publication Explicitly requeue an unstarted paused target as its original publisher with social.publish, an exact revision and requestKey. Current approval and available allowance are required. Started or uncertain work and missed schedules cannot resume. The worker rechecks provider access and reserves allowance at dispatch. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.resume-publication ``` curl -X POST "https://api.wrnexus.com/social/resume-publication?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "revision": 1, "requestKey": "publication_resume_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "publication-id", "post_id": "post-id", "revision": 1, "state": "queued", "resumed_by": "member-id", "resumed_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/moderate-youtube-comment Requires explicit status, banAuthor, confirmModeration=true, confirmAuthorBan matching the ban choice, previousId, publicationId/revision/commentId/requestKey, current read/moderate access and existing Account manage consent. Rejection also needs delete permission; banning also needs manage permission. Unknown outcomes are never resent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.moderate-youtube-comment ``` curl -X POST "https://api.wrnexus.com/social/moderate-youtube-comment?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "publicationId": "publication-id", "revision": 1, "commentId": "comment-id", "requestKey": "moderate_comment_001", "previousId": null, "moderationStatus": "heldForReview", "banAuthor": false, "confirmModeration": true, "confirmAuthorBan": false }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "receipt-id", "publication_id": "publication-id", "revision": 1, "account_id": "account-id", "actor_id": "member-id", "sequence": 1, "previous_id": null, "moderation_status": "heldForReview", "ban_author": false, "state": "accepted", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z" }, "requestId": "moderation" } ``` ### GET /social/comment-moderation Read scoped stored moderation evidence and audit by id with current read/moderate access and exact operation grant; no provider request. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.comment-moderation ``` curl "https://api.wrnexus.com/social/comment-moderation?workspace=workspace-id&id=receipt-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "receipt-id", "publication_id": "publication-id", "revision": 1, "account_id": "account-id", "actor_id": "member-id", "sequence": 1, "previous_id": null, "moderation_status": "heldForReview", "ban_author": false, "state": "accepted", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z", "events": [ { "actor_id": "member-id", "state": "intent", "occurred_at": "2026-10-22T12:00:00.000Z" }, { "actor_id": "member-id", "state": "accepted", "occurred_at": "2026-10-22T12:00:01.000Z" } ] }, "requestId": "moderation-receipt" } ``` ### GET /social/comment-moderations List scoped stored moderation receipts for publication id with optional after cursor. Provider identities and attempt claims are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.comment-moderations ``` curl "https://api.wrnexus.com/social/comment-moderations?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [], "next_after": null }, "requestId": "moderation-history" } ``` ### POST /social/delete-youtube-comment Requires confirmDeletion=true, exact publicationId/revision/commentId/requestKey, current read/moderate/delete access, existing Account YouTube manage consent and current channel/video/comment author evidence. Only channel-authored comments are eligible; uncertain attempts never resend. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.delete-youtube-comment ``` curl -X POST "https://api.wrnexus.com/social/delete-youtube-comment?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "publicationId": "publication-id", "revision": 1, "commentId": "authored-comment-id", "requestKey": "delete_comment_001", "confirmDeletion": true }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "receipt-id", "publication_id": "publication-id", "revision": 1, "account_id": "account-id", "actor_id": "member-id", "state": "unknown", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "comment-delete" } ``` ### GET /social/comment-deletion Read scoped stored deletion acknowledgement and local audit by id. Requires current read/moderate access and exact operation grant; makes no provider call. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.comment-deletion ``` curl "https://api.wrnexus.com/social/comment-deletion?workspace=workspace-id&id=receipt-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "receipt-id", "publication_id": "publication-id", "revision": 1, "account_id": "account-id", "actor_id": "member-id", "state": "accepted", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z", "events": [ { "actor_id": "member-id", "state": "intent", "occurred_at": "2026-10-22T12:00:00.000Z" }, { "actor_id": "member-id", "state": "accepted", "occurred_at": "2026-10-22T12:00:01.000Z" } ] }, "requestId": "comment-delete-receipt" } ``` ### GET /social/comment-deletions Read scoped deletion receipts for publication id with optional after cursor. Private provider identities and attempt tokens are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.comment-deletions ``` curl "https://api.wrnexus.com/social/comment-deletions?workspace=workspace-id&id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "receipt-id", "publication_id": "publication-id", "revision": 1, "account_id": "account-id", "actor_id": "member-id", "state": "accepted", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z" } ], "next_after": null }, "requestId": "comment-delete-history" } ``` ### POST /social/delete-x-publication Requires confirmDeletion=true, original publisher, exact published revision, requestKey, current social.delete and social.publish, separate Account deletion consent and positive X author evidence. Provider-request caps apply. Exact retries recover the receipt; uncertain attempts never resend. An accepted receipt records provider acknowledgement and preserves historical publication allowance. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.delete-x-publication ``` curl -X POST "https://api.wrnexus.com/social/delete-x-publication" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "revision": 3, "requestKey": "delete_publication_0001", "confirmDeletion": true }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "deletion-id", "publication_id": "publication-id", "post_id": "post-id", "revision": 3, "account_id": "account-id", "provider": "x", "state": "unknown", "provider_status": null, "actor_id": "publisher-id", "created_at": "2026-10-21T12:00:00.000Z", "updated_at": "2026-10-21T12:00:01.000Z" }, "requestId": "request-id" } ``` ### GET /social/publication-deletion Read nullable deletion evidence and up to four local audit events with current social.read and this exact operation grant. No provider request or Account consent is needed to read scoped stored history; connection metadata and attempt claims are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publication-deletion ``` curl "https://api.wrnexus.com/social/publication-deletion?id=publication-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "deletion": null, "events": [], "source": "social.publication_deletion_events" }, "requestId": "request-id" } ``` ### GET /social/media-models Read priced and configured image/video models supported by the Social builder. Requires social.ai.generate; this does not generate content or spend balance. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.media-models ``` curl "https://api.wrnexus.com/social/media-models?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "currency": "INR", "items": [ { "id": "model-id", "name": "Configured image model", "operation": "image", "controls": [ { "key": "size", "label": "Image size", "numeric": false, "required": true, "options": [ { "value": "1024x1024", "label": "1024x1024" } ] } ] } ] }, "requestId": "illustrative-request" } ``` ### GET /social/post-generations Read up to 50 of the key creator’s media requests linked to this post, newest first. Requires social.ai.generate and social.update. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-generations ``` curl "https://api.wrnexus.com/social/post-generations?workspace=workspace-id&id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "brief": "Create an illustration for human review.", "state": "completed", "saved_count": 1 } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/generations Read up to 50 of the key creator’s own media requests and stored statuses, newest first, with an after cursor. Requires social.ai.generate. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.generations ``` curl "https://api.wrnexus.com/social/generations?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "brief": "Create an illustration for human review.", "state": "completed", "saved_count": 1 } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/generation Read the key creator’s saved settings, stored run status, charge and saved Drive references. Provider outputs, credentials and download links are excluded. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.generation ``` curl "https://api.wrnexus.com/social/generation?workspace=workspace-id&id=generation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "state": "completed", "discarded_at": null, "can_discard": false, "recovery_required": false, "model_id": "model-id", "prompt": "Create an illustration for human review.", "parameters": { "size": "1024x1024" }, "max_charge_minor": 50, "charge": { "currency": "INR", "charged_minor": 25 }, "spending": { "currency": "INR", "charged_minor": 25, "max_charge_minor": 50, "source": "social.media.ai-run" }, "files": [ { "ordinal": 0, "node_id": "drive-node-id", "drive_workspace_id": "drive-workspace-id", "name": "generated-image.png" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/create-generation Save a private unstarted image/video request with model-supported settings and charge cap. Requires social.ai.generate, plus social.update for an optional linked post. This does not spend balance. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.create-generation ``` curl -X POST "https://api.wrnexus.com/social/create-generation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "modelId": "model-id", "operation": "image", "prompt": "Create an illustration for human review.", "maxChargeMinor": 50, "requestKey": "media_generate_001", "settings": { "size": "1024x1024" } }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "state": "not_started", "discarded_at": null, "can_discard": true, "recovery_required": false, "model_id": "model-id", "prompt": "Create an illustration for human review.", "parameters": { "size": "1024x1024" }, "max_charge_minor": 50, "charge": null, "spending": null, "files": [] }, "requestId": "illustrative-request" } ``` ### POST /social/start-generation Start or recover the key creator’s exact saved request after current AI policy/balance checks. Confirm currency; this can reserve and spend Service Balance. The job is the paid retry identity. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.start-generation ``` curl -X POST "https://api.wrnexus.com/social/start-generation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "generation-id", "currency": "INR" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "state": "running", "discarded_at": null, "can_discard": false, "recovery_required": false, "model_id": "model-id", "prompt": "Create an illustration for human review.", "parameters": { "size": "1024x1024" }, "max_charge_minor": 50, "charge": { "currency": "INR", "charged_minor": 0 }, "spending": { "currency": "INR", "charged_minor": 0, "max_charge_minor": 50, "source": "social.media.ai-run" }, "files": [] }, "requestId": "illustrative-request" } ``` ### GET /social/saved-reply-versions Read up to 50 saved revisions in the authorised workspace, before an optional revision cursor. Requires current moderation permission. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-reply-versions ``` curl "https://api.wrnexus.com/social/saved-reply-versions?workspace=workspace-id&id=saved-reply-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "saved-reply-id", "name": "Acknowledgement", "current_revision": 1, "items": [ { "revision": 1, "name": "Acknowledgement", "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextBefore": null }, "requestId": "illustrative-request" } ``` ### GET /social/saved-reply-version Read one immutable reply revision and its original platform text. Does not edit or send messages. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-reply-version ``` curl "https://api.wrnexus.com/social/saved-reply-version?workspace=workspace-id&id=saved-reply-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "saved-reply-id", "revision": 1, "name": "Acknowledgement", "body": "Hello {{first_name}}, thank you for your message.", "variants": {}, "variables": [ "first_name" ], "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "current_revision": 1, "is_current": true }, "requestId": "illustrative-request" } ``` ### GET /social/saved-replies Workspace-scoped summary pages for members with current moderation permission. Does not read provider conversations or send messages. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-replies ``` curl "https://api.wrnexus.com/social/saved-replies?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "saved-reply-id", "revision": 1, "name": "Acknowledgement", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/saved-reply Read shared text, platform overrides and variable names for an authorised workspace reply draft. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-reply ``` curl "https://api.wrnexus.com/social/saved-reply?workspace=workspace-id&id=saved-reply-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "saved-reply-id", "revision": 1, "name": "Acknowledgement", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "body": "Hello {{first_name}}, thank you for your message.", "variants": {}, "variables": [ "first_name" ], "created_by": "member-id", "updated_by": "member-id" }, "requestId": "illustrative-request" } ``` ### GET /social/campaign-report-export Return already-collected campaign measurements as CSV text with its suggested filename, one row per metric with sources, collection window and age. An unavailable total is an empty cell beside its reason, never a zero, and a truncated report says so on every row. No provider is contacted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-report-export ``` curl "https://api.wrnexus.com/social/campaign-report-export?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "name": "Launch campaign", "generated_at": "2026-10-22T12:00:00.000Z", "filename": "campaign-report-campaign-id-20261022-120000.csv", "content_type": "text/csv; charset=utf-8", "truncated": false, "csv": "\"Campaign\",\"Campaign ID\",\"Revision\",\"Generated at (UTC)\",\"Metric\",\"Label\",\"Value\",\"Unavailable reason\",\"Measured publications\",\"Total publications\",\"Unavailable publications\",\"Sources\",\"Period kinds\",\"First collected (UTC)\",\"Last collected (UTC)\",\"Age (seconds)\",\"Complete\",\"Report truncated\"\r\n\"Launch campaign\",\"campaign-id\",\"1\",\"2026-10-22T12:00:00.000Z\",\"facebookReactions\",\"Reactions\",\"0\",\"\",\"1\",\"1\",\"0\",\"facebook.post.reactions.summary\",\"count_at_collection\",\"2026-10-22T12:00:00.000Z\",\"2026-10-22T12:00:00.000Z\",\"0\",\"yes\",\"no\"" }, "requestId": "illustrative-request" } ``` ### GET /social/campaigns Read up to 50 workspace campaigns with current name and revision. Campaign records are WRNexus marketing configuration, not provider campaign objects or advertising spend. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaigns ``` curl "https://api.wrnexus.com/social/campaigns?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "campaign-id", "revision": 1, "name": "Launch campaign", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/campaign Read one workspace campaign goal, canonical tags and configured UTM parameters. Combined performance for its linked posts is reported by campaign-report. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign ``` curl "https://api.wrnexus.com/social/campaign?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "revision": 1, "name": "Launch campaign", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "goal": "Review launch performance", "tags": [ "launch" ], "utm": { "source": "social", "medium": "organic", "campaign": "launch" }, "created_by": "member-id", "updated_by": "member-id" }, "requestId": "illustrative-request" } ``` ### GET /social/campaign-history Read up to 50 immutable campaign revisions with author and time, before an optional revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-history ``` curl "https://api.wrnexus.com/social/campaign-history?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "name": "Launch campaign", "current_revision": 1, "items": [ { "revision": 1, "name": "Launch campaign", "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextBefore": null }, "requestId": "illustrative-request" } ``` ### GET /social/external-video-metrics Read up to 50 immutable count snapshots with current consent and availability masking. No provider refresh occurs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.external-video-metrics ``` curl "https://api.wrnexus.com/social/external-video-metrics?workspace=workspace-id&id=external-video-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "video": { "id": "external-video-id", "account_id": "account-id", "provider": "youtube", "provider_video_id": "abcdefghijk", "availability": "available", "unavailable_reason": null, "observed_at": "2026-10-22T12:00:00.000Z", "title": "Collected video title", "description": "Collected public description.", "published_at": "2026-10-21T12:00:00.000Z", "visibility": "public", "measurements": [ { "metric": "viewCount", "value": 0, "reason": null }, { "metric": "likeCount", "value": 0, "reason": null }, { "metric": "commentCount", "value": null, "reason": "Provider count unavailable" } ], "source": "youtube.videos.list", "collected_at": "2026-10-22T12:00:00.000Z" }, "items": [ { "id": "snapshot-id", "collected_at": "2026-10-22T12:00:00.000Z", "source": "youtube.videos.list", "period_kind": "count_at_collection", "measurements": [ { "metric": "viewCount", "value": 0, "reason": null }, { "metric": "likeCount", "value": 0, "reason": null }, { "metric": "commentCount", "value": null, "reason": "Provider count unavailable" } ] } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/import-sync-settings Read default-off X, YouTube, Facebook Page and LinkedIn member import settings without requesting provider posts. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.import-sync-settings ``` curl "https://api.wrnexus.com/social/import-sync-settings?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": null, "account_id": "account-id", "revision": 0, "policy": { "enabled": false, "interval_seconds": null, "page_limit": null }, "updated_by": null, "updated_at": null, "next_due_at": null, "cursor_receipt_id": null }, "requestId": "illustrative-request" } ``` ### POST /social/save-import-sync-settings Save an expected revision and exact request receipt. Enabling requires current Account consent and explicit technical interval/page bounds. Commercial limits remain separate. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-import-sync-settings ``` curl -X POST "https://api.wrnexus.com/social/save-import-sync-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "revision": 0, "policy": { "enabled": false, "interval_seconds": null, "page_limit": null }, "requestKey": "sync_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "settings-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### GET /social/import-sync-versions Read fifty immutable policy revisions. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.import-sync-versions ``` curl "https://api.wrnexus.com/social/import-sync-versions?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 1, "provider": "x", "policy": { "enabled": false, "interval_seconds": null, "page_limit": null }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "illustrative-request" } ``` ### GET /social/import-sync-version Read one immutable policy revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.import-sync-version ``` curl "https://api.wrnexus.com/social/import-sync-version?workspace=workspace-id&accountId=account-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1, "provider": "x", "policy": { "enabled": false, "interval_seconds": null, "page_limit": null }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/import-sync-runs Read fifty stored run metadata records. Completed batches do not imply complete provider history. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.import-sync-runs ``` curl "https://api.wrnexus.com/social/import-sync-runs?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/import-sync-run Read bounded page checkpoints without internal leases, credentials or provider cursors. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.import-sync-run ``` curl "https://api.wrnexus.com/social/import-sync-run?workspace=workspace-id&accountId=account-id&id=run-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "run-id", "account_id": "account-id", "revision": 1, "provider": "x", "due_at": "2026-10-22T12:00:00.000Z", "state": "completed", "attempts": 1, "next_attempt_at": "2026-10-22T12:00:00.000Z", "page_index": 1, "cycle_complete": true, "item_count": 0, "omitted_count": 0, "code": null, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "completed_at": "2026-10-22T12:00:00.000Z", "pages": [ { "ordinal": 0, "receipt_id": "snapshot-id", "item_count": 0, "omitted_count": 0, "has_next_page": false, "collected_at": "2026-10-22T12:00:00.000Z" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/refresh-facebook-import-metrics Reserve three post-metric request slots and save reactions, comments and shares counts with current read/manage and existing Account Page-read consent. Restricted summaries remain unavailable. Exact completed retry adds no metric GETs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.refresh-facebook-import-metrics ``` curl -X POST "https://api.wrnexus.com/social/refresh-facebook-import-metrics?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "snapshotId": "snapshot-id", "postId": "123_456", "requestKey": "facebook_metrics_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "sample-id", "collected_at": "2026-10-22T12:00:00.000Z", "measurements": 3 }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-metric-history Read fifty stored sample metadata records for one exact imported post with current Page-read consent. Account may verify provider access; no metric GET. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-metric-history ``` curl "https://api.wrnexus.com/social/facebook-import-metric-history?workspace=workspace-id&accountId=account-id&snapshotId=snapshot-id&postId=123_456" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "sample-id", "api_version": "v24.0", "collected_at": "2026-10-22T12:00:00.000Z", "measurements": 3, "period_kind": "count_at_collection" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-metric Read one immutable sample with zero/unavailable values, source, period and collection time. Requires current Page-read consent. Account may verify provider access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-metric ``` curl "https://api.wrnexus.com/social/facebook-import-metric?workspace=workspace-id&accountId=account-id&snapshotId=snapshot-id&postId=123_456&id=sample-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "sample-id", "api_version": "v24.0", "collected_at": "2026-10-22T12:00:00.000Z", "period_kind": "count_at_collection", "measurements": [ { "metric": "facebookReactions", "source": "facebook.post.reactions.summary", "value": 0, "reason": null, "periodKind": "count_at_collection" }, { "metric": "facebookComments", "source": "facebook.post.comments.summary", "value": null, "reason": "Provider measurement is missing, restricted or outside the supported range", "periodKind": "count_at_collection" }, { "metric": "facebookShares", "source": "facebook.post.shares", "value": null, "reason": "Provider measurement is missing, restricted or outside the supported range", "periodKind": "count_at_collection" } ] }, "requestId": "illustrative-request" } ``` ### POST /social/refresh-linkedin-import-metrics Reserve eleven request slots and collect one complete member-post lifetime count sample with current read/manage and separate Account reporting consent. Exact completed retry recovers its sample without provider GETs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.refresh-linkedin-import-metrics ``` curl -X POST "https://api.wrnexus.com/social/refresh-linkedin-import-metrics?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "snapshotId": "snapshot-id", "postId": "urn:li:share:123", "requestKey": "linkedin_metrics_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "sample-id", "collected_at": "2026-10-22T12:00:00.000Z", "measurements": 11 }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-import-metric-history Read fifty stored sample metadata records for one exact imported post with current post-read/reporting consent. No provider analytics requests. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-import-metric-history ``` curl "https://api.wrnexus.com/social/linkedin-import-metric-history?workspace=workspace-id&accountId=account-id&snapshotId=snapshot-id&postId=urn%3Ali%3Ashare%3A123" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "sample-id", "api_version": "202609", "collected_at": "2026-10-22T12:00:00.000Z", "measurements": 11, "period_kind": "count_at_collection" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-import-metric Read one immutable sample with zero/unavailable values, source, period and collection time. Requires current post-read/reporting consent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-import-metric ``` curl "https://api.wrnexus.com/social/linkedin-import-metric?workspace=workspace-id&accountId=account-id&snapshotId=snapshot-id&postId=urn%3Ali%3Ashare%3A123&id=sample-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "sample-id", "api_version": "202609", "collected_at": "2026-10-22T12:00:00.000Z", "period_kind": "count_at_collection", "measurements": [ { "metric": "linkedinImpressions", "value": 0, "reason": null, "source": "linkedin.memberCreatorPostAnalytics.IMPRESSION", "periodKind": "count_at_collection" }, { "metric": "linkedinMembersReached", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.MEMBERS_REACHED", "periodKind": "count_at_collection" }, { "metric": "linkedinReshares", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.RESHARE", "periodKind": "count_at_collection" }, { "metric": "linkedinReactions", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.REACTION", "periodKind": "count_at_collection" }, { "metric": "linkedinComments", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.COMMENT", "periodKind": "count_at_collection" }, { "metric": "linkedinSaves", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.POST_SAVE", "periodKind": "count_at_collection" }, { "metric": "linkedinSends", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.POST_SEND", "periodKind": "count_at_collection" }, { "metric": "linkedinLinkClicks", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.LINK_CLICKS", "periodKind": "count_at_collection" }, { "metric": "linkedinPremiumCtaClicks", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.PREMIUM_CTA_CLICKS", "periodKind": "count_at_collection" }, { "metric": "linkedinFollowersGained", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.FOLLOWER_GAINED_FROM_CONTENT", "periodKind": "count_at_collection" }, { "metric": "linkedinProfileViews", "value": null, "reason": "LinkedIn lifetime count is missing, restricted or outside the supported range", "source": "linkedin.memberCreatorPostAnalytics.PROFILE_VIEW_FROM_CONTENT", "periodKind": "count_at_collection" } ] }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-comments Requires current read/moderate access, exact key grant, imported snapshot/post membership, Account Page-read/comment consent and one budget unit per provider GET. References are encrypted, actor/snapshot/connection bound and expire after fifteen minutes. No provider writes or persistent comment content. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-comments ``` curl "https://api.wrnexus.com/social/facebook-import-comments?workspace=workspace-id&accountId=account&snapshotId=snapshot&postId=123_456&after=cursor+%2F1%2B%3D" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account", "snapshot_id": "snapshot", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-24T12:00:00.000Z", "items": [ { "id": "456_789", "author": "Reader ", "author_id": "987", "can_reply": true, "like_count": 0, "reply_count": 1, "published_at": "2026-10-24T12:00:00.000Z", "is_hidden": false, "is_private": false, "excerpt": "Literal {{comment}} text é🙂", "excerpt_truncated": false, "ref": "comment /1+=" } ], "nextCursor": "cursor /1+=", "source": "facebook.post.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-comment Requires current read/moderate access, exact key grant, imported snapshot/post membership, Account Page-read/comment consent and one budget unit per provider GET. References are encrypted, actor/snapshot/connection bound and expire after fifteen minutes. No provider writes or persistent comment content. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-comment ``` curl "https://api.wrnexus.com/social/facebook-import-comment?workspace=workspace-id&accountId=account&snapshotId=snapshot&postId=123_456&ref=comment+%2F1%2B%3D" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account", "snapshot_id": "snapshot", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-24T12:00:00.000Z", "comment": { "id": "456_789", "text": "Literal {{comment}} text é🙂", "author": "Reader ", "author_id": "987", "can_reply": true, "like_count": 0, "reply_count": 1, "published_at": "2026-10-24T12:00:00.000Z", "is_hidden": false, "is_private": false }, "source": "facebook.post.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-replies Requires current read/moderate access, exact key grant, imported snapshot/post membership, Account Page-read/comment consent and one budget unit per provider GET. References are encrypted, actor/snapshot/connection bound and expire after fifteen minutes. No provider writes or persistent comment content. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-replies ``` curl "https://api.wrnexus.com/social/facebook-import-replies?workspace=workspace-id&accountId=account&snapshotId=snapshot&postId=123_456&ref=comment+%2F1%2B%3D&after=cursor+%2F1%2B%3D" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account", "snapshot_id": "snapshot", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-24T12:00:00.000Z", "parent_id": "456_789", "items": [ { "id": "456_790", "author": null, "author_id": "987", "can_reply": true, "like_count": null, "reply_count": null, "published_at": "2026-10-24T12:00:00.000Z", "is_hidden": false, "is_private": false, "excerpt": "", "excerpt_truncated": false, "ref": "reply /1+=" } ], "nextCursor": null, "source": "facebook.comment.comments" }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-reply Requires current read/moderate access, exact key grant, imported snapshot/post membership, Account Page-read/comment consent and one budget unit per provider GET. References are encrypted, actor/snapshot/connection bound and expire after fifteen minutes. No provider writes or persistent comment content. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-reply ``` curl "https://api.wrnexus.com/social/facebook-import-reply?workspace=workspace-id&accountId=account&snapshotId=snapshot&postId=123_456&ref=comment+%2F1%2B%3D&reply=reply+%2F1%2B%3D" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "account_id": "account", "snapshot_id": "snapshot", "provider": "facebook", "provider_post_id": "123_456", "collected_at": "2026-10-24T12:00:00.000Z", "parent_id": "456_789", "comment": { "id": "456_790", "text": null, "author": null, "author_id": "987", "can_reply": true, "like_count": null, "reply_count": null, "published_at": "2026-10-24T12:00:00.000Z", "is_hidden": false, "is_private": false }, "source": "facebook.comment.comments" }, "requestId": "illustrative-request" } ``` ### POST /social/send-facebook-import-reply Send reviewed literal text after current read/moderate, Account comments/reply consent, live parent capability and request-budget checks. Durable exact request recovery never repeats a POST; uncertain outcomes block other keys for the parent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.send-facebook-import-reply ``` curl -X POST "https://api.wrnexus.com/social/send-facebook-import-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account", "snapshotId": "snapshot", "postId": "123_456", "ref": "comment /1+=", "body": "Literal {{reply}} text é🙂", "requestKey": "import_reply_sdk_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "state": "unknown", "provider_reply_id": null, "failure_code": "reply-send-outcome-unknown", "created_at": "2026-10-24T12:00:00.000Z", "updated_at": "2026-10-24T12:00:00.000Z", "parent_id": "456_789", "api_version": "v24.0", "account_id": "account", "snapshot_id": "snapshot", "provider_post_id": "123_456", "body": "Literal {{reply}} text é🙂", "reconciliation": null }, "requestId": "illustrative-request" } ``` ### POST /social/reconcile-facebook-import-reply GET-only positive evidence verification for an actor-private unknown send, exact parent, Page author, original body and submission time. Missing evidence keeps the barrier; this operation cannot send. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reconcile-facebook-import-reply ``` curl -X POST "https://api.wrnexus.com/social/reconcile-facebook-import-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account", "snapshotId": "snapshot", "postId": "123_456", "id": "send-id", "ref": "comment /1+=", "replyId": "456_790" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "state": "sent", "provider_reply_id": "456_790", "failure_code": null, "created_at": "2026-10-24T12:00:00.000Z", "updated_at": "2026-10-24T12:00:00.000Z", "parent_id": "456_789", "api_version": "v24.0", "account_id": "account", "snapshot_id": "snapshot", "provider_post_id": "123_456", "body": "Literal {{reply}} text é🙂", "reconciliation": { "provider_published_at": "2026-10-24T12:00:00.000Z", "verified_at": "2026-10-24T12:00:00.000Z", "source": "facebook.comment.comments" } }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-reply-sends Read fifty actor-private stored metadata records for the exact current imported post. Reply bodies are not decrypted and no comment GET occurs. Account may verify provider access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-reply-sends ``` curl "https://api.wrnexus.com/social/facebook-import-reply-sends?workspace=workspace-id&accountId=account&snapshotId=snapshot&postId=123_456" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "send-id", "state": "unknown", "provider_reply_id": null, "failure_code": "reply-send-outcome-unknown", "created_at": "2026-10-24T12:00:00.000Z", "updated_at": "2026-10-24T12:00:00.000Z", "parent_id": "456_789", "api_version": "v24.0" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import-reply-send Read an actor-private stored outcome, original literal body and positive reconciliation evidence if verified. Requires current selected Page/import membership/read/moderate access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import-reply-send ``` curl "https://api.wrnexus.com/social/facebook-import-reply-send?workspace=workspace-id&accountId=account&snapshotId=snapshot&postId=123_456&id=send-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "send-id", "state": "unknown", "provider_reply_id": null, "failure_code": "reply-send-outcome-unknown", "created_at": "2026-10-24T12:00:00.000Z", "updated_at": "2026-10-24T12:00:00.000Z", "parent_id": "456_789", "api_version": "v24.0", "account_id": "account", "snapshot_id": "snapshot", "provider_post_id": "123_456", "body": "Literal {{reply}} text é🙂", "reconciliation": null }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-imports Read fifty stored Page snapshot metadata records with current workspace read and Account Page-read consent. Account may verify current provider access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-imports ``` curl "https://api.wrnexus.com/social/facebook-imports?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/facebook-import Read a current-selection snapshot of published, not-hidden Page-authored posts. This does not establish unrestricted audience visibility. Raw pagination cursors and credentials are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.facebook-import ``` curl "https://api.wrnexus.com/social/facebook-import?workspace=workspace-id&accountId=account-id&id=snapshot-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z", "coverage": "single_authorized_page_authored_posts", "has_next_page": false, "items": [] }, "requestId": "illustrative-request" } ``` ### POST /social/collect-facebook-posts Collect one bounded Page-authored posts page with current read/manage, Account Page-read consent and an available Facebook request budget. Optional previousId continues a saved page. Exact retry recovers its receipt without another posts GET. Account may verify current provider access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.collect-facebook-posts ``` curl -X POST "https://api.wrnexus.com/social/collect-facebook-posts?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "requestKey": "facebook_import_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-imports Read fifty stored member-author snapshot metadata records with current workspace read and Account read-post consent. No provider GET. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-imports ``` curl "https://api.wrnexus.com/social/linkedin-imports?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/linkedin-import Read a current-selection snapshot of public published member posts. Raw pagination offsets and credentials are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.linkedin-import ``` curl "https://api.wrnexus.com/social/linkedin-import?workspace=workspace-id&accountId=account-id&id=snapshot-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z", "coverage": "single_authorized_author_page", "has_next_page": false, "items": [] }, "requestId": "illustrative-request" } ``` ### POST /social/collect-linkedin-posts Collect one bounded member-author page with current read/manage, Account read-post consent and an available LinkedIn request budget. Optional previousId continues a saved page. Exact retry recovers its receipt without another GET. Does not publish. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.collect-linkedin-posts ``` curl -X POST "https://api.wrnexus.com/social/collect-linkedin-posts?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "requestKey": "linkedin_import_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/x-imports Read fifty stored timeline snapshot metadata records with current Social read and Account consent. Does not contact X. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.x-imports ``` curl "https://api.wrnexus.com/social/x-imports?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/x-import Read one current-selection snapshot with literal post text and saved public counts. Provider pagination tokens and credentials are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.x-import ``` curl "https://api.wrnexus.com/social/x-import?workspace=workspace-id&accountId=account-id&id=snapshot-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z", "coverage": "single_authorized_timeline_page", "has_next_page": false, "items": [] }, "requestId": "illustrative-request" } ``` ### POST /social/collect-x-posts Collect one owned authored-post page using current read/manage and Account consent plus an available X request budget. Optional previousId continues a stored page. Exact retries recover the snapshot without another GET; active competing requests are refused. Does not publish or spend publishing allowance. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.collect-x-posts ``` curl -X POST "https://api.wrnexus.com/social/collect-x-posts?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "requestKey": "x_import_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "omitted_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-imports Read fifty stored snapshot metadata records with current Social read and Account owner read consent. No media GET occurs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-imports ``` curl "https://api.wrnexus.com/social/instagram-imports?workspace=workspace-id&accountId=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "snapshot-id", "item_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/instagram-import Read one current-selection snapshot and its saved counts. Captions unavailable; provider cursors and credentials are omitted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.instagram-import ``` curl "https://api.wrnexus.com/social/instagram-import?workspace=workspace-id&accountId=account-id&id=snapshot-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "collected_at": "2026-10-22T12:00:00.000Z", "coverage": "single_authorized_page", "has_next_page": false, "items": [] }, "requestId": "illustrative-request" } ``` ### POST /social/collect-instagram-media Collect one owned numeric media ID using current read/manage and Account owner read consent. Exact-key retries recover the snapshot without another media GET. Does not publish or charge publishing allowance. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.collect-instagram-media ``` curl -X POST "https://api.wrnexus.com/social/collect-instagram-media?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "mediaId": "123456789012345", "requestKey": "instagram_import_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "item_count": 0, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/external-videos Read up to 50 stored videos for a selected YouTube account with current Account consent. No provider refresh occurs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.external-videos ``` curl "https://api.wrnexus.com/social/external-videos?workspace=workspace-id&id=account-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "external-video-id", "account_id": "account-id", "provider": "youtube", "provider_video_id": "abcdefghijk", "availability": "available", "unavailable_reason": null, "observed_at": "2026-10-22T12:00:00.000Z", "title": "Collected video title", "description": "Collected public description.", "published_at": "2026-10-21T12:00:00.000Z", "visibility": "public", "measurements": [ { "metric": "viewCount", "value": 0, "reason": null }, { "metric": "likeCount", "value": 0, "reason": null }, { "metric": "commentCount", "value": null, "reason": "Provider count unavailable" } ], "source": "youtube.videos.list", "collected_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/collect-external-videos Explicit owner-only collection using current Account consent and an exact retry key. Creates no drafts or publications. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.collect-external-videos ``` curl -X POST "https://api.wrnexus.com/social/collect-external-videos?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "accountId": "account-id", "requestKey": "external_collect_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "batch-id", "account_id": "account-id", "loaded_count": 1, "omitted_count": 0, "has_next_page": false, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/refresh-external-video Explicit owner-only refresh of a stored provider identity, including videos removed from the uploads page. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.refresh-external-video ``` curl -X POST "https://api.wrnexus.com/social/refresh-external-video?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "external-video-id", "requestKey": "external_refresh_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "batch-id", "account_id": "account-id", "loaded_count": 1, "omitted_count": 0, "has_next_page": false, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/external-import Recover counts and continuation availability for the current owner actor without provider access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.external-import ``` curl "https://api.wrnexus.com/social/external-import?workspace=workspace-id&id=batch-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "batch-id", "account_id": "account-id", "loaded_count": 1, "omitted_count": 0, "has_next_page": false, "collected_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/external-video Read one imported video and its stored measurements, provenance and availability. Unavailable content is hidden. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.external-video ``` curl "https://api.wrnexus.com/social/external-video?workspace=workspace-id&id=external-video-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "video": { "id": "external-video-id", "account_id": "account-id", "provider": "youtube", "provider_video_id": "abcdefghijk", "availability": "available", "unavailable_reason": null, "observed_at": "2026-10-22T12:00:00.000Z", "title": "Collected video title", "description": "Collected public description.", "published_at": "2026-10-21T12:00:00.000Z", "visibility": "public", "measurements": [ { "metric": "viewCount", "value": 0, "reason": null }, { "metric": "likeCount", "value": 0, "reason": null }, { "metric": "commentCount", "value": null, "reason": "Provider count unavailable" } ], "source": "youtube.videos.list", "collected_at": "2026-10-22T12:00:00.000Z" }, "period_kind": "count_at_collection", "age_seconds": 0, "metrics": [ { "metric": "viewCount", "value": 0, "reason": null, "label": "Views" }, { "metric": "likeCount", "value": 0, "reason": null, "label": "Likes" }, { "metric": "commentCount", "value": null, "reason": "Provider count unavailable", "label": "Comments" } ], "rows": [ { "label": "Views", "value": 0 }, { "label": "Likes", "value": 0 } ] }, "requestId": "illustrative-request" } ``` ### GET /social/external-video-history Read bounded availability observations without historical text or private counts. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.external-video-history ``` curl "https://api.wrnexus.com/social/external-video-history?workspace=workspace-id&id=external-video-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "observation-id", "availability": "available", "collected_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/campaign-version Read the exact saved name, goal, tags and tracking settings of one workspace campaign revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-version ``` curl "https://api.wrnexus.com/social/campaign-version?workspace=workspace-id&id=campaign-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "current_revision": 1, "revision": 1, "name": "Launch campaign", "goal": "Review launch performance", "tags": [ "launch" ], "utm": { "source": "social", "medium": "organic", "campaign": "launch" }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/campaign-link Append the campaign’s configured utm_source, utm_medium and utm_campaign to an http(s) destination. The destination is never fetched, shortened or verified, and an existing utm_* value is refused. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-link ``` curl "https://api.wrnexus.com/social/campaign-link?workspace=workspace-id&id=campaign-id&url=https%3A%2F%2Fexample.com%2Flaunch" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "revision": 1, "utm": { "source": "social", "medium": "organic", "campaign": "launch" }, "url": "https://example.com/launch?utm_source=social&utm_medium=organic&utm_campaign=launch" }, "requestId": "illustrative-request" } ``` ### GET /social/campaign-report Total the measurements already collected for every publication of the campaign’s linked posts, matching each selected account provider. Numeric measurements with incompatible period kinds or non-count reporting windows yield a null total, an explanation and incomplete status. No provider is contacted; a missing or restricted figure is reported as unavailable, never as zero, and each total carries its sources, collection window and age. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-report ``` curl "https://api.wrnexus.com/social/campaign-report?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "name": "Launch campaign", "revision": 1, "generated_at": "2026-10-22T12:00:00.000Z", "posts": [ { "post_id": "post-id", "title": "Launch draft", "linked_at": "2026-10-22T12:00:00.000Z", "revision": 1 } ], "postsTruncated": false, "publications": [ { "id": "publication-id", "post_id": "post-id", "title": "Launch draft", "account_id": "account-id", "provider_post_id": "123_456", "state": "published", "measured": true, "unavailable_reason": null } ], "publicationsTruncated": false, "metrics": [ { "metric": "facebookReactions", "label": "Reactions", "value": 0, "unavailable_reason": null, "measured_publications": 1, "total_publications": 1, "unavailable_publications": 0, "sources": [ "facebook.post.reactions.summary" ], "period_kinds": [ "count_at_collection" ], "first_collected_at": "2026-10-22T12:00:00.000Z", "last_collected_at": "2026-10-22T12:00:00.000Z", "age_seconds": 0, "complete": true } ], "rows": [ { "label": "Reactions", "value": 0 } ] }, "requestId": "illustrative-request" } ``` ### POST /social/save-report-schedule Save explicit calendar settings and current workspace recipients using optimistic revision and requestKey. Requires current read and manage access. The private alert worker delivers private Account inbox links; deployment verification is pending. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-report-schedule ``` curl -X POST "https://api.wrnexus.com/social/save-report-schedule?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "campaignId": "campaign-id", "revision": 0, "requestKey": "report_schedule_001", "schedule": { "enabled": false, "first_local": "2090-10-23T09:00", "timezone": "Asia/Kolkata", "frequency": "weekly", "count": 2, "format": "pdf", "recipient_ids": [] } }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "schedule-id", "revision": 1 }, "requestId": "schedule-save" } ``` ### GET /social/report-schedules List scoped schedule metadata for campaign id with optional after cursor. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-schedules ``` curl "https://api.wrnexus.com/social/report-schedules?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "schedule-id", "revision": 1, "enabled": false, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "next_after": null }, "requestId": "schedule-list" } ``` ### GET /social/report-schedule Read a scoped schedule and current occurrence status by id. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-schedule ``` curl "https://api.wrnexus.com/social/report-schedule?workspace=workspace-id&id=schedule-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "schedule-id", "campaign_id": "campaign-id", "revision": 1, "created_by": "member-id", "updated_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "schedule": { "enabled": false, "first_local": "2090-10-23T09:00", "timezone": "Asia/Kolkata", "frequency": "weekly", "count": 2, "format": "pdf", "recipient_ids": [] }, "occurrences": [ { "ordinal": 0, "due_at": "2090-10-23T03:30:00.000Z", "state": "cancelled", "snapshot_id": null }, { "ordinal": 1, "due_at": "2090-10-30T03:30:00.000Z", "state": "cancelled", "snapshot_id": null } ] }, "requestId": "schedule-detail" } ``` ### GET /social/report-schedule-versions Read immutable schedule settings by id with optional before revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-schedule-versions ``` curl "https://api.wrnexus.com/social/report-schedule-versions?workspace=workspace-id&id=schedule-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 1, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "schedule": { "enabled": false, "first_local": "2090-10-23T09:00", "timezone": "Asia/Kolkata", "frequency": "weekly", "count": 2, "format": "pdf", "recipient_ids": [] } } ], "next_before": null }, "requestId": "schedule-history" } ``` ### GET /social/report-schedule-recipients Search current workspace readers from Account using optional q and page. Requires read and manage access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-schedule-recipients ``` curl "https://api.wrnexus.com/social/report-schedule-recipients?workspace=workspace-id&q=Reader&page=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "value": "member-id", "label": "Reader", "description": "member-id" } ], "truncated": false }, "requestId": "schedule-recipients" } ``` ### GET /social/report-schedule-version Read an immutable report schedule revision with its own stored occurrences and recipient handoff counts using id and revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.report-schedule-version ``` curl "https://api.wrnexus.com/social/report-schedule-version?workspace=workspace-id&id=schedule-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "schedule-id", "campaign_id": "campaign-id", "revision": 1, "actor_id": "member-id", "created_at": "2026-10-22T10:00:00.000Z", "schedule": { "enabled": false, "first_local": "2026-10-23T09:00", "timezone": "UTC", "frequency": "weekly", "count": 1, "format": "pdf", "recipient_ids": [] }, "occurrences": [ { "ordinal": 0, "due_at": "2026-10-23T09:00:00.000Z", "state": "cancelled", "snapshot_id": null } ], "deliveries": { "pending": 0, "processing": 0, "accepted": 0, "cancelled": 0 } }, "requestId": "schedule-revision" } ``` ### POST /social/save-campaign-report Save an immutable snapshot of stored campaign measurements using campaignId, revision and requestKey. Requires current social.read and the exact key operation; no provider is contacted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-campaign-report ``` curl -X POST "https://api.wrnexus.com/social/save-campaign-report?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "campaignId": "campaign-id", "revision": 1, "requestKey": "campaign_snapshot_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "campaign_id": "campaign-id", "campaign_revision": 1, "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "created_at": "2026-10-22T12:00:00.000Z", "report": { "id": "campaign-id", "name": "Illustrative campaign", "revision": 1, "generated_at": "2026-10-22T12:00:00.000Z", "posts": [], "postsTruncated": false, "publications": [], "publicationsTruncated": false, "metrics": [], "rows": [] } }, "requestId": "saved-report" } ``` ### GET /social/saved-campaign-reports List up to fifty saved report metadata rows for campaign id. Use after for older reports. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-campaign-reports ``` curl "https://api.wrnexus.com/social/saved-campaign-reports?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "snapshot-id", "campaign_revision": 1, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ], "next_cursor": null }, "requestId": "saved-report-history" } ``` ### GET /social/saved-campaign-report Read one immutable report snapshot by id with current social.read. Includes original metric coverage, source, generation time and SHA-256. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-campaign-report ``` curl "https://api.wrnexus.com/social/saved-campaign-report?workspace=workspace-id&id=snapshot-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "snapshot-id", "campaign_id": "campaign-id", "campaign_revision": 1, "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "created_at": "2026-10-22T12:00:00.000Z", "report": { "id": "campaign-id", "name": "Illustrative campaign", "revision": 1, "generated_at": "2026-10-22T12:00:00.000Z", "posts": [], "postsTruncated": false, "publications": [], "publicationsTruncated": false, "metrics": [], "rows": [] } }, "requestId": "saved-report-read" } ``` ### GET /social/saved-campaign-report-csv Export a stored snapshot as CSV text with filename, content type and snapshot identity. Current social.read is required; no live metrics or provider calls. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-campaign-report-csv ``` curl "https://api.wrnexus.com/social/saved-campaign-report-csv?workspace=workspace-id&id=snapshot-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "filename": "campaign-report-snapshot-id.csv", "contentType": "text/csv; charset=utf-8", "body": "\"Campaign\",\"Value\"\r\n\"Illustrative campaign\",\"\"", "snapshot_id": "snapshot-id", "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, "requestId": "saved-report-csv" } ``` ### GET /social/saved-campaign-report-pdf Render one saved report as a base64 PDF with filename, byte length, PDF SHA-256 and saved-report SHA-256. Requires current social.read before and after rendering and the exact API grant. Unsupported font text returns unavailable instead of missing glyphs. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-campaign-report-pdf ``` curl "https://api.wrnexus.com/social/saved-campaign-report-pdf?workspace=workspace-id&id=snapshot" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "filename": "campaign-report-snapshot.pdf", "content_type": "application/pdf", "encoding": "base64", "data": "JVBERi0xLjMKJf////8KNyAwIG9iago8PAovVHlwZSAvUGFnZQovUGFyZW50IDEgMCBSCi9NZWRpYUJveCBbMCAwIDU5NS4yOCA4NDEuODldCi9Db250ZW50cyA1IDAgUgovUmVzb3VyY2VzIDYgMCBSCi9Vc2VyVW5pdCAxCj4+CmVuZG9iago2IDAgb2JqCjw8Ci9Qcm9jU2V0IFsvUERGIC9UZXh0IC9JbWFnZUIgL0ltYWdlQyAvSW1hZ2VJXQovRm9udCA8PAovRjEgOCAwIFIKPj4KL0NvbG9yU3BhY2UgPDwKPj4KPj4KZW5kb2JqCjUgMCBvYmoKPDwKL0xlbmd0aCAxMDIwCi9GaWx0ZXIgL0ZsYXRlRGVjb2RlCj4+CnN0cmVhbQp4nOVY22rsNhR9n6/QD0TZ2lcJwjyc0wv0odBm3kofEo8NhaZQDvT7y5btGd8aMrQH0ySQYHskRWtp7bWXJwUIEO5SgJA5xVxC83K4/6b967em/fn7T6H5coCYMIlmRWOBkoFKgJgULDMlMhQugAHichSFL80fq8VgMcpnsoHkjCRYOCVTDhCpvxo/6Rf785C2NvzpNDxPgXMwKxGNw+nlcP9dCgnDqTv88iAmyK3KMRCEB8smRgiGKtoqqxgew12S8KBFWzUE02NAv599pFqUNBlr0U7bY4Bfw+mHw7enw09rrDr/sQARyhIYxHQB3j+VG8ByjsWKjmhxQMuNdr5PbRAEmFnfCAjBfNrZQBsVBDwjaKudMfqTcl0EQceRSYuaz53R8TYACFHYVgCU657SqwSvJQex6jGViz5dS1PCsfDb6dVsMYtLaCEm8p2hC+nCh/IWIy4wA+0q5ewTeGdIqjEZ5gskGBRjtRKqNhKEh0p/BYVZRJgJCz0dg0B4QCAk/1U8UyLAMyGh+OaQnggI+r/Y1muQp50xs0ZOsMa8eVyDQ6gWo74oprgRrEHgptrEcy+Cnqd6zGRsNBkP/XgBE8VhdDMvufn4nZlCjcp5zdRZRZORSXVMv2sdKTp37SD9Ths3DaWrmWhS0+q0mnwmgqqhdvZ0DNWApB/l9mKsuY7opv5klehqZLol0dG1/Orsh+fzsD0GrYTy2Y+xHuTc1ZM2JvOtma++rGuXRqNpcnjj/2iuzni772nCCHlN9JUYp+kY3DIczWR9zgE5x6SE4eUgbNfb36eK+fx4gJgnynClBIj52mhdI/XRvP9aePz84+Fxj4YmJlHyxJ54cFyXXbpKy+j11vvVY4YwRTJc9q29C1gSxpSSblhd1ytrHgP6OvLKmphQ8iJU7a/sVevqE4KvPmYGbxv7csAFI3FZcSCkXTUw8rq/4lXtLd/1paKonXb6jO1o6Njahvp6n3FL1LOe3UOO4a52jrIzfMMo2dbwoQc8z39dNe/n6o+z1uWG7o5oLJ2fuHRbFr8zVMGYUdZq9+aN9eyWjemdRBomig5thbypbfr94k4UCTb8rXrYGCX+OSksopnXu/NUtb/ssswaiwAPXfZy+//vsmQarUzqZuiyvY9f492rZy39u/8Fej3qod2OMvCtL47/pn0yR8mcl11W3pzU9tQquVaReaXVVjsE3YzUW3W7LwosFEWR/1WigFsThTcrz75DX+3fnLV4bN+ZDqOYAfiDhgsUjkCZP0C4QOKI/prw4cIFJo6SNozrnYeLVDj618RfPVzcL5DxOj/w/HU1B4gyb6M39FHMcZKS83/wJeb4tdbo0j1BkzdHnAH+G0E5Px0KZW5kc3RyZWFtCmVuZG9iagoxMSAwIG9iago8PAovVHlwZSAvUGFnZQovUGFyZW50IDEgMCBSCi9NZWRpYUJveCBbMCAwIDU5NS4yOCA4NDEuODldCi9Db250ZW50cyA5IDAgUgovUmVzb3VyY2VzIDEwIDAgUgovVXNlclVuaXQgMQo+PgplbmRvYmoKMTAgMCBvYmoKPDwKL1Byb2NTZXQgWy9QREYgL1RleHQgL0ltYWdlQiAvSW1hZ2VDIC9JbWFnZUldCi9Gb250IDw8Ci9GMSA4IDAgUgo+PgovQ29sb3JTcGFjZSA8PAo+Pgo+PgplbmRvYmoKOSAwIG9iago8PAovTGVuZ3RoIDgyNgovRmlsdGVyIC9GbGF0ZURlY29kZQo+PgpzdHJlYW0KeJztmNuK3EYQhu/1FP0C265zdcMwF7Zjgy8Myc5dyMVGK0EgawiGPH+onpM0WpsVJB42zAwztE6t+r8qlegfEyRId5ggFcFcauqfujfvh7//6IdfPr5N/dcOMhKqFSMXhVqAa4KMBl6EkZ1UKlCCfHkWp6/9l05K0pq9pKdOxQ/jP6f3eHffQS5YZzMmyIWVqiC6iYOWtktLocnudP/uc3e/CBhs/vEEGSZTxRwcImY3KKQt4r86fI7K291hPyYpyY1zNUu7p+7NB0woaTd2v26kt9EGcwJnG12djE0J3J22CSFtDB0crB7Osm0iTRvTOH6HMaxmVo0NXazGdNsEv6Xdp+6nXffzUusF9cjESeRRXoLMl/JfLpUxuyodtRLttTJ8N7BlOUButTLJdMQ1jYqqrIgLIEuVcsoBHHLANm5ToJzT3dM3N+WHbVJIGwJGAhvN9iMHV6NtojiznyfBmYAeCWJ2e3Sw3tTF9LoMrEB2pgUDnVSf81mvs4uNTqYmNDg4nVlZNdmTaucOFxX8qq6cZeVlJM0y+pLk69L9Q4kpZsMbsRXE2DPojdgKYkRZ6o3YCmLguT7zRnhd3ehH9jGtnPnW+dcQ85LLrfOvIWaS6db51xCTmu3W+dcQY8146/xriBFk/Vc7/3VXgwphpMByNQj7aOcuw2hCYL83K0Kmi0Rrkmxw0TEWwDrGHutjyWv8IlfiP5cqBTNIWS7+zapTJHCvYxJ1JBOoqKoIU52YAMTxM3pkZKBHJiaNEIkfGBj2/zS0MejDlZUbZiq2VN4b/q91C2alZ+yeZukQRKUSxNiGqeFzrNeJbmj2nDZOrfavrCwWOeX82NaThzM0t5Ct2OgydXHmR64cPmhG5GP05Rj9pIdGB1WH2N6mO4G0iVwpSxFsdadsk/6D1/1eFyeXkh1YLnmKFavhQjZ7eIhCbzQ5aMK0sQ/tQWjvqRgfDGWNaz1maeurkBk+59kj/Wae5EFZRhmoJ7AhCu48kYKIGMHRNvUaHSeeKNR4PX6XpSxNf5l71yVB1ila0hUmPZVMevLoT4X5vPQwe5uxi1bNbfgGDO9D9DbF9t5NjkZ6cpFpJvgfZgludQplbmRzdHJlYW0KZW5kb2JqCjEzIDAgb2JqCihQREZLaXQpCmVuZG9iagoxNCAwIG9iagooUERGS2l0KQplbmRvYmoKMTUgMCBvYmoKKEQ6MjAyNjEwMjIxMjAwMDBaKQplbmRvYmoKMTYgMCBvYmoKKExvY2FsIFBERiB2ZXJpZmljYXRpb24gc2FtcGxlIC0gbm90IGxpdmUgY2FtcGFpZ24gZGF0YSkKZW5kb2JqCjE3IDAgb2JqCihXUk5leHVzIHJlbmRlcmluZyB2ZXJpZmljYXRpb24pCmVuZG9iagoxOCAwIG9iagooU2F2ZWQgY2FtcGFpZ24gbWVhc3VyZW1lbnRzKQplbmRvYmoKMTIgMCBvYmoKPDwKL1Byb2R1Y2VyIDEzIDAgUgovQ3JlYXRvciAxNCAwIFIKL0NyZWF0aW9uRGF0ZSAxNSAwIFIKL1RpdGxlIDE2IDAgUgovQXV0aG9yIDE3IDAgUgovU3ViamVjdCAxOCAwIFIKPj4KZW5kb2JqCjggMCBvYmoKPDwKL1R5cGUgL0ZvbnQKL0Jhc2VGb250IC9IZWx2ZXRpY2EKL1N1YnR5cGUgL1R5cGUxCi9FbmNvZGluZyAvV2luQW5zaUVuY29kaW5nCj4+CmVuZG9iago0IDAgb2JqCjw8Cj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAxIDAgUgovTmFtZXMgMiAwIFIKPj4KZW5kb2JqCjEgMCBvYmoKPDwKL1R5cGUgL1BhZ2VzCi9Db3VudCAyCi9LaWRzIFs3IDAgUiAxMSAwIFJdCj4+CmVuZG9iagoyIDAgb2JqCjw8Ci9EZXN0cyA8PAogIC9OYW1lcyBbCl0KPj4KPj4KZW5kb2JqCnhyZWYKMCAxOQowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDMwMjIgMDAwMDAgbiAKMDAwMDAwMzA4NiAwMDAwMCBuIAowMDAwMDAyOTYwIDAwMDAwIG4gCjAwMDAwMDI5MzkgMDAwMDAgbiAKMDAwMDAwMDI0NCAwMDAwMCBuIAowMDAwMDAwMTM3IDAwMDAwIG4gCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMjg0MiAwMDAwMCBuIAowMDAwMDAxNTY5IDAwMDAwIG4gCjAwMDAwMDE0NjEgMDAwMDAgbiAKMDAwMDAwMTMzNyAwMDAwMCBuIAowMDAwMDAyNzIxIDAwMDAwIG4gCjAwMDAwMDI0NjcgMDAwMDAgbiAKMDAwMDAwMjQ5MiAwMDAwMCBuIAowMDAwMDAyNTE3IDAwMDAwIG4gCjAwMDAwMDI1NTMgMDAwMDAgbiAKMDAwMDAwMjYyNiAwMDAwMCBuIAowMDAwMDAyNjc1IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgMTkKL1Jvb3QgMyAwIFIKL0luZm8gMTIgMCBSCi9JRCBbPDVmZGQ3Y2RjOGRjOTJlNTFlZDllZDRhYWZhMWQ2MjA4PiA8NWZkZDdjZGM4ZGM5MmU1MWVkOWVkNGFhZmExZDYyMDg+XQo+PgpzdGFydHhyZWYKMzEzMwolJUVPRgo=", "byte_length": 3668, "sha256": "9c201b236b4452ac8f799ddbc1428c710a476697fbdc56051867f91e6aa4bb70", "snapshot_id": "snapshot", "report_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, "requestId": "fixture" } ``` ### GET /social/campaign-post-membership Read the current membership revision, including unlinked and never-linked posts, for a scoped campaign/post confirmation. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-post-membership ``` curl "https://api.wrnexus.com/social/campaign-post-membership?workspace=workspace-id&id=campaign-id&postId=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "campaign_id": "campaign-id", "campaign_name": "Launch campaign", "post_id": "post-id", "post_title": "Launch draft", "revision": 1, "linked": true }, "requestId": "illustrative-request" } ``` ### GET /social/campaign-posts Read up to 50 posts currently linked to a campaign with their membership revision for the next change. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.campaign-posts ``` curl "https://api.wrnexus.com/social/campaign-posts?workspace=workspace-id&id=campaign-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "name": "Launch campaign", "items": [ { "post_id": "post-id", "title": "Launch draft", "revision": 1, "linked_at": "2026-10-22T12:00:00.000Z", "linked_by": "member-id", "updated_at": "2026-10-22T12:00:00.000Z", "updated_by": "member-id" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/link-campaign-post Add or remove exactly one post from a campaign against the opened membership revision, with an exact-input request key. Requires social.create. Linking changes reporting membership only; it never edits, publishes or re-measures the post. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.link-campaign-post ``` curl -X POST "https://api.wrnexus.com/social/link-campaign-post?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "campaignId": "campaign-id", "postId": "post-id", "revision": 0, "linked": true, "requestKey": "campaign_link_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "campaign_id": "campaign-id", "post_id": "post-id", "revision": 1, "linked": true }, "requestId": "illustrative-request" } ``` ### POST /social/save-campaign Create with a null id and revision zero, or edit exactly the opened revision, with an exact-input request key. Requires social.create. No provider or advertising account is contacted. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-campaign ``` curl -X POST "https://api.wrnexus.com/social/save-campaign?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "revision": 0, "name": "Launch campaign", "goal": "Review launch performance", "tags": [ "launch" ], "utm": { "source": "social", "medium": "organic", "campaign": "launch" }, "requestKey": "campaign_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "campaign-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### GET /social/automations Read workspace rule metadata without draft template content. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.automations ``` curl "https://api.wrnexus.com/social/automations?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "automation-id", "owner_id": "member-id", "revision": 1, "enabled": true, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "name": "Create follow-up draft", "trigger_event": "social.publication.published", "action": "social.post.create" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/automation Read current rule text and scoped run counts. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.automation ``` curl "https://api.wrnexus.com/social/automation?workspace=workspace-id&id=automation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "automation-id", "owner_id": "member-id", "revision": 1, "enabled": true, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "name": "Create follow-up draft", "trigger_event": "social.publication.published", "action": "social.post.create", "draft_title": "Follow-up draft", "draft_body": "Human review required before publishing.", "summary": { "source": "social.automation_runs", "sampled_at": "2026-10-22T12:00:00.000Z", "states": [ { "state": "pending", "count": 0 }, { "state": "processing", "count": 0 }, { "state": "completed", "count": 1 }, { "state": "suppressed", "count": 0 }, { "state": "failed", "count": 0 } ] } }, "requestId": "illustrative-request" } ``` ### GET /social/automation-versions Read metadata for up to 50 immutable saved rule revisions. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.automation-versions ``` curl "https://api.wrnexus.com/social/automation-versions?workspace=workspace-id&id=automation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "automation-id", "current_revision": 1, "items": [ { "revision": 1, "name": "Create follow-up draft", "trigger_event": "social.publication.published", "action": "social.post.create", "enabled": true, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextRevision": null }, "requestId": "illustrative-request" } ``` ### GET /social/automation-version Read exact saved draft template and trigger settings. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.automation-version ``` curl "https://api.wrnexus.com/social/automation-version?workspace=workspace-id&id=automation-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "automation-id", "revision": 1, "name": "Create follow-up draft", "trigger_event": "social.publication.published", "action": "social.post.create", "enabled": true, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "draft_title": "Follow-up draft", "draft_body": "Human review required before publishing." }, "requestId": "illustrative-request" } ``` ### GET /social/automation-runs Read up to 50 run metadata records without template content or leases. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.automation-runs ``` curl "https://api.wrnexus.com/social/automation-runs?workspace=workspace-id&id=automation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "automation-id", "items": [ { "id": "automation-run-id", "automation_id": "automation-id", "revision": 1, "owner_id": "member-id", "outcome_id": "outcome-id", "state": "completed", "attempts": 1, "result_post_id": "follow-up-post-id", "code": null, "next_attempt_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "publication_id": "publication-id" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/automation-run Read execution status and links to its exact rule revision, publication and created draft. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.automation-run ``` curl "https://api.wrnexus.com/social/automation-run?workspace=workspace-id&id=automation-run-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "automation-run-id", "automation_id": "automation-id", "revision": 1, "owner_id": "member-id", "outcome_id": "outcome-id", "state": "completed", "attempts": 1, "result_post_id": "follow-up-post-id", "code": null, "next_attempt_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "publication_id": "publication-id" }, "requestId": "illustrative-request" } ``` ### GET /social/review-duplicates Compare exact reviewed platform text and ordered Drive references against other scoped queued, accepted, published or uncertain Social requests for the same selected accounts. Returns coverage; incomplete coverage is never a clear result. No provider or Drive read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.review-duplicates ``` curl "https://api.wrnexus.com/social/review-duplicates?id=review-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "review_id": "review-id", "revision": 1, "matching_publications": 0, "unindexed_publications": 2, "unavailable_accounts": 0, "complete": false, "items": [], "nextCursor": null, "checked_at": "2026-10-21T12:00:00.000Z", "source": "social.publication_content_index" }, "requestId": "duplicate-check" } ``` ### GET /social/publishing-policy Read the current workspace policy. Limits apply independently per selected account; this does not grant publishing authority. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publishing-policy ``` curl "https://api.wrnexus.com/social/publishing-policy" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 0, "minimum_spacing_seconds": 0, "maximum_per_24_hours": null, "updated_by": null, "updated_at": null }, "requestId": "policy-read" } ``` ### GET /social/conversation-fixed-reply-runs Read fifty scoped execution receipts ordered by admission time. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-fixed-reply-runs ``` curl "https://api.wrnexus.com/social/conversation-fixed-reply-runs?workspace=workspace-id&id=fixed_reply_rule" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "rule_id": "fixed_reply_rule", "rule_revision": 1, "conversation_id": "conversation", "waiting_revision": 1, "actor_id": "manager", "state": "sent", "reason": "reply-confirmed", "attempts": 1, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z", "send_id": "fixed-reply-send", "attempted_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "fixed_reply-execution" } ``` ### GET /social/conversation-fixed-reply-run Read one scoped execution receipt without provider text or lease credentials. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-fixed-reply-run ``` curl "https://api.wrnexus.com/social/conversation-fixed-reply-run?workspace=workspace-id&id=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "rule_id": "fixed_reply_rule", "rule_revision": 1, "conversation_id": "conversation", "waiting_revision": 1, "actor_id": "manager", "state": "sent", "reason": "reply-confirmed", "attempts": 1, "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z", "send_id": "fixed-reply-send", "attempted_at": "2026-10-22T12:00:00.000Z" }, "requestId": "fixed_reply-execution" } ``` ### GET /social/conversation-fixed-reply-rules List fifty saved fixed-response rules in the selected workspace. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-fixed-reply-rules ``` curl "https://api.wrnexus.com/social/conversation-fixed-reply-rules?workspace=workspace-id&after=cursor" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "fixed_reply_rule", "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "saved_reply_id": null, "saved_reply_revision": null, "reviewed_text": "", "max_replies_per_hour": null, "minimum_interval_seconds": null }, "created_by": "manager", "updated_by": "manager", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "fixed_reply" } ``` ### GET /social/conversation-fixed-reply-rule Read a saved fixed-response rule. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-fixed-reply-rule ``` curl "https://api.wrnexus.com/social/conversation-fixed-reply-rule?workspace=workspace-id&id=fixed_reply_rule" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "fixed_reply_rule", "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "saved_reply_id": null, "saved_reply_revision": null, "reviewed_text": "", "max_replies_per_hour": null, "minimum_interval_seconds": null }, "created_by": "manager", "updated_by": "manager", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "summary": { "source": "social.conversation_fixed_reply_runs", "as_of": "2026-10-22T12:00:00.000Z", "counts": { "pending": 0, "processing": 0, "suppressed": 0, "failed": 0, "unknown": 0, "sent": 0 }, "retrying": 0 } }, "requestId": "fixed_reply" } ``` ### GET /social/conversation-fixed-reply-versions Read fifty immutable rule revisions, newest first. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-fixed-reply-versions ``` curl "https://api.wrnexus.com/social/conversation-fixed-reply-versions?workspace=workspace-id&id=fixed_reply_rule&before=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "saved_reply_id": null, "saved_reply_revision": null, "reviewed_text": "", "max_replies_per_hour": null, "minimum_interval_seconds": null }, "actor_id": "manager", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "fixed_reply" } ``` ### GET /social/conversation-fixed-reply-version Read one immutable fixed-response rule revision. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-fixed-reply-version ``` curl "https://api.wrnexus.com/social/conversation-fixed-reply-version?workspace=workspace-id&id=fixed_reply_rule&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "saved_reply_id": null, "saved_reply_revision": null, "reviewed_text": "", "max_replies_per_hour": null, "minimum_interval_seconds": null }, "actor_id": "manager", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "fixed_reply" } ``` ### POST /social/save-conversation-fixed-reply-rule Save name, policy, revision and exact-input request key. Requires read, moderation and management access; enabled rules require selected provider accounts, an immutable saved-reply version, exact reviewed text and explicit operational limits. The worker may send one matching public YouTube or Facebook comment reply. Uncertain outcomes cannot be resent automatically. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-conversation-fixed-reply-rule ``` curl -X POST "https://api.wrnexus.com/social/save-conversation-fixed-reply-rule?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "revision": 0, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "saved_reply_id": null, "saved_reply_revision": null, "reviewed_text": "", "max_replies_per_hour": null, "minimum_interval_seconds": null }, "requestKey": "fixed_reply_sdk_create_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "fixed_reply_rule", "revision": 1 }, "requestId": "fixed_reply" } ``` ### GET /social/dm-keyword-runs Read fifty scoped execution receipts ordered by admission time. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-keyword-runs ``` curl "https://api.wrnexus.com/social/dm-keyword-runs?workspace=workspace-id&id=rule-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/dm-keyword-run Read one scoped execution receipt without provider text or lease credentials. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-keyword-run ``` curl "https://api.wrnexus.com/social/dm-keyword-run?workspace=workspace-id&id=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "rule_id": "rule-id", "rule_revision": 1, "conversation_id": "conversation-id", "waiting_episode": "2026-10-22T12:00:00.000Z", "actor_id": "member-id", "state": "suppressed", "reason": "no-match", "result_revision": null, "attempts": 1, "next_attempt_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/dm-keyword-rules List fifty saved keyword assignment rules in the selected workspace. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-keyword-rules ``` curl "https://api.wrnexus.com/social/dm-keyword-rules?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [], "next_cursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/dm-keyword-rule Read a saved keyword assignment rule. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-keyword-rule ``` curl "https://api.wrnexus.com/social/dm-keyword-rule?workspace=workspace-id&id=rule-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "rule-id", "revision": 1, "name": "Review assignment", "policy": { "enabled": false, "provider": "instagram", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "created_by": "member-id", "updated_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "summary": { "source": "social.dm_keyword_runs", "as_of": "2026-10-22T12:00:00.000Z", "counts": { "pending": 0, "processing": 0, "completed": 0, "suppressed": 0, "failed": 0 }, "retrying": 0 } }, "requestId": "illustrative-request" } ``` ### GET /social/dm-keyword-versions Read fifty immutable rule revisions, newest first. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-keyword-versions ``` curl "https://api.wrnexus.com/social/dm-keyword-versions?workspace=workspace-id&id=rule-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [], "next_revision": null }, "requestId": "illustrative-request" } ``` ### GET /social/dm-keyword-version Read one immutable keyword rule revision. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.dm-keyword-version ``` curl "https://api.wrnexus.com/social/dm-keyword-version?workspace=workspace-id&id=rule-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1, "name": "Review assignment", "policy": { "enabled": false, "provider": "instagram", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### POST /social/save-dm-keyword-rule Save name, policy, revision and exact-input request key. Requires read, moderation and management access; enabled rules recheck selected provider accounts and assignee read/moderation access. Enabled rules are processed by the Social worker using verified provider reads and atomic local assignment receipts; no provider reply is sent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-dm-keyword-rule ``` curl -X POST "https://api.wrnexus.com/social/save-dm-keyword-rule?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 0, "name": "Review assignment", "policy": { "enabled": false, "provider": "instagram", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "requestKey": "dm_keyword_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "rule-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-keyword-runs Read fifty scoped execution receipts ordered by admission time. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-keyword-runs ``` curl "https://api.wrnexus.com/social/conversation-keyword-runs?workspace=workspace-id&id=keyword_rule" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "rule_id": "keyword_rule", "rule_revision": 1, "conversation_id": "conversation", "waiting_revision": 1, "actor_id": "manager", "state": "completed", "reason": "matched", "result_revision": 2, "attempts": 1, "next_attempt_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z" } ], "next_cursor": null }, "requestId": "keyword-execution" } ``` ### GET /social/conversation-keyword-run Read one scoped execution receipt without provider text or lease credentials. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-keyword-run ``` curl "https://api.wrnexus.com/social/conversation-keyword-run?workspace=workspace-id&id=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "rule_id": "keyword_rule", "rule_revision": 1, "conversation_id": "conversation", "waiting_revision": 1, "actor_id": "manager", "state": "completed", "reason": "matched", "result_revision": 2, "attempts": 1, "next_attempt_at": "2026-10-22T12:00:00.000Z", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:01.000Z" }, "requestId": "keyword-execution" } ``` ### GET /social/conversation-keyword-rules List fifty saved keyword assignment rules in the selected workspace. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-keyword-rules ``` curl "https://api.wrnexus.com/social/conversation-keyword-rules?workspace=workspace-id&after=cursor" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "keyword_rule", "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "created_by": "manager", "updated_by": "manager", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "next_cursor": null }, "requestId": "keyword" } ``` ### GET /social/conversation-keyword-rule Read a saved keyword assignment rule. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-keyword-rule ``` curl "https://api.wrnexus.com/social/conversation-keyword-rule?workspace=workspace-id&id=keyword_rule" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "keyword_rule", "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "created_by": "manager", "updated_by": "manager", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "summary": { "source": "social.conversation_keyword_runs", "as_of": "2026-10-22T12:00:00.000Z", "counts": { "pending": 0, "processing": 0, "completed": 0, "suppressed": 0, "failed": 0 }, "retrying": 0 } }, "requestId": "keyword" } ``` ### GET /social/conversation-keyword-versions Read fifty immutable rule revisions, newest first. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-keyword-versions ``` curl "https://api.wrnexus.com/social/conversation-keyword-versions?workspace=workspace-id&id=keyword_rule&before=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "actor_id": "manager", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "keyword" } ``` ### GET /social/conversation-keyword-version Read one immutable keyword rule revision. Requires current read and moderation access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-keyword-version ``` curl "https://api.wrnexus.com/social/conversation-keyword-version?workspace=workspace-id&id=keyword_rule&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "actor_id": "manager", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "keyword" } ``` ### POST /social/save-conversation-keyword-rule Save name, policy, revision and exact-input request key. Requires read, moderation and management access; enabled rules recheck selected provider accounts and assignee read/moderation access. Enabled rules are processed by the Social worker using verified provider reads and atomic local assignment receipts; no provider reply is sent. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-conversation-keyword-rule ``` curl -X POST "https://api.wrnexus.com/social/save-conversation-keyword-rule?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "revision": 0, "name": "Help triage", "policy": { "enabled": false, "provider": "youtube", "account_ids": [], "terms": [], "match": "any", "case_sensitive": false, "assignee_id": null }, "requestKey": "keyword_sdk_create_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "keyword_rule", "revision": 1 }, "requestId": "keyword" } ``` ### GET /social/conversation-alert-settings Read the saved alert policy for the selected workspace. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-alert-settings ``` curl "https://api.wrnexus.com/social/conversation-alert-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 0, "policy": { "enabled": false, "after_seconds": 86400, "repeat_seconds": null, "recipient_ids": [] }, "updated_by": null, "updated_at": null, "delivery_summary": { "counts": { "pending": 0, "processing": 0, "accepted": 0, "cancelled": 0 }, "as_of": "2026-10-22T12:00:00.000Z" } }, "requestId": "alert-settings" } ``` ### GET /social/conversation-alert-versions Read up to fifty immutable alert policy revisions. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-alert-versions ``` curl "https://api.wrnexus.com/social/conversation-alert-versions?workspace=workspace-id&before=3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 2, "policy": { "enabled": true, "after_seconds": 3600, "repeat_seconds": null, "recipient_ids": [ "moderator-id" ] }, "actor_id": "manager-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "alert-history" } ``` ### GET /social/conversation-alert-version Read one saved alert policy revision. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-alert-version ``` curl "https://api.wrnexus.com/social/conversation-alert-version?workspace=workspace-id&revision=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 2, "policy": { "enabled": true, "after_seconds": 3600, "repeat_seconds": null, "recipient_ids": [ "moderator-id" ] }, "actor_id": "manager-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "alert-version" } ``` ### POST /social/save-conversation-alert-settings Save explicit alert timing and recipient IDs with current social.read and social.manage, optimistic revision and exact-input request key. Recipients must retain read and moderation access. Defaults off; private worker delivery requires configured internal signing, current recipient access and inbox preferences. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-conversation-alert-settings ``` curl -X POST "https://api.wrnexus.com/social/save-conversation-alert-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 0, "policy": { "enabled": true, "after_seconds": 3600, "repeat_seconds": null, "recipient_ids": [ "moderator-id" ] }, "requestKey": "alert_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1 }, "requestId": "alert-save" } ``` ### GET /social/approval-reminder-settings Read the saved reminder policy for the selected workspace. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.approval-reminder-settings ``` curl "https://api.wrnexus.com/social/approval-reminder-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 0, "policy": { "enabled": false, "after_seconds": 86400, "repeat_seconds": null, "recipient_ids": [] }, "updated_by": null, "updated_at": null }, "requestId": "reminder-settings" } ``` ### GET /social/approval-reminder-versions Read up to fifty immutable reminder policy revisions. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.approval-reminder-versions ``` curl "https://api.wrnexus.com/social/approval-reminder-versions?workspace=workspace-id&before=3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "revision": 2, "policy": { "enabled": true, "after_seconds": 3600, "repeat_seconds": null, "recipient_ids": [ "approver-id" ] }, "actor_id": "manager-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "next_revision": null }, "requestId": "reminder-history" } ``` ### GET /social/approval-reminder-version Read one saved reminder policy revision. Requires current social.read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.approval-reminder-version ``` curl "https://api.wrnexus.com/social/approval-reminder-version?workspace=workspace-id&revision=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 2, "policy": { "enabled": true, "after_seconds": 3600, "repeat_seconds": null, "recipient_ids": [ "approver-id" ] }, "actor_id": "manager-id", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "reminder-version" } ``` ### POST /social/save-approval-reminder-settings Save explicit reminder timing and recipient IDs with current social.read and social.manage, optimistic revision and exact-input request key. Recipients must retain read and approval access; delivery follows inbox preferences. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-approval-reminder-settings ``` curl -X POST "https://api.wrnexus.com/social/save-approval-reminder-settings?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 0, "policy": { "enabled": true, "after_seconds": 3600, "repeat_seconds": null, "recipient_ids": [ "approver-id" ] }, "requestKey": "reminder_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1 }, "requestId": "reminder-save" } ``` ### GET /social/publishing-policy-versions Read up to fifty immutable policy revisions. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publishing-policy-versions ``` curl "https://api.wrnexus.com/social/publishing-policy-versions?before=3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "current_revision": 3, "items": [ { "revision": 2, "minimum_spacing_seconds": 60, "maximum_per_24_hours": 5, "actor_id": "member-id", "created_at": "2026-10-21T12:00:00.000Z" } ], "nextRevision": null }, "requestId": "policy-history" } ``` ### GET /social/publishing-policy-version Read one immutable policy revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.publishing-policy-version ``` curl "https://api.wrnexus.com/social/publishing-policy-version?revision=2" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 2, "minimum_spacing_seconds": 60, "maximum_per_24_hours": 5, "actor_id": "member-id", "created_at": "2026-10-21T12:00:00.000Z" }, "requestId": "policy-version" } ``` ### POST /social/save-publishing-policy Save explicit spacing and rolling 24-hour limits with current social.read and social.manage authority, optimistic revision and exact-input retry key. Does not publish or change approved schedules. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-publishing-policy ``` curl -X POST "https://api.wrnexus.com/social/save-publishing-policy" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "revision": 0, "policy": { "minimum_spacing_seconds": 60, "maximum_per_24_hours": 5 }, "requestKey": "policy_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "revision": 1 }, "requestId": "policy-save" } ``` ### POST /social/save-automation Create or revise your rule using exact-input retry keys and current social.read, social.manage and social.create authority. Only explicit draft creation is supported; no provider write. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-automation ``` curl -X POST "https://api.wrnexus.com/social/save-automation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "revision": 0, "name": "Create follow-up draft", "trigger": "social.publication.published", "action": "social.post.create", "title": "Follow-up draft", "body": "Human review required before publishing.", "enabled": false, "requestKey": "automation_save_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "automation-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-comment Read current YouTube parent evidence and a fresh actor/workspace-bound reference after current ownership and consent checks. At most ten thread pages; no provider write. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-comment ``` curl "https://api.wrnexus.com/social/conversation-comment?workspace=workspace-id&id=conversation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "publication_id": "publication-id", "provider": "x", "provider_post_id": "456", "comment": { "id": "789", "authorId": "999", "conversationId": "444", "parentId": "456", "text": "Illustrative direct reply", "createdAt": null, "likes": 0, "replies": null }, "ref": "fresh-encrypted-comment-reference", "collected_at": "2026-10-22T12:00:00.000Z", "source": "x.post.direct_reply" }, "requestId": "illustrative-request" } ``` ### POST /social/assign-conversation Assign an eligible current workspace moderator or null to unassign, with current shared revision and exact request identity. Grants no access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.assign-conversation ``` curl -X POST "https://api.wrnexus.com/social/assign-conversation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "conversation-id", "revision": 1, "assigneeId": "moderator-id", "requestKey": "conversation_assign_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "revision": 2 }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-assignees Read up to 50 current active workspace moderators and Account display names. Requires moderation authority. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-assignees ``` curl "https://api.wrnexus.com/social/conversation-assignees?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "moderator-id", "name": "Existing moderator" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-assignment Read current assignment and whether the assigned member remains eligible. Assignment grants no access. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-assignment ``` curl "https://api.wrnexus.com/social/conversation-assignment?workspace=workspace-id&id=conversation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "revision": 1, "assignee": null }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-assignment-history Read up to 50 recorded assignment changes with before/after member identifiers and actor/time. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-assignment-history ``` curl "https://api.wrnexus.com/social/conversation-assignment-history?workspace=workspace-id&id=conversation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "items": [], "nextBefore": null }, "requestId": "illustrative-request" } ``` ### POST /social/track-conversation Explicitly track a fresh verified YouTube, Facebook, Instagram, LinkedIn or X parent as an internal Open conversation. Existing tracking never reopens it. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.track-conversation ``` curl -X POST "https://api.wrnexus.com/social/track-conversation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "requestKey": "conversation_track_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### POST /social/set-conversation-status Set Open, Pending or Resolved with optimistic revision and exact request identity. No provider action. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.set-conversation-status ``` curl -X POST "https://api.wrnexus.com/social/set-conversation-status?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "conversation-id", "revision": 1, "status": "pending", "requestKey": "conversation_status_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "revision": 2 }, "requestId": "illustrative-request" } ``` ### GET /social/conversations Read at most 50 workspace conversations with current internal workflow status. This is explicit tracking, not automatic inbox sync. Optional status, assignment=me/unassigned and exact accountId, provider or publicationId narrow the view, including disconnected stored history. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversations ``` curl "https://api.wrnexus.com/social/conversations?workspace=workspace-id&provider=x&status=open" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "conversation-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "provider_post_id": "456", "video_id": null, "assignee_id": null, "status": "open", "revision": 1, "created_by": "member-id", "updated_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/conversation Read one workspace conversation and its current internal status/revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation ``` curl "https://api.wrnexus.com/social/conversation?workspace=workspace-id&id=conversation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "provider_post_id": "456", "video_id": null, "assignee_id": null, "status": "open", "revision": 1, "created_by": "member-id", "updated_by": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "updated_at": "2026-10-22T12:00:00.000Z", "event_counts": { "open": 1, "pending": 0, "resolved": 0 } }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-history Read up to 50 immutable status events before an optional revision. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-history ``` curl "https://api.wrnexus.com/social/conversation-history?workspace=workspace-id&id=conversation-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "conversation-id", "items": [ { "revision": 1, "status": "open", "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z" } ], "nextBefore": null }, "requestId": "illustrative-request" } ``` ### GET /social/conversation-summary Read genuine workspace Open, Pending and Resolved tracked counts. No provider engagement measurements. Optional status, assignment=me/unassigned and exact accountId, provider or publicationId match inbox filters. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.conversation-summary ``` curl "https://api.wrnexus.com/social/conversation-summary?workspace=workspace-id&provider=x" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "counts": { "open": 1, "pending": 0, "resolved": 0 }, "as_of": "2026-10-22T12:00:00.000Z", "source": "social.conversations" }, "requestId": "illustrative-request" } ``` ### POST /social/add-comment-note Append an immutable workspace note to a freshly verified YouTube, Facebook, Instagram, LinkedIn or X parent comment. Never sends to a provider. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.add-comment-note ``` curl -X POST "https://api.wrnexus.com/social/add-comment-note?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "publication-id", "ref": "encrypted-parent-reference", "body": "Internal team note for this thread.", "requestKey": "comment_note_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "note-id" }, "requestId": "illustrative-request" } ``` ### GET /social/comment-notes Read up to 50 workspace note metadata records for one publication and parent comment. No provider read. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.comment-notes ``` curl "https://api.wrnexus.com/social/comment-notes?workspace=workspace-id&id=publication-id&parentId=789" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "note-id", "publication_id": "publication-id", "parent_id": "789", "actor_id": "member-id", "created_at": "2026-10-22T12:00:00.000Z", "provider": "x" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/comment-note Read one immutable internal workspace note and author/time evidence. Requires moderation authority. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.comment-note ``` curl "https://api.wrnexus.com/social/comment-note?workspace=workspace-id&id=note-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "note-id", "publication_id": "publication-id", "account_id": "account-id", "parent_id": "789", "provider": "x", "provider_post_id": "456", "video_id": null, "actor_id": "member-id", "body": "Private context for the team.", "created_at": "2026-10-22T12:00:00.000Z" }, "requestId": "illustrative-request" } ``` ### GET /social/saved-reply-usage Read workspace aggregate Sent, Failed and Unknown send outcomes for a saved reply or exact revision. No previews, private send text/identities or provider engagement measurements. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.saved-reply-usage ``` curl "https://api.wrnexus.com/social/saved-reply-usage?workspace=workspace-id&id=saved-reply-id&revision=1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "direct_messages": { "counts": { "accepted": 0, "unknown": 0, "not_dispatched": 0 }, "source": "social.instagram_dm_sends" }, "id": "saved-reply-id", "revision": 1, "counts": { "sent": 0, "failed": 0, "unknown": 1 }, "as_of": "2026-10-22T12:00:00.000Z", "source": "social.reply_sends" }, "requestId": "illustrative-request" } ``` ### POST /social/generate-reply Generate reply text from an explicitly supplied brief with current AI and moderation authority, confirmed currency/charge limit and private workspace source. No sending. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.generate-reply ``` curl -X POST "https://api.wrnexus.com/social/generate-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "requestKey": "text_generate_001", "modelId": "model-id", "prompt": "Draft a concise reply for human review.", "maxChargeMinor": 50, "currency": "INR" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "draft-id", "status": "completed", "text": "Illustrative generated text for human review.", "currency": "INR", "charged_minor": 25, "error_code": null }, "requestId": "illustrative-request" } ``` ### GET /social/reply-suggestions Read 50 private reply generation summaries for the original actor/workspace. No AI or provider calls. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reply-suggestions ``` curl "https://api.wrnexus.com/social/reply-suggestions?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "suggestion-id", "status": "completed", "currency": "INR", "charged_minor": 25, "created_at": "2026-10-22T12:00:00.000Z", "model_name": "Configured text model" } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### GET /social/reply-suggestion Read a private generated reply and recorded AI spending. Unfinished text stays hidden; no sending. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reply-suggestion ``` curl "https://api.wrnexus.com/social/reply-suggestion?workspace=workspace-id&id=suggestion-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "suggestion-id", "status": "completed", "currency": "INR", "charged_minor": 25, "created_at": "2026-10-22T12:00:00.000Z", "model_name": "Configured text model", "reserved_limit_minor": 50, "text": "Illustrative generated reply for human review.", "text_available": true, "error_code": null }, "requestId": "illustrative-request" } ``` ### POST /social/preview-saved-reply Fill supported variables in one exact saved reply revision and platform override. Literal single-pass substitution, no storage, sending or usage. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.preview-saved-reply ``` curl -X POST "https://api.wrnexus.com/social/preview-saved-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "saved-reply-id", "revision": 1, "platform": "youtube", "variables": { "first_name": "Reader" } }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "saved-reply-id", "revision": 1, "current_revision": 1, "is_current": true, "name": "Acknowledgement", "platform": "youtube", "body": "Hello Reader, thank you for your message.", "variables": [ "first_name" ] }, "requestId": "illustrative-request" } ``` ### POST /social/save-saved-reply Create with null id and revision zero, or edit the opened revision. Requires current moderation permission and an exact-input request key. Does not send messages. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-saved-reply ``` curl -X POST "https://api.wrnexus.com/social/save-saved-reply?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": null, "revision": 0, "name": "Acknowledgement", "body": "Hello {{first_name}}, thank you for your message.", "variants": {}, "requestKey": "saved_reply_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "saved-reply-id", "revision": 1 }, "requestId": "illustrative-request" } ``` ### POST /social/discard-generation Preserve an owned request as cancelled and prevent its start, only before gateway admission or accepted AI work. No provider cancellation, charge/refund or Drive deletion. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.discard-generation ``` curl -X POST "https://api.wrnexus.com/social/discard-generation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "generation-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "state": "cancelled", "discarded_at": "2026-10-22T12:00:00.000Z", "can_discard": false, "recovery_required": false, "model_id": "model-id", "prompt": "Create an illustration for human review.", "parameters": { "size": "1024x1024" }, "max_charge_minor": 50, "charge": null, "spending": null, "files": [] }, "requestId": "illustrative-request" } ``` ### POST /social/poll-generation Check an owned saved run and settle its reserved usage through the shared AI gateway. Does not create a new task. Polls are bounded to one per job at a time, at least ten seconds apart. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.poll-generation ``` curl -X POST "https://api.wrnexus.com/social/poll-generation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "generation-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "generation-id", "operation": "image", "created_at": "2026-10-22T12:00:00.000Z", "state": "completed", "discarded_at": null, "can_discard": false, "recovery_required": false, "model_id": "model-id", "prompt": "Create an illustration for human review.", "parameters": { "size": "1024x1024" }, "max_charge_minor": 50, "charge": { "currency": "INR", "charged_minor": 25 }, "spending": { "currency": "INR", "charged_minor": 25, "max_charge_minor": 50, "source": "social.media.ai-run" }, "files": [] }, "requestId": "illustrative-request" } ``` ### POST /social/save-generation Save an owned completed output by ordinal into an authorised private Drive workspace. Byte/destination binding preserves one file across retries; scan completion and attachment remain separate. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.save-generation ``` curl -X POST "https://api.wrnexus.com/social/save-generation?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "generation-id", "ordinal": 0, "driveWorkspaceId": "drive-workspace-id" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "generation_id": "generation-id", "ordinal": 0, "node_id": "drive-node-id", "drive_workspace_id": "drive-workspace-id", "name": "generated-image.png", "scan_status": "pending" }, "requestId": "illustrative-request" } ``` ### POST /social/reschedule-batch Atomically replace 1–20 exact-version approval times. Requires social.update and social.publish. Every replacement requires fresh approval; no provider request or automatic queueing. Retain the exact requestKey after an uncertain response. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reschedule-batch ``` curl -X POST "https://api.wrnexus.com/social/reschedule-batch?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "id": "review-id", "revision": 1, "scheduledAt": "2030-11-01T03:30:00.000Z", "timezone": "Asia/Kolkata" } ], "requestKey": "schedule_batch_001" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "batch-id", "created_at": "2026-10-22T12:00:00.000Z", "items": [ { "id": "replacement-review-id", "previous_review_id": "review-id", "revision": 1, "scheduled_at": "2030-11-01T03:30:00.000Z", "timezone": "Asia/Kolkata", "status": "pending" } ] }, "requestId": "illustrative-request" } ``` ### GET /social/schedule-batch Read one scoped immutable batch result with original and replacement approval IDs and saved scheduling metadata. This is a historical result, not current approval status. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.schedule-batch ``` curl "https://api.wrnexus.com/social/schedule-batch?workspace=workspace-id&id=batch-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "batch-id", "created_at": "2026-10-22T12:00:00.000Z", "items": [ { "id": "replacement-review-id", "previous_review_id": "review-id", "revision": 1, "scheduled_at": "2026-11-01T12:00:00.000Z", "timezone": "Asia/Kolkata", "status": "pending" } ] }, "requestId": "illustrative-request" } ``` ### GET /social/schedule-batches Read up to 50 batch summaries in workspace creation order with an exact scoped cursor. No provider requests. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.schedule-batches ``` curl "https://api.wrnexus.com/social/schedule-batches?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "items": [ { "id": "batch-id", "created_at": "2026-10-22T12:00:00.000Z", "item_count": 1 } ], "nextCursor": null }, "requestId": "illustrative-request" } ``` ### POST /social/reschedule-review Replace an approval with a new pending request for the exact version, accounts and provider settings. Requires edit and publish permissions; started targets block the atomic change. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.reschedule-review ``` curl -X POST "https://api.wrnexus.com/social/reschedule-review?workspace=workspace-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "review-id", "revision": 1, "scheduledAt": "2030-11-01T03:30:00.000Z", "timezone": "Asia/Kolkata" }' ``` Illustrative response (not live account data): ``` { "ok": true, "data": { "id": "replacement-review-id", "previous_review_id": "review-id", "revision": 1, "scheduled_at": "2030-11-01T03:30:00.000Z", "timezone": "Asia/Kolkata", "status": "pending" }, "requestId": "illustrative-request" } ``` ### GET /social/post-metrics Read provider measurements with source, period, freshness and unavailable reasons. Measurements match the selected account provider while it exists; disconnected stored history remains readable. Repeated provider posts remain separate, and zero is distinct from unavailable. Optional workspace query selects an existing Account workspace with current placement and Social action permissions; the key organisation is fixed. For POST, workspace belongs in the query, never the body. Required scope: social.post-metrics ``` curl "https://api.wrnexus.com/social/post-metrics?id=post-id" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "data": [ { "account_id": "account-id", "provider": "facebook", "metric": "facebookReactions", "value": 12, "period_start": "2026-10-19T12:00:00.000Z", "period_end": "2026-10-19T12:00:00.000Z", "collected_at": "2026-10-19T12:00:00.000Z", "unavailable_reason": null, "source": "facebook.post.reactions.summary", "provider_post_id": "123456_987654", "period_kind": "count_at_collection" } ], "requestId": "request-id" } ``` ### GET /notifications/apps List apps and their configured channel routes. Required scope: notifications.apps ``` curl "https://api.wrnexus.com/notifications/apps" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/app-save Group Android, iOS and channel connections in one app. Reuse createRequestId for creation retries; updates use id and revision. Required scope: notifications.app-save ``` curl -X POST "https://api.wrnexus.com/notifications/app-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "createRequestId": "app-create-1042", "name": "Example store", "active": true, "config": { "channels": [ "in_app" ], "mobileConnectionIds": [] } }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "app_4f2a91", "revision": 1, "requestId": "req_5c1d7a" } ``` ### POST /notifications/app-send Admit selected channels together with retry-safe billing. Required scope: notifications.app-send ``` curl -X POST "https://api.wrnexus.com/notifications/app-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "appId": "", "recipientId": "rcp_4f2a91", "channels": "", "title": "Order ready", "body": "Your order is ready.", "purpose": "transactional", "category": "orders", "templateId": "tpl_order_ready", "variables": { "order": "1042" }, "url": "", "screen": "", "idempotencyKey": "unique-request-key" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/push-analytics Provider submission and SDK-observed device receipt, opening and reading. Required scope: notifications.push-analytics ``` curl "https://api.wrnexus.com/notifications/push-analytics?recipientId=rcp_4f2a91" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflow-runs Browse scoped workflow run status without event payloads. Required scope: notifications.workflow-runs ``` curl "https://api.wrnexus.com/notifications/workflow-runs?workflowId=wfl_welcome&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflow-run Read a retained run and its event/recipient snapshot. Required scope: notifications.workflow-run ``` curl "https://api.wrnexus.com/notifications/workflow-run?runId=run_1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflow-steps Browse durable node outcomes and linked send processing. Required scope: notifications.workflow-steps ``` curl "https://api.wrnexus.com/notifications/workflow-steps?runId=run_1&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/workflow-run-cancel Cancel the current revision and stop linked pending work; accepted and uncertain provider submissions remain retained. Required scope: notifications.workflow-run-cancel ``` curl -X POST "https://api.wrnexus.com/notifications/workflow-run-cancel" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "runId": "run_1", "revision": 1 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/workflow-event Record an idempotent recipient event and retain matching published workflow runs. Records a correlation key for event processing; omitted keys use the recipient ID. Required scope: notifications.workflow-event ``` curl -X POST "https://api.wrnexus.com/notifications/workflow-event" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "event": "orders.placed", "recipientId": "rcp_4f2a91", "correlationKey": "order-1042", "data": { "order": "1042", "total": "1499.00" }, "idempotencyKey": "order-1042-placed" }' ``` Illustrative response (not live account data): ``` { "ok": true, "eventId": "evt_31", "replayed": false, "outcomes": [ { "workflow_id": "wfl_welcome", "version_id": "ver_2", "run_id": "run_8", "outcome": "started" } ], "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflows Browse scoped workflow drafts and active versions. Required scope: notifications.workflows ``` curl "https://api.wrnexus.com/notifications/workflows?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflow Read a scoped workflow draft. Required scope: notifications.workflow ``` curl "https://api.wrnexus.com/notifications/workflow?workflowId=wfl_welcome" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflow-versions Browse retained workflow definitions and approval state. Required scope: notifications.workflow-versions ``` curl "https://api.wrnexus.com/notifications/workflow-versions?workflowId=wfl_welcome&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/workflow-version Read an immutable retained workflow definition. Required scope: notifications.workflow-version ``` curl "https://api.wrnexus.com/notifications/workflow-version?versionId=ver_3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/workflow-save Create or revise a typed workflow graph. Send nodes support config.delivery.urgent=true only with transactional published content. Delivery requires the published version creator's active urgent permission and shared hourly allowance. Does not start runs. Required scope: notifications.workflow-save ``` curl -X POST "https://api.wrnexus.com/notifications/workflow-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "config": {} }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/workflow-publish Retain a draft revision and its pinned templates; required approval stays pending. Does not start runs. Required scope: notifications.workflow-publish ``` curl -X POST "https://api.wrnexus.com/notifications/workflow-publish" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflowId": "wfl_welcome", "revision": 1 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/workflow-approve Approve the exact retained version without replacing a newer active revision. Required scope: notifications.workflow-approve ``` curl -X POST "https://api.wrnexus.com/notifications/workflow-approve" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "versionId": "ver_3" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-deliveries Page through a scoped occurrence's per-recipient/channel delivery ledger, status, units and output identity. Required scope: notifications.campaign-deliveries ``` curl "https://api.wrnexus.com/notifications/campaign-deliveries?runId=run_1&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-schedules Page through scoped schedule history for a campaign, including cancelled versions. Required scope: notifications.campaign-schedules ``` curl "https://api.wrnexus.com/notifications/campaign-schedules?campaignId=cmp_spring&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-schedule-create Register an approved immutable campaign version and capture schedule-time audience. Occurrence materialization and delivery use separate workers. Required scope: notifications.campaign-schedule-create ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-schedule-create" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "versionId": "ver_3" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-schedule-control Revision-checked controls stop future occurrence creation and change queued runs. Already submitted deliveries require separate reconciliation. Required scope: notifications.campaign-schedule-control ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-schedule-control" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "scheduleId": "sch_1", "revision": 1, "action": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-schedule Read scoped schedule state, revision, next occurrence and saved advisory estimate. Required scope: notifications.campaign-schedule ``` curl "https://api.wrnexus.com/notifications/campaign-schedule?scheduleId=sch_1" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-runs Page through scoped persisted occurrences and audience capture state. Required scope: notifications.campaign-runs ``` curl "https://api.wrnexus.com/notifications/campaign-runs?scheduleId=sch_1&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-estimate Estimate current consent and policy eligible contacts/devices and unit bounds without reserving or sending. Advisory only; managed carrier quotes and transport readiness are evaluated separately. Required scope: notifications.campaign-estimate ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-estimate" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "config": {} }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-audience-preview Count and page current scoped campaign membership. This does not capture recipients or imply consent, channel eligibility, units or carrier costs. Required scope: notifications.campaign-audience-preview ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-audience-preview" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "audience": "", "limit": 20, "cursor": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-schedule-preview Resolve the next local-calendar campaign times without saving, scheduling or sending. Explicit UTC/offset cutoff; monthly dates clamp, repeated times run once and skipped times shift forward. Required scope: notifications.campaign-schedule-preview ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-schedule-preview" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "schedule": "", "after": "", "limit": 20 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaigns Page through scoped campaign drafts. Publishing prepares immutable versions; execution is separate. Required scope: notifications.campaigns ``` curl "https://api.wrnexus.com/notifications/campaigns?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign Read a scoped campaign configuration and revision. Required scope: notifications.campaign ``` curl "https://api.wrnexus.com/notifications/campaign?campaignId=cmp_spring" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-version Read immutable campaign configuration and publication/approval state. Required scope: notifications.campaign-version ``` curl "https://api.wrnexus.com/notifications/campaign-version?versionId=ver_3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-versions Browse scoped retained campaign versions and approval state. Required scope: notifications.campaign-versions ``` curl "https://api.wrnexus.com/notifications/campaign-versions?campaignId=cmp_spring&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/campaign-version-estimate Review current advisory policy and unit counts and future dates using immutable version settings. Does not reserve, approve, schedule or send. Required scope: notifications.campaign-version-estimate ``` curl "https://api.wrnexus.com/notifications/campaign-version-estimate?versionId=ver_3" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-save Create or revise validated audience, schedule, delivery, limits and A/B settings. Optional config.delivery.urgent=true requires transactional template content. Delivery requires the scheduled sender's active urgent permission and shared hourly allowance per message/device. Does not schedule or send. Required scope: notifications.campaign-save ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "config": {} }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-publish Freeze a campaign revision and pin approved template content; required approval remains pending. Does not launch. Required scope: notifications.campaign-publish ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-publish" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "campaignId": "cmp_spring", "revision": 1 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/campaign-approve Approve the exact immutable campaign version. Does not launch. Required scope: notifications.campaign-approve ``` curl -X POST "https://api.wrnexus.com/notifications/campaign-approve" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "versionId": "ver_3" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/segments Page through scoped dynamic recipient segments. Required scope: notifications.segments ``` curl "https://api.wrnexus.com/notifications/segments?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/segment Read saved audience rules and their current revision. Required scope: notifications.segment ``` curl "https://api.wrnexus.com/notifications/segment?segmentId=seg_active" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/segment-members Evaluate saved audience rules against current scoped profiles. Dispatch still rechecks consent and delivery policy. Required scope: notifications.segment-members ``` curl "https://api.wrnexus.com/notifications/segment-members?segmentId=seg_active&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/segment-save Create or revise validated dynamic audience rules. Required scope: notifications.segment-save ``` curl -X POST "https://api.wrnexus.com/notifications/segment-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "description": "", "rules": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/segment-preview Evaluate draft audience rules without saving, sending or changing consent. Required scope: notifications.segment-preview ``` curl -X POST "https://api.wrnexus.com/notifications/segment-preview" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "rules": "", "limit": 20, "cursor": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-import-preview Validate up to 500 recipient rows and explicit destination consent without changing recipients or sending messages. Required scope: notifications.recipient-import-preview ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-import-preview" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "csv": "customerId,name,email\ncustomer-42,Asha Rao,asha@example.com" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/inbox-export Owner-only scoped CSV of in-app creation, read and archive timestamps. Excludes titles, bodies, links and action content. Follow nextCursor to export the remaining records. Required scope: notifications.inbox-export ``` curl "https://api.wrnexus.com/notifications/inbox-export?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/delivery-export Owner-only scoped CSV of external handoff outcomes and earliest recorded delivery/read/bounce/complaint/failure timestamps. Empty receipt fields mean no evidence recorded. Accepted means provider acceptance, not confirmed delivery or read. Excludes content, addresses, credentials and attachment details; follow nextCursor with the same filters. Required scope: notifications.delivery-export ``` curl "https://api.wrnexus.com/notifications/delivery-export?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/recipient-export Export scoped profile and destination CSV pages; preserves every address and explicit consent, excludes bearer tokens. Follow nextCursor for the remaining audience. Required scope: notifications.recipient-export ``` curl "https://api.wrnexus.com/notifications/recipient-export?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-import Atomically upsert validated recipient profiles and explicit destination consent; never sends messages or clears suppression. Required scope: notifications.recipient-import ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-import" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "csv": "customerId,name,email\ncustomer-42,Asha Rao,asha@example.com" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-bulk-upsert Atomically upsert up to 500 scoped profiles with optional explicit destination consent. Required scope: notifications.recipient-bulk-upsert ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-bulk-upsert" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipients": [] }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/group Read a scoped group and its current revision. Required scope: notifications.group ``` curl "https://api.wrnexus.com/notifications/group?groupId=grp_vip" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/group-members Page through scoped members or recipients available to add, with optional name or customer ID search. Required scope: notifications.group-members ``` curl "https://api.wrnexus.com/notifications/group-members?groupId=grp_vip&limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/groups List scoped recipient groups and membership counts. Required scope: notifications.groups ``` curl "https://api.wrnexus.com/notifications/groups?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/group-save Create or revise a scoped recipient group. Required scope: notifications.group-save ``` curl -X POST "https://api.wrnexus.com/notifications/group-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "description": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/group-members-update Atomically add and remove scoped recipients without changing consent. Required scope: notifications.group-members-update ``` curl -X POST "https://api.wrnexus.com/notifications/group-members-update" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "groupId": "grp_vip", "revision": 1, "add": [], "remove": [] }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/whatsapp-send Reserve the notification processing fee from Service Balance and queue approved content through a scoped registered business number. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance; consent and provider approval still apply. Required scope: notifications.whatsapp-send ``` curl -X POST "https://api.wrnexus.com/notifications/whatsapp-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "destinationId": "dst_w1", "numberId": "num_main", "templateId": "wtpl_order_ready", "templateSnapshotHash": "b7e2…", "variables": { "variable1": "1042" }, "purpose": "transactional", "category": "orders", "idempotencyKey": "order-1042-whatsapp" }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "dsp_93ef", "status": "queued", "replayed": false, "requestId": "req_5c1d7a" } ``` ### POST /notifications/sms-send Reserve the notification processing fee from Service Balance and queue approved content through a verified sender. Select connectionId or useDefaultProvider=true. Optional backupConnectionIds retain order; the reserved managed backup requires allowPaidManagedBackup=true and maxManagedCostMinor. Backups follow confirmed pre-submission failures only. Retries retain reviewed routes; managed delivery uses Service Balance. Optional urgent=true requires transactional purpose and an active sender permission with available hourly allowance. Required scope: notifications.sms-send ``` curl -X POST "https://api.wrnexus.com/notifications/sms-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "destinationId": "dst_s1", "senderId": "sender_wrnxus", "templateId": "tpl_order_ready", "templateSnapshotHash": "a3f1…", "variables": { "order": "1042" }, "purpose": "transactional", "category": "orders", "idempotencyKey": "order-1042-sms" }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "dsp_92cd", "status": "queued", "replayed": false, "requestId": "req_5c1d7a" } ``` ### GET /notifications/mobile-connections Read scoped mobile provider setup without private credentials. Required scope: notifications.mobile-connections ``` curl "https://api.wrnexus.com/notifications/mobile-connections" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/email-connections Read scoped Email provider metadata, form revision and delivery revision without SMTP credentials. Required scope: notifications.email-connections ``` curl "https://api.wrnexus.com/notifications/email-connections" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/email-connection-save Configure authenticated customer SMTP (TLS on port 465 or STARTTLS on 587) or an assigned managed Email sender. Supply the current revision when editing; omit smtpPassword to retain it. Mode cannot change. Credentials are never returned. Required scope: notifications.email-connection-save ``` curl -X POST "https://api.wrnexus.com/notifications/email-connection-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "mode": "external", "fromAddress": "", "active": true, "isDefault": false, "smtpHost": "", "smtpPort": "", "smtpUsername": "", "smtpPassword": "", "managedSenderKey": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/external-sms-connections Read scoped TLS SMPP provider metadata and country compliance settings without credentials. Required scope: notifications.external-sms-connections ``` curl "https://api.wrnexus.com/notifications/external-sms-connections" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/sms-provider-default Read the organization’s SMS default provider mode, identity and revision without credentials. Required scope: notifications.sms-provider-default ``` curl "https://api.wrnexus.com/notifications/sms-provider-default" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/sms-provider-default-save Choose managed delivery or an active compliant external SMS provider. Supply the current settings revision; changing this default never alters existing queued sends. Required scope: notifications.sms-provider-default-save ``` curl -X POST "https://api.wrnexus.com/notifications/sms-provider-default-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "mode": "external", "connectionId": "con_1", "revision": 1 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/branding Read the display name, brand colour and logo shown on hosted preference pages and the recipient inbox for the organization. Required scope: notifications.branding ``` curl "https://api.wrnexus.com/notifications/branding" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/branding-save Set the display name, brand colour (#rrggbb) and logo (PNG, JPEG or WebP up to 256 KiB, base64) shown to recipients. Omit a field to keep it, send null to clear it, and supply the current revision. Required scope: notifications.branding-save ``` curl -X POST "https://api.wrnexus.com/notifications/branding-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "displayName": "", "brandColor": "", "logo": "", "revision": 1 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/email-designs List published Email-studio designs a template's Email content can use, with the variables each needs. Saving a template with email.design {templateId, versionId} copies that exact version in. Required scope: notifications.email-designs ``` curl "https://api.wrnexus.com/notifications/email-designs" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/custom-domains List hostnames for hosted preference pages with their DNS TXT verification record, CNAME target and verification status. Required scope: notifications.custom-domains ``` curl "https://api.wrnexus.com/notifications/custom-domains" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/custom-domain-save Add a hostname for hosted preference pages. It routes only after verification. Platform, local and IP hosts are refused. Required scope: notifications.custom-domain-save ``` curl -X POST "https://api.wrnexus.com/notifications/custom-domain-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "hostname": "notify.example.com" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/custom-domain-verify Check the hostname's _wrnexus-notifications TXT record. A host can be verified by only one organisation; unverified hosts stay pending with a reason. Required scope: notifications.custom-domain-verify ``` curl -X POST "https://api.wrnexus.com/notifications/custom-domain-verify" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/custom-domain-remove Stop serving hosted preference pages on a hostname. Links already sent with that host stop working. Required scope: notifications.custom-domain-remove ``` curl -X POST "https://api.wrnexus.com/notifications/custom-domain-remove" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/external-sms-connection-save Save a TLS SMPP connection and supported country compliance profile. Supply the current revision when editing; omitted credentials and compliance are retained. Credentials are never returned. Required scope: notifications.external-sms-connection-save ``` curl -X POST "https://api.wrnexus.com/notifications/external-sms-connection-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "server": "", "systemId": "", "password": "", "active": true, "compliance": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/mobile-connection-save Configure a customer-owned FCM/APNs connection or an explicitly provisioned managed application. Required scope: notifications.mobile-connection-save ``` curl -X POST "https://api.wrnexus.com/notifications/mobile-connection-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "provider": "", "mode": "external", "applicationId": "", "projectId": "", "clientEmail": "", "teamId": "", "keyId": "", "sandbox": "", "privateKey": "", "active": true, "isDefault": false }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/mobile-push-send Freeze device targets and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate by default. Required scope: notifications.mobile-push-send ``` curl -X POST "https://api.wrnexus.com/notifications/mobile-push-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "content": { "title": "Order ready", "body": "Order #1042 is ready." }, "purpose": "transactional", "category": "orders", "idempotencyKey": "order-1042-mobile" }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "mph_12", "dispatchIds": [ "dsp_95bb" ], "replayed": false, "requestId": "req_5c1d7a" } ``` ### POST /notifications/push-template-send Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Required scope: notifications.push-template-send ``` curl -X POST "https://api.wrnexus.com/notifications/push-template-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "templateId": "tpl_order_ready", "versionId": "ver_3", "recipientId": "rcp_4f2a91", "connectionId": "con_1", "deviceIds": [], "variables": { "order": "1042" }, "idempotencyKey": "unique-request-key", "urgent": false }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/mobile-push-template-send Send a published version with translated content and frozen device targets. Optional urgent=true requires a transactional published version and an active sender permission with hourly allowance for every target device. Required scope: notifications.mobile-push-template-send ``` curl -X POST "https://api.wrnexus.com/notifications/mobile-push-template-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "templateId": "tpl_order_ready", "versionId": "ver_3", "recipientId": "rcp_4f2a91", "connectionId": "con_1", "deviceIds": [], "variables": { "order": "1042" }, "idempotencyKey": "unique-request-key", "urgent": false }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/mobile-push-request Read retained scoped mobile submission outcomes. Required scope: notifications.mobile-push-request ``` curl "https://api.wrnexus.com/notifications/mobile-push-request" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/push-send Freeze the active target devices and reserve one unit per device. Optional urgent=true requires transactional purpose and an active sender permission with hourly allowance for every target device. Test sends simulate without provider contact. Required scope: notifications.push-send ``` curl -X POST "https://api.wrnexus.com/notifications/push-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "content": { "title": "Order ready", "body": "Order #1042 is ready.", "url": "https://example.com" }, "purpose": "transactional", "category": "orders", "idempotencyKey": "order-1042-push" }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "psh_11", "dispatchIds": [ "dsp_94aa" ], "replayed": false, "requestId": "req_5c1d7a" } ``` ### GET /notifications/push-request Read the retained outcomes for a scoped web push request. Required scope: notifications.push-request ``` curl "https://api.wrnexus.com/notifications/push-request" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/push-connections Read scoped web push connections and public subscription keys. Required scope: notifications.push-connections ``` curl "https://api.wrnexus.com/notifications/push-connections" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/push-connection-save Configure a managed or customer-owned VAPID pair. Private credentials are write-only and encrypted. Required scope: notifications.push-connection-save ``` curl -X POST "https://api.wrnexus.com/notifications/push-connection-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "mode": "external", "subject": "Your order is ready", "publicKey": "", "privateKey": "", "active": true, "isDefault": false }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/templates List scoped in-app template drafts. Required scope: notifications.templates ``` curl "https://api.wrnexus.com/notifications/templates?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/template Read a draft and retained version history. Required scope: notifications.template ``` curl "https://api.wrnexus.com/notifications/template?templateId=tpl_order_ready" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/template-save Save a draft with an optimistic revision check. Approval policy is fixed on creation. Required scope: notifications.template-save ``` curl -X POST "https://api.wrnexus.com/notifications/template-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "id": "rcp_4f2a91", "revision": 1, "name": "Example", "content": {}, "requireApproval": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/template-publish Freeze a draft revision; approval-enabled templates wait for explicit approval. Required scope: notifications.template-publish ``` curl -X POST "https://api.wrnexus.com/notifications/template-publish" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "templateId": "tpl_order_ready", "revision": 1 }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/template-approve Approve and publish an immutable submitted version. Required scope: notifications.template-approve ``` curl -X POST "https://api.wrnexus.com/notifications/template-approve" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "versionId": "ver_3" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/template-preview Render content without sending or charging units. Required scope: notifications.template-preview ``` curl -X POST "https://api.wrnexus.com/notifications/template-preview" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "content": {}, "language": "en", "variables": { "order": "1042" }, "previewChannel": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/template-send Send the latest published version or an exact published version; retries retain their original version. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Required scope: notifications.template-send ``` curl -X POST "https://api.wrnexus.com/notifications/template-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "templateId": "tpl_order_ready", "recipientId": "rcp_4f2a91", "variables": { "order": "1042" }, "idempotencyKey": "order-1042-template" }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "inb_7d3e11", "versionId": "ver_3", "status": "accepted", "replayed": false, "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-preference-link Issue short-lived, revocable access to the hosted preference page only. Required scope: notifications.recipient-preference-link ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-preference-link" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/recipient Read a scoped recipient, preferences and in-app suppression. Required scope: notifications.recipient ``` curl "https://api.wrnexus.com/notifications/recipient?recipientId=rcp_4f2a91" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "recipient": { "id": "rcp_4f2a91", "customer_id": "customer-42", "name": "Asha Rao", "language": "en", "attributes": { "plan": "pro" }, "created_at": "2026-10-09T09:00:00.000Z", "updated_at": "2026-10-09T09:00:00.000Z" }, "preferences": [], "suppression": null, "suppressionHistory": [], "destinations": [], "requestId": "req_5c1d7a" } ``` ### POST /notifications/destination-save Add or update a scoped email or phone destination with explicit consent and reversible delivery access. Required scope: notifications.destination-save ``` curl -X POST "https://api.wrnexus.com/notifications/destination-save" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "destinationChannel": "email", "address": "customer@example.com", "active": true, "marketingConsent": false, "consentEvidence": "" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/email-send Queue Email using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive; senderKey is required only for legacy routing. Admission pins provider identity on replay. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Required scope: notifications.email-send ``` curl -X POST "https://api.wrnexus.com/notifications/email-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "destinationId": "dst_e1", "senderKey": "mailbox|transactional", "fromName": "Example Store", "content": { "subject": "Your order is ready", "heading": "Order #1042 is ready", "body": "Collect it from the store any time today.", "buttonLabel": "View order", "url": "https://example.com/orders/1042" }, "purpose": "transactional", "category": "orders", "idempotencyKey": "order-1042-email" }' ``` Illustrative response (not live account data): ``` { "ok": true, "id": "dsp_91ab", "status": "queued", "replayed": false, "requestId": "req_5c1d7a" } ``` ### POST /notifications/email-template-send Queue an exact or latest published Email template using connectionId, useDefaultConnection=true, or a legacy senderKey. Connection and default choices are mutually exclusive. Retries retain the original version and provider identity. Optional urgent=true requires transactional published content and an active sender permission with available hourly allowance. Required scope: notifications.email-template-send ``` curl -X POST "https://api.wrnexus.com/notifications/email-template-send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "templateId": "tpl_order_ready", "versionId": "ver_3", "recipientId": "rcp_4f2a91", "destinationId": "dst_e1", "senderKey": "", "fromName": "", "variables": { "order": "1042" }, "attachments": [], "idempotencyKey": "unique-request-key", "connectionId": "con_1", "useDefaultConnection": "", "urgent": false }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/dispatches Read scoped channel dispatch states, including unknown acceptance and simulations. Required scope: notifications.dispatches ``` curl "https://api.wrnexus.com/notifications/dispatches?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "dispatches": [ { "id": "dsp_91ab", "recipient_id": "rcp_4f2a91", "channel": "email", "purpose": "transactional", "category": "orders", "status": "accepted", "error_code": null, "created_at": "2026-10-09T09:01:00.000Z" } ], "nextCursor": null, "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-suppression Pause or resume in-app delivery with an audit reason. Required scope: notifications.recipient-suppression ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-suppression" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "suppressed": "", "reason": "Customer request" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### GET /notifications/recipients List permitted organization recipients. Required scope: notifications.recipients ``` curl "https://api.wrnexus.com/notifications/recipients?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "recipients": [ { "id": "rcp_4f2a91", "customer_id": "customer-42", "name": "Asha Rao", "language": "en", "attributes": { "plan": "pro" }, "created_at": "2026-10-09T09:00:00.000Z", "updated_at": "2026-10-09T09:00:00.000Z" } ], "nextCursor": null, "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-upsert Create or update a customer recipient. Required scope: notifications.recipient-upsert ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-upsert" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "customerId": "customer-42", "name": "Asha Rao", "language": "en", "attributes": { "plan": "pro" } }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "recipient": { "id": "rcp_4f2a91", "customer_id": "customer-42", "name": "Asha Rao", "language": "en", "attributes": { "plan": "pro" }, "created_at": "2026-10-09T09:00:00.000Z", "updated_at": "2026-10-09T09:00:00.000Z" }, "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-token Issue a short-lived token for an existing recipient's inbox. Required scope: notifications.recipient-token ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-token" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "token": "eyJyZWNpcGllbnRJZCI6InJjcF80ZjJhOTEi.signature", "expiresIn": 900, "requestId": "req_5c1d7a" } ``` ### POST /notifications/recipient-token-revoke Invalidate every outstanding token for one recipient. Required scope: notifications.recipient-token-revoke ``` curl -X POST "https://api.wrnexus.com/notifications/recipient-token-revoke" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "requestId": "req_5c1d7a" } ``` ### POST /notifications/send Insert an in-app notification and charge the notification processing fee from Service Balance. Optional urgent=true requires transactional purpose and an active sender permission, consumes the hourly urgency allowance and bypasses quiet hours. Required scope: notifications.send ``` curl -X POST "https://api.wrnexus.com/notifications/send" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "recipientId": "rcp_4f2a91", "title": "Order ready", "body": "Your order #1042 is ready for collection.", "purpose": "transactional", "category": "orders", "url": "https://example.com/orders/1042", "actions": [ { "id": "track", "label": "Track order", "url": "https://example.com/track/1042" } ], "idempotencyKey": "order-1042-ready" }' ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "id": "inb_7d3e10", "status": "accepted", "replayed": false, "requestId": "req_5c1d7a" } ``` ### GET /notifications/deliveries Read permitted recent in-app deliveries. Required scope: notifications.deliveries ``` curl "https://api.wrnexus.com/notifications/deliveries?limit=20" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "deliveries": [ { "id": "inb_7d3e10", "recipient_id": "rcp_4f2a91", "title": "Order ready", "category": "orders", "read_at": null, "created_at": "2026-10-09T09:00:30.000Z" } ], "nextCursor": null, "requestId": "req_5c1d7a" } ``` ### GET /notifications/units Read Service Balance billing, current notification processing rates and usage. The legacy units field reports affordable, pending and processed notification counts. Required scope: notifications.units ``` curl "https://api.wrnexus.com/notifications/units" \ -H "Authorization: Bearer $WRNEXUS_API_KEY" ``` Illustrative response (not live account data): ``` { "ok": true, "environment": "live", "units": { "available": 940, "reserved": 3, "consumed": 57 }, "requestId": "req_5c1d7a" } ```