API & MCP

Everything a person can do on Paperwell Contract Notice Deadlines, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Paperwell Contract Notice Deadlines

Computes the term table of a contract (initial term, automatic renewals) or the earliest end of an open-ended contract (notice on any day, to the end of a month, quarter or year), the last day your notice must arrive, the days left and an iCalendar file with reminders. The same engine powers the deadlines view of Paperwell.

Inputs of Paperwell Contract Notice Deadlines
FieldTypeDefaultDescription
titletext—Contract name
startDate (required)date—Start date of the contract
anchorselect (term-end, any-time, month-end, quarter-end, year-end)"term-end"Kind of contract
termValueinteger—Initial (minimum) term. Required for fixed terms. For open-ended contracts an optional minimum term.
termUnitselect (day, business-day, week, month, year)"month"Unit of the initial term
renewalValueinteger—Automatic renewal period. Empty = the contract ends after the initial term.
renewalUnitselect (day, business-day, week, month, year)"month"Unit of the renewal period
noticeValue (required)integer—Notice period
noticeUnitselect (day, business-day, week, month, year)"month"Unit of the notice period
asOfdate—Reference day (today). Empty = today.
cyclesinteger4Terms to list
remindtext"30, 7"Reminders (days before the last notice day). Comma-separated, e.g. "30, 7". Used for the calendar file.

Example request

24-month software subscription, 12-month renewals, 90 days notice

curl -X POST https://paperwellnoticedeadlines.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"title":"Software subscription","startDate":"2026-11-01","anchor":"term-end","termValue":24,"termUnit":"month","renewalValue":12,"renewalUnit":"month","noticeValue":90,"noticeUnit":"day","asOf":"2026-10-26","cycles":3,"remind":"30, 7"}'

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": {
    "paperwell-notice-deadlines": { "type": "http", "url": "https://paperwellnoticedeadlines.usefulweb.site/mcp" }
  }
}