# Response metadata

> mdapi.io - Minimal Data API I/O: a content transformation layer primitive for AI systems.
>
> Transforms files and webpages into AI-ready Markdown and structured data, optimized for LLM efficiency and token usage.

The facts an answer carries in its headers: the service that replied, the document validators and the integrity field.

Some facts about an answer are not in its body: what service replied, whether a stored copy of a document is still current, whether the bytes are the ones that were sent. They ride in the response headers, and every one of them is readable by any client - the self-describing fields are on every answer, the validators and the integrity field on the published documents.

- `X-MDAPI-Service`, `X-MDAPI-Version`, `X-MDAPI-AI-Discovery`, `X-MDAPI-Skill`, `X-MDAPI-MCP`, `X-MDAPI-Protocols` - Every response identifies the service that answered and points at its discovery layer: `mdapi.io` for `X-MDAPI-Service`, `1.0.0` for `X-MDAPI-Version`, `/.well-known/ai-discovery.json` for `X-MDAPI-AI-Discovery`, `/.well-known/skill.md` for `X-MDAPI-Skill`, `/mcp` for `X-MDAPI-MCP`, `rest,mcp,acp,a2a,openai` for `X-MDAPI-Protocols`. A consumer that has never read a discovery file can name the service and reach its hub from any answer.
- `ETag` / `If-None-Match` - A validator on the published documents - the canonical path, no query string, `GET` or `HEAD`, status `200`. Send the tag back as `If-None-Match` and an unchanged document is answered `304` with no body. The tag is the digest of exactly the bytes served, so it never matches a different representation of the same address.
- `Repr-Digest` / `Want-Repr-Digest` - The integrity field of the same published documents (RFC 9530), `sha-256=:<base64>:` over the same bytes the entity tag covers. It answers a different question than `ETag`: the tag asks whether a stored copy is still current, the digest whether the bytes are the ones the service sent - so a consumer that kept a body can verify it later, without a second request. Sent on every published document, whether the body was built now or reused, so the value is the same either way; `Want-Repr-Digest` is accepted and the field is sent regardless.
- `Cache-Control` - The static discovery and manifest documents are reusable for public, max-age=3600, s-maxage=3600, so resolving a service to its documents need not reach the worker every time.
- `Accept` / `X-MDAPI-Json-Conforms` / `X-MDAPI-Json-Error` - A conversion answers markdown on `GET` and JSON on `POST`, and the caller chooses the form of a `GET` answer with `Accept`: `application/json` answers the same body a `POST` answers, while a missing field, `*/*` or `text/markdown` keeps the markdown answer. The four protocol endpoints answer in the shape their protocol defines. The choice decides the form of the answer, not what was converted - the document is markdown either way, and the JSON form is the one that hands back the answer to a `schema` as a value. When the request named a `schema`, a GET reports the verdict of the answer in `X-MDAPI-Json-Conforms` and names the first violation in `X-MDAPI-Json-Error`, because a markdown body has nowhere to put it.
- `Retry-After` - How long to wait before asking again, on a throttled answer and on an AI provider failure. It is the service's own estimate, so a caller that waits it out does not have to guess a backoff.
- `X-MDAPI-Capacity-Window` - The window an answer was priced and cut for, in tokens - sent only on requests that buy an answer. `capacity` is a level; the level resolves to a number from the document and the instruction, so this is the number the price stands for. It is also what the answer may take: both sides of one window, input and output.
- `X-MDAPI-Result-Job` - A delivery wider than one connection arrives in parts, and this field carries the job that holds the rest of the window: the same object the `job` field of a JSON answer carries (`id`, `parts`, `partTokens`, `type`, `expiresAt`). It is sent on the markdown answer of the request that created the job, whose body is part 0 itself - a markdown body has nowhere else to put the address of the remaining parts.

## Links

- **About service:** https://mdapi.io/about
- **Privacy:** https://mdapi.io/privacy
- **Contact:** https://mdapi.io/contact
- **Agent entry point:** https://mdapi.io/AGENTS.md or https://mdapi.io/agents.md or https://mdapi.io/agent.md
- **Agent access:** https://mdapi.io/auth.md
- **API documentation and conversion:** https://mdapi.io
- **MCP server manifest:** https://mdapi.io/mcp
- **Health check:** https://mdapi.io/health
- **Documentation index:** https://mdapi.io/llms.txt
- **Full API documentation:** https://mdapi.io/llms-full.txt
- **AI discovery:** https://mdapi.io/.well-known/ai-discovery.json or https://mdapi.io/ai-discovery.json
- **AI Agent discovery:** https://mdapi.io/.well-known/agent.json or https://mdapi.io/agent.json
- **A2A Agent card:** https://mdapi.io/.well-known/agent-card.json or https://mdapi.io/agent-card.json
- **ACP manifest:** https://mdapi.io/.well-known/acp.json or https://mdapi.io/acp.json
- **x402 payment manifest:** https://mdapi.io/.well-known/x402.json or https://mdapi.io/x402.json or https://mdapi.io/.well-known/x402
- **OpenAPI specification (JSON):** https://mdapi.io/.well-known/openapi.json or https://mdapi.io/openapi.json
- **OpenAPI specification (YAML):** https://mdapi.io/.well-known/openapi.yaml or https://mdapi.io/openapi.yaml
- **MAPI specification:** https://mdapi.io/.well-known/mapi.md or https://mdapi.io/mapi.md
- **Skill specification:** https://mdapi.io/.well-known/skill.md or https://mdapi.io/skill.md
- **ARD manifest:** https://mdapi.io/.well-known/ard.json or https://mdapi.io/.well-known/ai-catalog.json or https://mdapi.io/ard.json
- **Agent Plugins manifest:** https://mdapi.io/.well-known/plugin/plugin.json or https://mdapi.io/.well-known/plugin.json
- **Agent Plugins MCP config:** https://mdapi.io/.well-known/plugin/mcp.json
- **Agent Plugins conversion skill:** https://mdapi.io/.well-known/plugin/skills/mdapi-conversion/SKILL.md
- **API documentation pages:** https://mdapi.io/docs
- **Example pages:** https://mdapi.io/docs/examples

## External Links

- **github.com** https://github.com/mdapiio/mdapi.io
- **skills.sh** https://www.skills.sh/mdapiio/mdapi.io
- **skillsmp.com** https://skillsmp.com/creators/mdapiio/mdapi.io
- **clawhub.ai** https://clawhub.ai/mdapiio
- **x.com** https://x.com/mdapiio

## Disclaimer

**The service is provided "AS IS".**


> mdapi.io is an edge-native service-transport primitive for AI, autonomous agents, and the Web4 ecosystem.
