OpenThink Cloud

Webhooks

Receive an HTTPS POST when rows of a table are added, updated or deleted.

Create a webhook

Create webhooks in OpenThink (Space ⋯ → Integrations) or over REST:

POST /api/v1/webhooks
{ "url": "https://example.com/hooks/think", "table": "<table-id>", "events": ["row.added", "row.updated", "row.deleted"] }
  • Leave out table to receive events from every table.
  • The response contains the signing secret (whsec_…) once.
  • The URL must be https://.
  • Up to 20 webhooks per project.

Payload

json
{ "id": "...", "event": "row.updated", "createdAt": "...", "space": { ... },
  "table": { "id": "...", "name": "Tasks", "url": "..." }, "row": { ... }, "webhook": "..." }

row is the row at the time of the event: the row just added, the row right after the update, or the row right before it was deleted. Rows larger than about 100 KB are read when the event is sent; a deleted row is then only { id }.

Headers

HeaderValue
X-Think-Eventrow.added, row.updated, row.deleted or ping.
X-Think-DeliveryEvent ID, the same on every retry. Use it to drop duplicates.
X-Think-WebhookWebhook ID.
X-Think-Signaturet=<unix seconds>,v1=<hex>.

Verify the signature

Compute HMAC-SHA256 with the webhook secret over <t>.<raw body> and compare it with v1. Reject deliveries whose t is more than 5 minutes old.

js
import { createHmac, timingSafeEqual } from "node:crypto"

export function verify(secret, header, rawBody) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")))
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false
  const mac = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex")
  return timingSafeEqual(Buffer.from(mac), Buffer.from(v1))
}

Delivery and retries

  • Respond with a 2xx status within 15 seconds.
  • On 408, 429, 5xx or a timeout, OpenThink retries after 30 seconds, then 1, 2, 4… minutes (at most 1 hour apart), up to 10 times. Other 4xx statuses are not retried.
  • Respond with 410 to turn the webhook off.
  • After 20 consecutive failed deliveries the webhook is turned off; turn it on again in Integrations.
  • The last 50 deliveries are shown in Integrations.

Automation tools

n8n, Make, Zapier, Activepieces and Pipedream work with the REST API and webhooks today, through their generic HTTP modules (HTTP Request in n8n, HTTP in Make, Webhooks by Zapier). There are no dedicated apps in their catalogs yet.

Last updated 2026-12-03 UTC. Something wrong or missing? Send feedback.