Strapi Push Planner Delivery Callback (Stage) icon

Strapi Push Planner Delivery Callback (Stage)

Sends delivery status for push/scheduled messages back to Strapi push-planner API via /api/push-planner/delivery-callback. Uses Strapi API credentials (same base URL).

Strapi Push Planner Delivery Callback (Stage)

AI-generated

Summary

Sends a delivery status callback to Strapi’s push‑planner API.

Inputs

  • botId (required) — Bot ID in Strapi; numeric identifier expected, can be supplied via expression.
  • externalChatId (required) — External chat/user ID (e.g., Telegram chatId).
  • deliveredAt (required) — Delivery timestamp in ISO‑8601 UTC format; can use $now expression.
  • delivery_status (required) — Delivery status (success, error, pending); required.
  • status — Optional compatibility status field to also send as status.
  • pushScheduleId — ID or document ID of the push schedule.
  • pushMessageId — ID or document ID of the push message.
  • segmentId — ID or document ID of the segment.
  • campaignId — ID or document ID of the campaign (optional, for campaign‑linked deliveries).
  • errorMessage — Error message text when delivery_status is error; recommended for error cases.

Output shape

An array of result items; each item contains a json field holding either the API response body on success or an error object on failure.

The response may include an error field and HTTP status; the node preserves the original item index in pairedItem. Errors can be caught and returned per continueOnFail setting.

Examples

Example 1: Notify Strapi that a scheduled message was delivered successfully.

botId=12345, externalChatId=987654321, deliveredAt=2025-02-17T12:05:00.000Z, delivery_status=success, status=delivered, pushScheduleId=123, pushMessageId=456, segmentId=789, campaignId=101, errorMessage=

Example 2: Report delivery failure to Strapi.

botId=12345, externalChatId=987654321, deliveredAt=2025-02-17T12:05:00.000Z, delivery_status=error, errorMessage=Message not found

Example 3: Send a pending delivery status.

botId=12345, externalChatId=987654321, deliveredAt=2025-02-17T12:05:00.000Z, delivery_status=pending, pushScheduleId=123, pushMessageId=456, segmentId=789, campaignId=101, errorMessage=

Links

Discussion