> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs-parschat.parstechai.com/api-reference/webhooks/list-webhook-deliveries/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-parschat.parstechai.com/_mcp/server. # List webhook deliveries GET https://api-chat.parstechai.com/v1/webhooks/deliveries Inspect what we sent you and what happened — the answer to *did you deliver that event?* Use it when an event you expected never arrived: find it by `delivery_id`, and the `status`, `attempt_count` and `last_status_code` say whether it reached you, is still being retried, or was given up on. A `dead_lettered` delivery is one we have stopped retrying after the full schedule of 6 attempts. **Reconcile a real gap with [`GET /v1/usage`](/api-reference/usage/list-usage) rather than relying on retries alone.** Message bodies are not included. This is a delivery log, not a second way to read your conversations. Reference: https://docs-parschat.parstechai.com/api-reference/webhooks/list-webhook-deliveries ## Authentication - `Authorization` header (bearer token, required) — Your API key, issued by ParsChat sales. One key per account, spanning every robot you own. Send it as `Authorization: Bearer pk_live_…`. ## Request ### Query parameters - `status` (enum, optional) — Restrict to one delivery state. Omit for all. - Allowed values: `pending`, `delivered`, `failed`, `dead_lettered` - `limit` (integer, optional, default: 50) — Page size, 1–100. - `offset` (integer, optional, default: 0) — Deliveries to skip. ## Response ### 200 A page of deliveries. - `data` (list of WebhookDelivery, optional) - `pagination` (Pagination, optional) — Offset pagination. `total_count` tells you how many records match, so you know how many pages to fetch before you start. ## Errors ### 400 Bad Request Error The request itself is malformed: a parameter is missing, unparseable, or out of range. Unlike 422, the request never reached validation of its contents. - `error` (ErrorError, optional) ### 401 Unauthorized Error The key is missing, wrong, revoked, or past its expiry date. All four answer `invalid_key`: telling an expired key from an unknown one would confirm to whoever holds a leaked key that it was once real. - `error` (ErrorError, optional) ### 403 Forbidden Error The call is understood but not permitted: a missing role, a lapsed plan, or exhausted capacity. - `error` (ErrorError, optional) ### 429 Too Many Requests Error You are calling the API too fast. `details` names the limit you are held to. This never means an automated reply to an end customer was discarded: those are queued, not dropped. - `error` (ErrorError, optional) ### 500 Internal Server Error Something failed on our side. Retry with backoff, and quote `request_id` if it persists. - `error` (ErrorError, optional) ### 503 Service Unavailable Error A service we depend on (a channel provider, or our AI service) is unavailable. Retry with backoff. - `error` (ErrorError, optional) ## Types ### WebhookDelivery One delivery attempt of one event to your endpoint. **The payload is not included** — a delivery log that echoed message bodies would be a second way to read every conversation. - `delivery_id` (string, optional) — Stable id, the same across every retry of this event. It is the `delivery_id` on the event body you received. - `event` (string, optional) — Which event this was. - `status` (enum, optional) — `pending` is queued or waiting to retry. `failed` will be retried. `dead_lettered` will not — we have stopped. - Allowed values: `pending`, `delivered`, `failed`, `dead_lettered` - `attempt_count` (integer, optional) — Attempts made so far, out of 6. - `last_status_code` (integer, optional, nullable) — The HTTP status your endpoint last returned. `null` before the first attempt, or when the request never completed. - `last_error` (string, optional, nullable) — Why the last attempt failed. `null` on success. - `next_attempt_at` (datetime, optional, nullable) — When we will try again. `null` once delivered or dead-lettered. - `delivered_at` (datetime, optional, nullable) — When your endpoint accepted it. - `created_at` (datetime, optional, nullable) — When the event occurred. ### Pagination Offset pagination. `total_count` tells you how many records match, so you know how many pages to fetch before you start. - `limit` (integer, optional) — How many items were requested per page. - `offset` (integer, optional) — How many items were skipped to reach this page. - `total_count` (integer, optional) — Total records matching the query, across every page. Divide by `limit` to get the number of calls you need. - `has_more` (boolean, optional) — Whether another page exists after this one. ### ErrorError - `code` (string, optional) — Stable machine-readable code. Branch on this, not on the message. - `message` (string, optional) — Human-readable explanation. Wording may change. - `request_id` (string, optional) — Log this. It is what lets support find your exact request. - `details` (map from string to any, optional) — Machine-readable context for the code. On `capacity_exhausted` it carries `occupied`, `requested` and `capacity`; on `rate_limited`, `limit_per_minute` and `window_seconds`. ## Examples ### A delivered event and one being retried **Response** ```json { "data": [ { "delivery_id": "dlv_9fK2mQ", "event": "message", "status": "delivered", "attempt_count": 1, "last_status_code": 200, "last_error": null, "next_attempt_at": null, "delivered_at": "2026-09-20T11:09:03Z", "created_at": "2026-09-20T11:09:02Z" }, { "delivery_id": "dlv_7bX4tK", "event": "chat", "status": "failed", "attempt_count": 3, "last_status_code": 502, "last_error": "upstream returned 502", "next_attempt_at": "2026-09-20T11:24:00Z", "delivered_at": null, "created_at": "2026-09-20T11:08:11Z" } ], "pagination": { "limit": 50, "offset": 0, "total_count": 2, "has_more": false } } ``` **SDK Code** ```python A delivered event and one being retried import requests url = "https://api-chat.parstechai.com/v1/webhooks/deliveries" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript A delivered event and one being retried const url = 'https://api-chat.parstechai.com/v1/webhooks/deliveries'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go A delivered event and one being retried package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api-chat.parstechai.com/v1/webhooks/deliveries" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby A delivered event and one being retried require 'uri' require 'net/http' url = URI("https://api-chat.parstechai.com/v1/webhooks/deliveries") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java A delivered event and one being retried import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api-chat.parstechai.com/v1/webhooks/deliveries") .header("Authorization", "Bearer ") .asString(); ``` ```php A delivered event and one being retried request('GET', 'https://api-chat.parstechai.com/v1/webhooks/deliveries', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp A delivered event and one being retried using RestSharp; var client = new RestClient("https://api-chat.parstechai.com/v1/webhooks/deliveries"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift A delivered event and one being retried import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api-chat.parstechai.com/v1/webhooks/deliveries")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Given up on **Response** ```json { "data": [ { "delivery_id": "dlv_2cQ8vR", "event": "message", "status": "dead_lettered", "attempt_count": 6, "last_status_code": 500, "last_error": "endpoint returned 500 on every attempt", "next_attempt_at": null, "delivered_at": null, "created_at": "2026-09-20T09:55:40Z" } ], "pagination": { "limit": 50, "offset": 0, "total_count": 1, "has_more": false } } ``` **SDK Code** ```python Given up on import requests url = "https://api-chat.parstechai.com/v1/webhooks/deliveries" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript Given up on const url = 'https://api-chat.parstechai.com/v1/webhooks/deliveries'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Given up on package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api-chat.parstechai.com/v1/webhooks/deliveries" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Given up on require 'uri' require 'net/http' url = URI("https://api-chat.parstechai.com/v1/webhooks/deliveries") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java Given up on import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api-chat.parstechai.com/v1/webhooks/deliveries") .header("Authorization", "Bearer ") .asString(); ``` ```php Given up on request('GET', 'https://api-chat.parstechai.com/v1/webhooks/deliveries', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp Given up on using RestSharp; var client = new RestClient("https://api-chat.parstechai.com/v1/webhooks/deliveries"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift Given up on import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api-chat.parstechai.com/v1/webhooks/deliveries")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```