# List collected data > Receive what your Collect data Actions save as it's submitted, through a webhook The API has no tool that lists past Collect data entries. You read them in the dashboard under **Activity › Collected data**. To get them in your own system, add a webhook: every time a customer completes a **Collect data** Action, QwryAI posts the entry to your HTTPS endpoint, signed. `create_webhook` adds one, through a review you apply. ```http POST https://api.qwryai.com/public/v1/tools/create_webhook ``` > [!NOTE] > > For **Collect leads** submissions, the Zapier connection also offers `GET https://api.qwryai.com/api/v1/zapier/agents/{agentId}/form-submissions?limit=3`. It returns the newest 1 to 10 lead submissions, each with `id`, `conversationId`, `customerEmail`, `customerName`, `customerPhone` and, for a lead form that collects in conversation, `customFields`. It needs an API key (not an OAuth token) with **Change actions and procedures**. It doesn't include Collect data entries. See [Zapier](/docs/user-guides/integrations/zapier). ## Authentication Send your API key as `Authorization: Bearer YOUR_API_KEY`; it needs the **Change actions and procedures** permission. See [Authentication](/docs/api-reference/v2/authentication). ## Body parameters | Name | Type | Required | Description | | - | - | - | - | | `chatbotId` | `string` | Yes | The agent's id, from `list_agents`. | | `endpoint` | `string` | Yes | Your `https` address, up to 2,000 characters, with no user name or password in it. | | `events` | `array` | Yes | 1 to 20 events. `_collect_data.submit` for one Collect data Action, such as `Warranty_details_collect_data.submit`, or `leads.submit` for every Collect leads Action. `list_webhooks` shows the events this agent has. | ## Request example > [tab] cURL > > ```bash > curl -X POST 'https://api.qwryai.com/public/v1/tools/create_webhook' \ > -H 'Authorization: Bearer YOUR_API_KEY' \ > -H 'Content-Type: application/json' \ > -d '{ > "chatbotId": "YOUR_AGENT_ID", > "endpoint": "https://hooks.example.com/qwryai/collected-data", > "events": ["Warranty_details_collect_data.submit"] > }' > ``` > [tab] JavaScript > > ```javascript > const headers = { > Authorization: "Bearer YOUR_API_KEY", > "Content-Type": "application/json", > }; > const { data: review } = await fetch( > "https://api.qwryai.com/public/v1/tools/create_webhook", > { > method: "POST", > headers, > body: JSON.stringify({ > chatbotId: "YOUR_AGENT_ID", > endpoint: "https://hooks.example.com/qwryai/collected-data", > events: ["Warranty_details_collect_data.submit"], > }), > } > ).then((response) => response.json()); > > await fetch(`https://api.qwryai.com/public/v1/reviews/${review.reviewId}/apply`, { > method: "POST", > headers, > }); > ``` > [tab] Python > > ```python > import requests > > review = requests.post( > "https://api.qwryai.com/public/v1/tools/create_webhook", > headers={"Authorization": "Bearer YOUR_API_KEY"}, > json={ > "chatbotId": "YOUR_AGENT_ID", > "endpoint": "https://hooks.example.com/qwryai/collected-data", > "events": ["Warranty_details_collect_data.submit"], > }, > ).json()["data"] > ``` ## Response ### The review ```json { "success": true, "data": { "status": "review_required", "reviewId": "a1c3e5f7-2b4d-4f68-9a0c-e2d4f6a8b0c1", "tool": "create_webhook", "changes": [ { "title": "Send Warranty_details submissions to hooks.example.com", "before": { "form": "Warranty_details", "webhooks": 0 }, "after": { "form": "Warranty_details", "webhooks": 1, "added": "https://hooks.example.com/qwryai/collected-data" } } ], "unchanged": [], "expiresAt": "2026-12-01T10:15:00.000Z", "next": "Show these changes to the user. Call apply_change with this reviewId only after they approve; the review expires in 15 minutes." } } ``` Applying it with `POST https://api.qwryai.com/public/v1/reviews/{reviewId}/apply` returns `data.data` as `{ "applied": true, "webhooks": 1, "coverage": "Saved on the Action; delivery was not tested." }`. ### What your endpoint receives Each entry arrives as a `POST` with an `Idempotency-Key` header (the entry's id) and an `x-qwryai-signature` header: the HMAC-SHA1 of the body, hex-encoded, keyed with the webhook's secret. Find the secret in the Action's editor; the API never returns it. ```json { "eventType": "Warranty_details_collect_data.submit", "chatbotId": "", "payload": { "conversationId": "", "customFields": { "order_number": "1042", "purchase_date": "2026-10-14", "issue": "The left earbud stopped charging" } } } ``` `customFields` holds the fields the Action collects, by field name. Use the `Idempotency-Key` to ignore a delivery you've already stored; failed deliveries are retried up to 5 times. ## Errors | HTTP status | code | when | | - | - | - | | 400 | `INVALID_ARGUMENTS` | The endpoint isn't `https` or has credentials in it, an event doesn't match an Action of this agent (`message` lists the valid ones), or the endpoint already receives these events. | | 400 | `CHATBOT_ID_REQUIRED` | `chatbotId` is missing or isn't a valid agent id. | | 403 | `INSUFFICIENT_PERMISSION` | The key doesn't hold **Change actions and procedures**. | | 404 | `CHATBOT_NOT_FOUND` | No agent with that `chatbotId` in your workspace. | | 409 | `STALE_REVIEW` | On apply: the Action's webhooks changed after the review. Call the tool again. | | 429 | `INTEGRATION_RATE_LIMIT_EXCEEDED` | More than 2,000 requests in 15 minutes for this key. | | 500 | `TOOL_FAILED` | The tool failed on our side. Try again. | Authentication and plan errors are listed in [Error Handling](/docs/api-reference/v2/error-handling).