A file format is a standardized way of encoding and structuring data so that it can be written, stored, exchanged, and reliably read back by different systems. In the API world, file formats define how requests, responses, specifications, and data payloads are serialized and understood across tools and languages.
File Format
A file format is a convention for encoding and structuring information so that it can be written to disk, moved between systems, and read back the same way by whoever opens it next. Formats range from human-readable text like JSON, YAML, CSV, and XML to compact binary encodings, and each one carries an implicit contract about how the bytes map to meaning. Almost everything I work with in the API space — specifications, payloads, and data exports — is a file format underneath.
- A serialization contract - Rules for how structured data is turned into a byte stream and parsed back, so both ends agree on what the data means.
- Human-readable vs. binary - Text formats like JSON and YAML optimize for legibility and diffability, while binary formats optimize for size and speed.
- Extensions and media types - A
.jsonsuffix or anapplication/jsoncontent type tells tools which parser to reach for. - Schema and validation - Many formats pair with a schema so the shape of a file can be checked before it is trusted.
In real API operations, file formats are the substrate for everything from the OpenAPI and APIs.json documents that describe an API to the fixed-format records still flowing out of legacy financial systems. Getting the format right — and declaring it honestly with a media type — is what lets pipelines, gateways, and now AI agents ingest data without guessing. As the agentic turn accelerates, machine-readable, well-specified file formats are what make an API legible to a model rather than an opaque blob.
Referenced on the API Evangelist blog
Where this standard shows up across sixteen years of my writing at apievangelist.com — how it fits into API design, governance, and the agentic turn.
Series - 3D Printing - Files Formats
2011-05-18
The API Evangelist 1505 Story Format
2025-01-09