Developers
AvailableConnect Ankerform to your systems
Signed webhooks in both directions and a REST connector for your own HTTP calls are available. There is also a public REST API v1 with an OpenAPI specification and an MCP server.
POST /hooks/ankerform HTTP/1.1
Content-Type: application/json
User-Agent: Ankerform-Webhooks/1.0
Ankerform-Event: submission.created
Ankerform-Delivery: 6f1c2a9e-…
Ankerform-Signature: t=1764323520,v1=9f2c…e81a
{
"id": "evt_…",
"type": "submission.created",
"createdAt": "2026-11-28T09:12:00.000Z",
"data": { … }
}import { createHmac, timingSafeEqual } from "node:crypto";
const TOLERANCE_SECONDS = 300; // ±5 minutes
export function verifyAnkerform(header: string | null, rawBody: string, secret: string) {
if (!header) return false;
const parts = Object.fromEntries(
header.split(",").map((p) => {
const i = p.indexOf("=");
return [p.slice(0, i).trim(), p.slice(i + 1).trim()];
}),
);
const t = Number(parts.t);
const v1 = parts.v1 ?? "";
if (!Number.isInteger(t) || !/^[0-9a-f]{64}$/.test(v1)) return false;
if (Math.abs(Math.floor(Date.now() / 1000) - t) > TOLERANCE_SECONDS) return false;
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return timingSafeEqual(Buffer.from(v1, "hex"), Buffer.from(expected, "hex"));
}
// Example (Express): read the raw body, parse afterwards
app.post("/hooks/ankerform", express.raw({ type: "application/json" }), (req, res) => {
const raw = req.body.toString("utf8");
const header = req.get("Ankerform-Signature") ?? null;
if (!verifyAnkerform(header, raw, process.env.ANKERFORM_WEBHOOK_SECRET!)) {
return res.sendStatus(401);
}
const event = JSON.parse(raw); // { id, type, createdAt, data }
// store Ankerform-Delivery for deduplication
res.sendStatus(204);
});Verifying webhook signatures
Every outgoing delivery carries the Ankerform-Signature header with timestamp t and signature v1 = HMAC-SHA256(secret, "<t>.<rawBody>") as hex. Verify against the unmodified body, compare in constant time and reject timestamps outside ±5 minutes.
- Algorithm
- HMAC-SHA256, hex
- Signed content
- <t>.<rawBody>
- Tolerance
- ±300 seconds
- Deduplication
- Ankerform-Delivery
- Retries
- up to 8 attempts with backoff
- Log
- every delivery, redeliver with one click
import hmac, hashlib, time, re
TOLERANCE_SECONDS = 300
def verify_ankerform(header: str | None, raw_body: bytes, secret: str) -> bool:
if not header:
return False
parts = dict(p.strip().split("=", 1) for p in header.split(",") if "=" in p)
try:
t = int(parts.get("t", ""))
except ValueError:
return False
v1 = parts.get("v1", "")
if not re.fullmatch(r"[0-9a-f]{64}", v1):
return False
if abs(int(time.time()) - t) > TOLERANCE_SECONDS:
return False
msg = f"{t}.".encode() + raw_body
expected = hmac.new(secret.encode(), msg, hashlib.sha256).hexdigest()
return hmac.compare_digest(v1, expected)Events
Subscribe to these events per endpoint – or to all of them with *.
- submission.created
- submission.status_changed
- submission.assigned
- contact.created
- contact.updated
- lead.created
- lead.status_changed
- property.created
- property.updated
- search_profile.created
- document.created
- document.signed
- signature.requested
- workflow.manual
- form.published
Incoming webhooks
AvailableOther systems can send events to Ankerform – for example to trigger a workflow. Incoming calls are signed with the same scheme, checked against the time window and protected against replays.
# Incoming webhook: to your endpoint URL from Settings › Integrations
BODY='{"type":"lead.external","data":{"email":"mira.kaya@example.de"}}'
T=$(date +%s)
SIG=$(printf '%s.%s' "$T" "$BODY" | openssl dgst -sha256 -hmac "$WHSEC" -hex | sed 's/^.* //')
curl -X POST "https://app.ankerform.de/api/hooks/in/<public-key>" \
-H "Content-Type: application/json" \
-H "Ankerform-Signature: t=$T,v1=$SIG" \
-H "Ankerform-Delivery: $(uuidgen)" \
--data "$BODY"REST connector
AvailableIn workflows, the REST connector sends HTTP requests to your systems. Placeholders such as {{ contact.name }} are replaced at runtime. The target is checked against private networks after substitution (SSRF protection), redirects are not followed, the timeout is at most 10 seconds and responses are limited to 1 MB.
{
"method": "POST",
"url": "https://erp.example.de/api/leads",
"headers": { "Authorization": "Bearer …", "Content-Type": "application/json" },
"body": "{\"name\": \"{{ contact.name }}\", \"quelle\": \"{{ form.title }}\"}",
"timeoutMs": 10000
}Public REST API v1
AvailableThe REST API v1 covers 39 endpoints across 15 resources. You authenticate with bearer API keys whose scopes are additionally limited by role permissions. The OpenAPI 3.1 specification is available at /api/v1/openapi.json. Create API keys in the developer settings; an MCP server at /api/mcp exposes selected functions to AI tools.
- API keys with scopes, revocation and rotation
- OpenAPI specification at /api/v1/openapi.json
- Rate limits, pagination and idempotency keys
- MCP server with tools per scope