API & MCP

Everything a person can do on PastePort — Formatting converter, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

PastePort — Formatting converter

Convert a bounded set of nested text formatting, fenced code and links with a visual preview and explicit reports of unsupported formatting.

Inputs of PastePort — Formatting converter
FieldTypeDefaultDescription
texttextarea"**Hello** _world_\n\nA [useful link](https://usefulweb.site)."Text
fromselect (markdown, slack, whatsapp, plain)"markdown"From
toselect (slack, markdown, whatsapp, plain)"slack"To

Example request

Try an example

curl -X POST https://paperwellpasteport.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{}'

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-pasteport": { "type": "http", "url": "https://paperwellpasteport.usefulweb.app/mcp" }
  }
}