Skip to content
QwryAI
Documentation
Pages

Endpoints

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.

POSThttps://api.qwryai.com/public/v1/tools/create_webhook

Authentication

Send your API key as Authorization: Bearer YOUR_API_KEY; it needs the Change actions and procedures permission. See Authentication.

Body parameters

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from list_agents.
endpointstringYesYour https address, up to 2,000 characters, with no user name or password in it.
eventsarrayYes1 to 20 events. <Action name>_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

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"]
  }'

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": "<agentId>",
  "payload": {
    "conversationId": "<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 statuscodewhen
400INVALID_ARGUMENTSThe 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.
400CHATBOT_ID_REQUIREDchatbotId is missing or isn't a valid agent id.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Change actions and procedures.
404CHATBOT_NOT_FOUNDNo agent with that chatbotId in your workspace.
409STALE_REVIEWOn apply: the Action's webhooks changed after the review. Call the tool again.
429INTEGRATION_RATE_LIMIT_EXCEEDEDMore than 2,000 requests in 15 minutes for this key.
500TOOL_FAILEDThe tool failed on our side. Try again.

Authentication and plan errors are listed in Error Handling.

Explore the documentation