{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Webhook Replay and Retrieve API V3 — Developer Guide","description":"Sprinklr offers robust, convenient, and simple RESTful Web service APIs to integrate data from Sprinklr to any external system.","keywords":["Sprinklr API","Sprinklr Developer Portal","OAuth 2.0","RESTful API","Social Media API","Customer Experience API","Unified-CXM","Social Listening API"]},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"webhook-replay-and-retrieve-api-v3--developer-guide","__idx":0},"children":["Webhook Replay and Retrieve API V3 — Developer Guide"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-overview","__idx":1},"children":["1. Overview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Webhook Replay and Retrieve API lets you re-read the stream of webhook events Sprinklr already dispatched for a subscription over a given time window, and to retrieve the events that failed delivery. Use it to recover from an outage on your listener, to backfill events your consumer dropped, or to audit what Sprinklr actually sent."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following are the use cases for this API:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Webhook Replay"]}," — replay the stream of webhooks for a given time duration."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cursor API"]}," — fetch and replay the next set of data."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retrieve Failed Webhooks"]}," — retrieve failed webhooks for a subscription in a given time."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"11-operations","__idx":2},"children":["1.1 Operations"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| # | Purpose | Method | Path |"," ","| 1 | Replay webhook payloads from persisted dispatched webhook details | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/webhookReplay"]},"|"," ","| 2 | Retrieve failed webhook events | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/webhookReplay"]}," |"," ","| 3 | Fetch the next webhook replay page by cursor | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/webhookReplay?cursor="]}," |"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"12-prerequisites","__idx":3},"children":["1.2 Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A webhook subscription must already exist; you replay ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["per ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}]},". Use the Webhook Subscription APIs to create or list subscriptions."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The API must be enabled for your environment."]}," ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Please reach out to your Success Manager or Sprinklr Support to get Webhook Replay API's enabled for your environment.\""]},"[doc:turn1doc1]"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"13-retention","__idx":4},"children":["1.3 Retention"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Failed webhooks are available for retrieval for 7 days."]}," Requests for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses: [\"FAILED\"]"]}," with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTime"]}," older than 7 days will not return those events. No retention period is stated anywhere for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["non-failed"]}," replay data."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-base-urls-and-environments","__idx":5},"children":["2. Base URLs and environments"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://api3.sprinklr.com/{env}/api/v3\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{env}"]}," with your environment identifier (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod0"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod2"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod11"]},", and so on). The list of environments and their identifiers is on the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://legacy-dev.sprinklr.com/apis"},"children":["Sprinklr APIs"]}," page of the developer portal."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Full endpoint URLs used in this guide:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST https://api3.sprinklr.com/{env}/api/v3/webhookReplay\nGET  https://api3.sprinklr.com/{env}/api/v3/webhookReplay?cursor={cursor}\n\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"3-authentication-and-common-headers","__idx":6},"children":["3. Authentication and common headers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All API calls are authenticated with OAuth 2.0. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.sprinklr.com/help/articles/developer-tools/developer-tools-in-sprinklr/692e8b39f0afa271d18a5929"},"children":["Developer Tools in Sprinklr"]}," for API key and secret generation, and the Authorize flow."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Header"},"children":["Header"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Purpose"},"children":["Purpose"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required on"},"children":["Required on"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["******"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Credential used by the API to authenticate a user with the server"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{apiKey}}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["API key that authenticates the application with the server"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content-Type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Declares the request body media type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Accept"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Determines the acceptable response type from the server"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"4-replay-and-retrieve-operations","__idx":7},"children":["4. Replay and retrieve operations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"41-post-apiv3webhookreplay--replay-webhook-payloads","__idx":8},"children":["4.1 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v3/webhookReplay"]}," — Replay webhook payloads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replays the stream of webhooks dispatched for a subscription within a time window. If more data exists than ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["size"]}," allows, the response carries a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cursor"]}," you pass to §4.3 to page forward."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Endpoint"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST https://api3.sprinklr.com/{env}/api/v3/webhookReplay\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| Parameter | Required | Description | Type |"," ","|---|---|---|---|---|"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}," | Required | Webhook Subscription Id | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTime"]}," | Required | The time from which you want to replay webhook. | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["integer"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int64"]},") Epoch |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["endTime"]}," | Required | The time to which you want to replay webhook.| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["integer"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int64"]},") Epoch |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["size"]}," | Required | The number of webhooks you want to fetch in one request.| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["integer"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int32"]},") |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses"]}," | Optional | Specifies the webhook status values to filter in the response. Use this parameter to fetch only webhooks that match the selected status. Supported values: Active, Inactive | ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["array"]}," of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]},"|"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example request"]}," (illustrative example, generated from the documented schema; credentials are placeholders)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location 'https://api3.sprinklr.com/{env}/api/v3/webhookReplay' \\\n  --header 'Authorization: ******' \\\n  --header 'Key: {apikey}' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Accept: application/json' \\\n  --data '{\n    \"subscriptionId\": \"66bcba43c4470365a3037e45\",\n    \"startTime\": 1672642271000,\n    \"endTime\": 1780383071000,\n    \"size\": 10,\n    \"statuses\": [\"ACTIVE\", \"INACTIVE\"]\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example response"]}," (illustrative example; payloads truncated)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": {\n    \"results\": [\n      \"{\\\"id\\\":\\\"60a4e34aeb8f1e2030704a8a\\\",\\\"type\\\":\\\"message.created\\\",\\\"payload\\\":{ ... },\\\"eventTime\\\":1621418825965,\\\"subscriptionDetails\\\":{\\\"subscriptionId\\\":\\\"60a4e334db614859a3d2524f\\\"}}\",\n      \"{\\\"id\\\":\\\"60a4e34a0e2bec6ac70a8b79\\\",\\\"type\\\":\\\"message.created\\\",\\\"payload\\\":{ ... },\\\"eventTime\\\":1621418826496,\\\"subscriptionDetails\\\":{\\\"subscriptionId\\\":\\\"60a4e334db614859a3d2524f\\\"}}\"\n    ],\n    \"cursor\": \"60a50efebc622348f58a975f\"\n  },\n  \"errors\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"42-post-apiv3webhookreplay--retrieve-failed-webhook-events","__idx":9},"children":["4.2 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v3/webhookReplay"]}," — Retrieve failed webhook events"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Same endpoint, same schema. Setting ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[\"FAILED\"]"]}," retrieves the webhooks that failed delivery for the subscription in the given window, rather than replaying the full stream."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body parameters"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Id of the webhook subscription"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTime"]}," (in milliseconds)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The starting time from when you want to analyze webhook statuses"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integer"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["endTime"]}," (in milliseconds)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The end time up till when you want to analyze webhook statuses"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integer"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["size"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The expected size of the response"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integer"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The state of the webhook case. For example: FAILED or DELIVERED"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example request"]}," (illustrative example; credentials are placeholders)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location 'https://api3.sprinklr.com/{env}/api/v3/webhookReplay' \\\n  --header 'Authorization: ******' \\\n  --header 'Key: {apikey}' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Accept: application/json' \\\n  --data '{\n    \"subscriptionId\": \"66bcba43c4470365a3037e45\",\n    \"startTime\": 1735800671000,\n    \"endTime\": 1780383071000,\n    \"size\": 10,\n    \"statuses\": [\"FAILED\"]\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example response"]}," (illustrative example; payload truncated)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": {\n    \"results\": [\n      \"{\\\"id\\\":\\\"624427519d643560ccbc0a15\\\",\\\"type\\\":\\\"draft.created\\\",\\\"payload\\\":{ ... },\\\"eventTime\\\":1648633681578,\\\"subscriptionDetails\\\":{\\\"subscriptionId\\\":\\\"6230a3b4215cc62878dbfe58\\\"}}\"\n    ],\n    \"cursor\": \"624d6111811f63194273b055\"\n  },\n  \"errors\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Remember the 7-day window."]}," Failed webhooks are only retrievable for 7 days. A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTime"]}," outside that window returns nothing for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]},", without necessarily raising an error."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"43-get-apiv3webhookreplaycursor--fetch-the-next-page","__idx":10},"children":["4.3 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/webhookReplay?cursor="]}," — Fetch the next page"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When the replay or retrieve response contains a non-null ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cursor"]},", more data is available. Pass that cursor back to fetch the next page. Repeat until the response no longer returns a cursor."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Endpoint"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"GET https://api3.sprinklr.com/{env}/api/v3/webhookReplay?cursor={cursor from previous call}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query parameters"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| Parameter | Required| Description | Type |"," ","|---|---|---|---|---|"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cursor"]}," | Required` | Webhook Cursor from Webhook Replay API call. | String |"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example request"]}," (illustrative example; credentials are placeholders)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X GET \\\n  'https://api3.sprinklr.com/{env}/api/v3/webhookReplay?cursor=60a507a2bc622348f58a8023' \\\n  -H 'Authorization: ******' \\\n  -H 'Key: {apikey}' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"6-reference-tables","__idx":11},"children":["6. Reference tables"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"61-status-values-named-across-sources","__idx":12},"children":["6.1 Status values named across sources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["enum"]}," is declared in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sprinklr-v3.yaml"]},". This is the union of values named in the sources, not a confirmed list."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Named in"},"children":["Named in"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Context"},"children":["Context"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACTIVE"]}," / Active"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 Replay page (\"Active\"), Jira cURL (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"ACTIVE\""]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replay filter"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INACTIVE"]}," / Inactive"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 Replay page (\"Inactive\"), Jira cURL (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"INACTIVE\""]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replay filter"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAILED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 Retrieve Failed page, Jira cURL, Jira description"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Failed-event retrieval"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELIVERED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 Retrieve Failed page (\"For example: FAILED or DELIVERED\")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Failed-event retrieval"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"62-schema-quick-reference","__idx":13},"children":["6.2 Schema quick reference"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WebhookReplayRequest"]}," (request body for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /webhookReplay"]},") — no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["required"]}," list declared:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Property"},"children":["Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["subscriptionId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["integer"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int64"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["endTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["integer"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int64"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["webhookTypes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["size"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["integer"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int32"]},")"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"7-use-cases","__idx":14},"children":["7. Use cases"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"71-recover-from-a-listener-outage","__idx":15},"children":["7.1 Recover from a listener outage"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your endpoint was down from 09:00 to 11:30. Call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /webhookReplay"]}," with the subscription id and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTime"]},"/",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["endTime"]}," set to that window in epoch milliseconds, then page with the cursor until no cursor is returned."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"72-retrieve-everything-that-failed-delivery-yesterday","__idx":16},"children":["7.2 Retrieve everything that failed delivery yesterday"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /webhookReplay"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses: [\"FAILED\"]"]}," and a 24-hour window. Stay inside the 7-day retention limit (§1.3)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"73-reconcile-delivered-against-failed","__idx":17},"children":["7.3 Reconcile delivered against failed"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Run the same window twice — once with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses: [\"FAILED\"]"]}," and once with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["statuses: [\"DELIVERED\"]"]}," — and diff the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," values to find events your system never processed. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELIVERED"]}," is named only as an example on the V2 page; verify it is accepted before relying on this."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"74-page-through-a-large-window","__idx":18},"children":["7.4 Page through a large window"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST /webhookReplay   → { \"data\": { \"results\": [...], \"cursor\": \"C1\" }, \"errors\": [] }\nGET  /webhookReplay?cursor=C1 → { \"data\": { \"results\": [...], \"cursor\": \"C2\" }, \"errors\": [] }\nGET  /webhookReplay?cursor=C2 → { \"data\": { \"results\": [...] }, \"errors\": [] }   ← no cursor: done\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"75-backfill-a-new-downstream-consumer","__idx":19},"children":["7.5 Backfill a new downstream consumer"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Point a fresh consumer at a historical window and replay the stream into it, rather than waiting for new live events."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"76-audit-what-sprinklr-actually-sent","__idx":20},"children":["7.6 Audit what Sprinklr actually sent"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replay a window and compare the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventTime"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payload"]}," of each event against your own ingestion log to prove or disprove a delivery gap."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"77-narrow-a-replay-to-one-event-type","__idx":21},"children":["7.7 Narrow a replay to one event type"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["webhookTypes"]}," alongside the time window to limit the replay. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Unverified"]}," — this field is present in the V3 schema but has no description and no example. Confirm before use."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"78-re-fetch-a-single-known-event","__idx":22},"children":["7.8 Re-fetch a single known event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventId"]}," to target one dispatched event. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Unverified"]},", as above."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]}]},"headings":[{"value":"Webhook Replay and Retrieve API V3 — Developer Guide","id":"webhook-replay-and-retrieve-api-v3--developer-guide","depth":1},{"value":"1. Overview","id":"1-overview","depth":2},{"value":"1.1 Operations","id":"11-operations","depth":3},{"value":"1.2 Prerequisites","id":"12-prerequisites","depth":3},{"value":"1.3 Retention","id":"13-retention","depth":3},{"value":"2. Base URLs and environments","id":"2-base-urls-and-environments","depth":2},{"value":"3. Authentication and common headers","id":"3-authentication-and-common-headers","depth":2},{"value":"4. Replay and retrieve operations","id":"4-replay-and-retrieve-operations","depth":2},{"value":"4.1 POST /api/v3/webhookReplay — Replay webhook payloads","id":"41-post-apiv3webhookreplay--replay-webhook-payloads","depth":3},{"value":"4.2 POST /api/v3/webhookReplay — Retrieve failed webhook events","id":"42-post-apiv3webhookreplay--retrieve-failed-webhook-events","depth":3},{"value":"4.3 GET /api/v3/webhookReplay?cursor= — Fetch the next page","id":"43-get-apiv3webhookreplaycursor--fetch-the-next-page","depth":3},{"value":"6. Reference tables","id":"6-reference-tables","depth":2},{"value":"6.1 Status values named across sources","id":"61-status-values-named-across-sources","depth":3},{"value":"6.2 Schema quick reference","id":"62-schema-quick-reference","depth":3},{"value":"7. Use cases","id":"7-use-cases","depth":2},{"value":"7.1 Recover from a listener outage","id":"71-recover-from-a-listener-outage","depth":3},{"value":"7.2 Retrieve everything that failed delivery yesterday","id":"72-retrieve-everything-that-failed-delivery-yesterday","depth":3},{"value":"7.3 Reconcile delivered against failed","id":"73-reconcile-delivered-against-failed","depth":3},{"value":"7.4 Page through a large window","id":"74-page-through-a-large-window","depth":3},{"value":"7.5 Backfill a new downstream consumer","id":"75-backfill-a-new-downstream-consumer","depth":3},{"value":"7.6 Audit what Sprinklr actually sent","id":"76-audit-what-sprinklr-actually-sent","depth":3},{"value":"7.7 Narrow a replay to one event type","id":"77-narrow-a-replay-to-one-event-type","depth":3},{"value":"7.8 Re-fetch a single known event","id":"78-re-fetch-a-single-known-event","depth":3}],"frontmatter":{"seo":{"title":"Webhook Replay and Retrieve API V3 — Developer Guide"}},"lastModified":"2026-10-22T18:27:14.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/developer-guides-v3/webhook-replay-and-retrieve-api-v3-developer-guide","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}