API and webhooks

Webhooks

Add a webhook on a parser's Destinations tab. Every new row is sent as a JSON POST:

POST https://your-app.example.com/hook
Content-Type: application/json
X-Rowmail-Timestamp: 1795526400
X-Rowmail-Signature: sha256=5f2c…
X-Rowmail-Delivery: <row id>

{
  "id": "<row id>",
  "parser_id": "<parser id>",
  "parser_name": "Airbnb bookings",
  "status": "ok",
  "redelivery": false,
  "email": { "id": "…", "from": "Airbnb <automated@airbnb.com>", "subject": "…", "received_at": "2026-11-24T10:02:11Z" },
  "data": { "guest_name": "Anna", "check_in": "2026-12-03", "host_payout": 400.13, "host_payout_currency": "USD" }
}

status is needs_review only if you chose to receive those rows. redelivery is true when you corrected a row that was already sent; use the row id to update your copy.

Checking the signature

Compute HMAC-SHA256 of the timestamp, a dot, and the raw request body, using the webhook's secret. Compare it with the header, and reject timestamps more than five minutes old.

import crypto from 'node:crypto';

function verify(rawBody, headers, secret) {
  const ts = headers['x-rowmail-timestamp'];
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(ts + '.' + rawBody).digest('hex');
  const got = headers['x-rowmail-signature'] ?? '';
  return got.length === expected.length && crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected));
}

Retries

Reply with any 2xx status. A 5xx, 408, 429 or network error is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours. Other 4xx replies are not retried.

REST API

On the Pro and Business plans you can read rows with an API key from Settings. Send it as Authorization: Bearer <key>. The limit is 120 requests a minute per key.

List parsers

GET http://localhost:3000/api/v1/parsers

List rows

GET http://localhost:3000/api/v1/parsers/{parser_id}/rows?since=2026-11-24T00:00:00Z&limit=100

{ "data": [ { "id": "…", "email_id": "…", "status": "ok", "created_at": "…", "data": { … } } ] }

Rows come newest first, up to 500 per request. To poll, pass the created_at of the newest row you already have as since. Add status=needs_review to list only rows that need review.

Get one row

GET http://localhost:3000/api/v1/rows/{row_id}

Errors

{ "error": { "message": "This API key is not valid" } }

401 for a missing or wrong key, 403 if your plan does not include the API, 404 for something that does not exist in your workspace, 429 when you are over the rate limit.