API & MCP

Everything a person can do on Deadline Decoder, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Deadline Decoder

Paste or upload an official letter, invoice, reminder or notice (English or German). Deadline Decoder extracts absolute dates and relative deadlines such as "within 14 days" or "binnen eines Monats", resolves them against the letter or receipt date, lists what you must do and what happens otherwise, and exports the deadlines as a calendar (.ics) file.

Inputs of Deadline Decoder
FieldTypeDefaultDescription
texttextarea—Letter or notice text. Paste the text here, or use one of the other options below (exactly one).
filefile—Or upload a file. TXT, PDF, DOCX, HTML or a photo/scan (PNG/JPG, read with OCR). Max 5 MiB.
referenceDatedate—Reference date. Date of the letter or the day you received it. Relative deadlines ("within 14 days") are counted from here. Defaults to today.
referenceTypeselect (received, letter)"received"The reference date is…
dateOrderselect (DMY, MDY)"DMY"Numeric dates like 03/04/2026 are

Example request

German payment reminder (Mahnung)

curl -X POST https://deadlinedecoder.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"Zahlungserinnerung\nDatum: 05.10.2026\n\nSehr geehrte Frau Muster,\nleider konnten wir bis heute keinen Zahlungseingang für die Rechnung Nr. 4711 vom 01.09.2026 feststellen. Bitte überweisen Sie den offenen Betrag von 89,90 EUR bis spätestens 20. Oktober 2026 auf das unten genannte Konto. Andernfalls müssen wir eine Mahngebühr von 5,00 EUR berechnen und die Forderung an ein Inkassobüro übergeben. Gegen diesen Bescheid kann innerhalb eines Monats nach Bekanntgabe Widerspruch eingelegt werden.","referenceDate":"2026-10-07","referenceType":"received","dateOrder":"DMY"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "deadline-decoder": { "type": "http", "url": "https://deadlinedecoder.usefulweb.site/mcp" }
  }
}