parserkit POSTs the finished job to your HTTPS endpoint, signed with HMAC-SHA256, with up to 5 attempts and a 300-second signature window. $0.02 a page, with 50 pages free from the $1 signup credit.

Webhooks

Set webhook_url to an https endpoint on port 443 or 8443, check each delivery's signature, dedupe on Idempotency-Key, and answer with a 2xx within 15 seconds.

Updated

Set a webhook URL

Set webhook_url on POST /v1/parse. Events go to the request's webhook_url. If you leave it off, events go to the inbox's webhook_url for inbox jobs, else to the account's default webhook URL, set in the dashboard under Webhooks. The URL must use https on port 443 or 8443 on a public host, and can never be parserkit.com. A plain http URL returns 400 with "webhook_url must be an https URL".

POST/v1/parseParse with a webhook
curl "https://api.parserkit.com/v1/parse?wait=0" \
  -H "Authorization: Bearer $PARSERKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_url": "https://raw.githubusercontent.com/bitgate/parserkit-samples/master/invoice-fernhill-1007.pdf", "preset": "invoice", "webhook_url": "https://hooks.example/parserkit", "metadata": {"order": "A-1001"}}'
202 AcceptedLive response, Nov 7, 2026
location: /v1/jobs/job_v2auu411z3p5c1telw15
retry-after: 2
request-id: a5694846bb39d38e
{
  "id": "job_v2auu411z3p5c1telw15",
  "status": "queued",
  "preset": "invoice",
  "file": {
    "name": null,
    "bytes": null,
    "kind": null
  },
  "webhook_status": "pending",
  "metadata": {
    "order": "A-1001"
  },
  "created_at": "2026-11-07T03:34:27.871Z"
}

Trimmed to the fields that matter here. webhook_status moves to delivered once your endpoint answers 2xx.

This call sent webhook_url with the placeholder host https://hooks.example/parserkit and ?wait=0. It returned 202 with the job queued and webhook_status set to pending. Any metadata you send comes back as-is in the job and its webhooks, so you can match a delivery to your own record.

Events

A finished job sends exactly one job event: job.failed if it failed, job.discrepancy_flagged if a check still fails after repair, or else job.succeeded. The table lists all 5 webhook events.

Events
EventSent when
job.succeededA job finished with verified, partial or unverified data.
job.discrepancy_flaggedA job finished, but a check still fails after repair.
job.failedA job failed. Its cost_usd is 0.
inbox.verification_receivedAn inbox caught a forwarding confirmation, such as Gmail's.
webhook.testYou pressed Send a test event in the dashboard.

What a delivery looks like

The webhook body is JSON with id (the event id, evt_...), type, created_at and data. The data field holds the job, with the exact same body that GET /v1/jobs/{id} returns.

Delivery headers
HeaderValue
Parserkit-EventThe event type, such as job.succeeded.
Parserkit-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256>.
Idempotency-KeyThe event id, evt_.... The same on every attempt of one event.
Parserkit-Attempt1 to 5.
Parserkit-Job-IdThe job the event is about.
User-Agentparserkit-webhooks/1.
Content-Typeapplication/json.

The delivery below is real, recorded at a test endpoint on November 7, 2026. It shows a job.succeeded event for invoice FP-1007.

Webhook delivery, Nov 7, 2026
Content-Type: application/json
User-Agent: parserkit-webhooks/1
Parserkit-Event: job.succeeded
Parserkit-Job-Id: job_466wyj5h97ekk9zf7mp1
Parserkit-Attempt: 1
Parserkit-Signature: t=1794020610,v1=04ecaf670971a98752404ed26030862bbca9610731739bbef6a181333d4ccb46
Idempotency-Key: evt_u3tcfh8wh7umg4d40ia1
{
  "id": "evt_u3tcfh8wh7umg4d40ia1",
  "type": "job.succeeded",
  "created_at": "2026-11-07T03:03:30.155Z",
  "data": {
    "id": "job_466wyj5h97ekk9zf7mp1",
    "status": "succeeded",
    "preset": "invoice",
    "pages": 1,
    "cost_usd": 0.02,
    "verification_status": "verified",
    "webhook_status": "pending",
    "metadata": {
      "order": "A-1001"
    },
    "data": {
      "invoice_number": "FP-1007",
      "grand_total": 780.17
    }
  }
}

A real delivery from an earlier run of this request, recorded at a test endpoint. Trimmed: data is the full job envelope, the same body GET /v1/jobs/{id} returns, cut here to a few fields.

Verify the signature

The Parserkit-Signature header has the format t=<unix seconds>,v1=<hex>. The v1 value is the hex HMAC-SHA256 of <t>.<raw body>, keyed with your account's signing secret. The secret starts with whsec_ and lives in the dashboard under Webhooks, where Reveal shows it and Rotate replaces it.

  • Take the raw body bytes exactly as they arrived, not parsed and re-serialized JSON.
  • Compare the computed HMAC to v1 in constant time.
  • Reject the delivery if t is more than 300 seconds from now.
Node.js
import { createHmac, timingSafeEqual } from "node:crypto";

// rawBody is the request body exactly as it arrived, header the Parserkit-Signature value
export function verifyParserkit(secret, rawBody, header, toleranceS = 300) {
  const parts = Object.fromEntries(header.split(",").map((part) => part.split("=", 2)));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > toleranceS) return false;

  const expected = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"));
  const given = Buffer.from(parts.v1 ?? "");
  return expected.length === given.length && timingSafeEqual(expected, given);
}

Tested against a recorded delivery body signed with a test secret: it accepts the valid signature and rejects a changed body, a timestamp 301 seconds old, a wrong secret and a broken header.

Python
import hashlib
import hmac
import time


# raw_body is the request body exactly as it arrived (bytes), header the Parserkit-Signature value
def verify_parserkit(secret: str, raw_body: bytes, header: str, tolerance_s: int = 300) -> bool:
    parts = dict(part.split("=", 1) for part in header.split(",") if "=" in part)
    try:
        t = int(parts["t"])
    except (KeyError, ValueError):
        return False
    if abs(time.time() - t) > tolerance_s:
        return False

    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Same tests as the Node.js version.

Both functions were tested against a recorded delivery signed with a test secret. They accept the valid signature and reject a changed body, a timestamp 301 seconds old, a wrong secret and a broken header. Return a 2xx response only after this check passes.

Retries and duplicates

Any 2xx response counts as delivered. Redirects fail and are never followed. parserkit makes up to 5 attempts, and each attempt gets 15 seconds to answer.

Delivery attempts
AttemptSent
1At once
210 seconds after attempt 1
31 minute after attempt 2
45 minutes after attempt 3
530 minutes after attempt 4

Idempotency-Key holds the event id and stays the same on every attempt of an event, while Parserkit-Attempt counts from 1 to 5. Store the Idempotency-Key and skip events you already handled. Exact duplicate jobs send webhooks too. Answer fast and run slow work after you reply.

Check delivery

A job's webhook_status is pending, delivered or failed. Inside a webhook delivery, the job object still reads pending because parserkit writes the body before sending it. Call GET /v1/jobs/{id} after the delivery to see delivered.

In the dashboard under Webhooks, Send a test event posts webhook.test to your account's webhook URL and reports the outcome: http_<status>, dns_error, connect_error, tls_error or timeout. Webhook attempts are limited to 60 a minute per account.

Questions

Why does the job in my webhook say webhook_status pending?

parserkit writes the webhook body before sending it, so the job inside the delivery reads pending. Read the job again with GET /v1/jobs/{id} to see delivered.

How many times does parserkit retry?

parserkit makes up to 5 attempts: at once, then 10 seconds, 1 minute, 5 minutes and 30 minutes after the attempt before. Any 2xx response stops the retries.

How do I avoid handling an event twice?

Store the Idempotency-Key header, which is the event id and stays the same across all attempts for that event. Skip any key you have already handled.

Can my endpoint use http or a redirect?

No. The URL must use https on port 443 or 8443 on a public host, and redirects fail without being followed.

Where is the signing secret?

Find it in the dashboard under Webhooks, where you can reveal it or rotate it. The secret starts with whsec_.

NextEmail inboxes

Your first $1 is free, 50 pages with every check and export.