Mailpiece
A single dispatched physical mail item (postcard or letter).
Direct MailPostcardsLettersPrintPhysical MailMarketing AutomationCampaignsAddress VerificationSMSWebhookMailing ListsFulfillment
Properties
| Name |
Type |
Description |
| id |
integer |
Unique mailpiece identifier |
| pdf |
string |
URL to the proof or production PDF |
| created |
string |
Creation timestamp |
| format |
string |
Mail piece format or size (e.g. 4x6, US-LETTER) |
| cost |
string |
Per-item cost as a decimal string |
| status |
string |
Current mailpiece status |
| tracking_reference |
string |
Carrier tracking reference number |
| dispatched |
string |
Timestamp when the item was dispatched |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/stannp/main/json-schema/mailpiece.json",
"title": "Mailpiece",
"description": "A single dispatched physical mail item (postcard or letter).",
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Unique mailpiece identifier"
},
"pdf": {
"type": "string",
"format": "uri",
"description": "URL to the proof or production PDF"
},
"created": {
"type": "string",
"format": "date-time",
"description": "Creation timestamp"
},
"format": {
"type": "string",
"description": "Mail piece format or size (e.g. 4x6, US-LETTER)"
},
"cost": {
"type": "string",
"description": "Per-item cost as a decimal string",
"examples": ["0.99", "1.49"]
},
"status": {
"type": "string",
"enum": [
"created",
"printing",
"dispatched",
"local_delivery",
"delivered",
"returned",
"cancelled"
],
"description": "Current mailpiece status"
},
"tracking_reference": {
"type": "string",
"description": "Carrier tracking reference number"
},
"dispatched": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the item was dispatched"
}
},
"examples": [
{
"id": 98765,
"pdf": "https://api-us1.stannp.com/v1/postcards/proof/98765.pdf",
"created": "2024-04-10T14:30:00Z",
"format": "4x6",
"cost": "0.99",
"status": "dispatched",
"tracking_reference": "9400111899223387624110",
"dispatched": "2024-04-12T08:00:00Z"
}
]
}
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mailpiece"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.