# KoBoToolbox webhooks

KoboToolbox webhooks, which KoboToolbox calls REST Services, are POST requests that send each new form submission in a project to an endpoint you register, as JSON or XML.

Agent skill: `npx skills add hookdeck/webhook-skills --skill kobotoolbox-webhooks` ([details](https://hookdeck.com/webhooks/kobotoolbox/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [KoBoToolbox's official docs](https://support.kobotoolbox.org/rest_services.html).

[Overview](https://hookdeck.com/webhooks/kobotoolbox) · [MCP events](https://hookdeck.com/webhooks/kobotoolbox/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/kobotoolbox/verify) · [Production guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/kobotoolbox/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `None (unsigned)` | [KoBoToolbox docs](https://support.kobotoolbox.org/rest_services.html) |
| How events are identified | `No event type: every request is one new submission` | [KoBoToolbox docs](https://support.kobotoolbox.org/rest_services.html) |
| Body format | `JSON` Content type: application/json, application/xml. | [KoBoToolbox docs](https://support.kobotoolbox.org/rest_services.html) |
| Other headers | `user-agent, authorization` | [KoBoToolbox docs](https://support.kobotoolbox.org/rest_services.html) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill kobotoolbox-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/kobotoolbox/skill) |

[Verify KoBoToolbox webhooks](https://hookdeck.com/webhooks/kobotoolbox/verify)

## How KoBoToolbox webhooks work

A REST Service pushes submissions to your system, so you don't have to poll the KoboToolbox API for new ones. It fires on one thing: data is sent only on creation, and nothing is sent when a submission is edited. That means KoboToolbox has no event names, no event field and no event header, so you tell deliveries apart by the service's URL and the submission's own IDs.

A JSON body is the submission itself: one key per question in your form, plus metadata such as `_id`, `_uuid`, `_submission_time` and `_xform_id_string`. A service can send only a subset of fields, or, for JSON only, wrap the body in a template such as `{"fields": %SUBMISSION%}`. An XML service sends the submission's XML. Nothing versions the format, so the keys change when your form does.

## Setting up KoBoToolbox webhooks

- Open the project, go to Settings, then REST Services, and add a service with a name and an Endpoint URL.
- Choose JSON or XML as the Type, set Security to Basic Authorization with a username and password, and turn on email notifications to get failure reports.
- KoboToolbox can't reach your machine, so `hookdeck listen 3000 kobotoolbox --path /webhooks/kobotoolbox` gives you a public URL. To test, submit a record from a web form or KoboCollect.
- KoboToolbox keeps a log of each service's deliveries. You can retry a failed one there, or retry all of a service's failed deliveries through the API.

## Delivery behaviour

- **Timeout:** 30 seconds. in the open-source `kpi` sender, and a read timeout can be retried. [Guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#timeouts)
- **Retries:** 3. documented after 60, 600 and 6,000 seconds, but `kpi` declares a backoff capped at 1,200. For `502`, `503`, `504` and read timeouts. [Guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#retries)
- **After retries run out:** marked failed. with an email report if you turned it on, and you can retry it from the service's log. [Guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#retries)
- **Duplicates:** possible. after a read timeout or a manual retry, so deduplicate on `_uuid`. [Guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#duplicates)

## Known failure modes

1. **A 500 from your endpoint isn't retried.** In the open-source `kpi` sender, only `502`, `503`, `504` and read timeouts are retried. A `500`, a `4xx` or a connection that never opens fails at once, so return `503` for a temporary problem and retry failed deliveries from the service's log. [Plan for the retry limits](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#retries)
2. **The retry window may be much shorter than documented.** KoboToolbox documents 3 retries over about two hours, but the current `kpi` code declares a backoff capped at 1,200 seconds. Don't rely on the retries to cover an outage: reconcile against the KoboToolbox API afterwards. [Reconcile after an outage](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#retries)
3. **The same submission can arrive twice.** If your handler finishes but responds after 30 seconds, KoboToolbox retries a submission you've already stored. Deduplicate on `_uuid`, and include it if you send a subset of fields, because a subset drops everything you don't list. [Deduplicate on the submission](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#duplicates)
4. **Edits never arrive.** KoboToolbox sends a submission only when it's created, and nothing when it's edited. A record corrected after review stays wrong in your system until you sync it through the KoboToolbox API. [Sync edits on a schedule](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#other-limits)

From [Hookdeck's KoBoToolbox guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts).

## KoBoToolbox webhook best practices

- **[Return `503` for a temporary problem](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#retries).** The `kpi` sender retries `502`, `503`, `504` and read timeouts. A `500` fails at once.
- **[Deduplicate on `_uuid`](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#duplicates).** A retry after a slow response can repeat a submission you already stored. If you send a subset of fields, include `_uuid` in it.
- **[Acknowledge within 30 seconds](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#timeouts).** Authenticate, store the submission and return `200`, then process it from a queue.
- **[Label each project in a custom wrapper](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#choosing-events).** If several projects post to one endpoint, a JSON wrapper lets you route without guessing from question names.
- **[Sync edits separately](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#other-limits).** Corrections made after review never arrive as webhooks, so pull them through the KoboToolbox API on a schedule.
- **[Keep the raw submission](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts#other-limits).** Adding, renaming or regrouping questions changes the keys, and a stored copy lets you reprocess after a form change.

## In this hub

- [MCP events](https://hookdeck.com/webhooks/kobotoolbox/mcp-events): How an agent subscribes to KoBoToolbox events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/kobotoolbox/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/kobotoolbox/guide-duplicates-ordering-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/kobotoolbox/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill kobotoolbox-webhooks`
---

Not affiliated with KoBoToolbox. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/kobotoolbox.json) · [Report a correction](https://hookdeck.com/contact)
