Router skill for the Anthropic Messages API and adjacent surfaces
(admin endpoints, compliance, beta features, models catalog) hosted
under platform.claude.com/docs/en/api/.
Use when the user asks about: POST /v1/messages, tool_use / tool_result
blocks, count_tokens, message batches, streaming responses, prompt
caching, prompt cache TTL / breakpoints, system prompts, anthropic-beta
headers, the admin API (organizations / workspaces / API keys /
invites), compliance endpoints (data residency, audit logs, retention),
beta-only features behind a beta header, or the models catalog
(model IDs, deprecation dates, context window sizes).
Skip: questions about Claude Code (use claude-code skill), the
Claude Agent SDK (use claude-agent-sdk), platform features beyond
the raw API such as Agent Skills format or tool-use guides (use
anthropic-platform-features), MCP connector docs (claude-connectors),
or per-language auto-generated SDK reference (use anthropic-sdk's
TypeScript / Python types directly via your IDE).
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Router skill for the Anthropic Messages API and adjacent surfaces
(admin endpoints, compliance, beta features, models catalog) hosted
under platform.claude.com/docs/en/api/.
Use when the user asks about: POST /v1/messages, tool_use / tool_result
blocks, count_tokens, message batches, streaming responses, prompt
caching, prompt cache TTL / breakpoints, system prompts, anthropic-beta
headers, the admin API (organizations / workspaces / API keys /
invites), compliance endpoints (data residency, audit logs, retention),
beta-only features behind a beta header, or the models catalog
(model IDs, deprecation dates, context window sizes).
Skip: questions about Claude Code (use claude-code skill), the
Claude Agent SDK (use claude-agent-sdk), platform features beyond
the raw API such as Agent Skills format or tool-use guides (use
anthropic-platform-features), MCP connector docs (claude-connectors),
or per-language auto-generated SDK reference (use anthropic-sdk's
TypeScript / Python types directly via your IDE).
This skill is auto-updated daily. A pipeline reads the upstream
docs and rewrites the per-surface files below. Section structure is
stable; content drifts to track upstream.
model IDs (claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5-20251001, …), context window sizes, deprecation dates, model card / capabilities
Out of scope for this skill (intentionally excluded by docsPathFilter):
the auto-generated per-language SDK reference under
platform.claude.com/docs/en/api/{cli,csharp,go,java,php,python,ruby,terraform,typescript}/
(~1100 pages). Use your IDE's type-defs from @anthropic-ai/sdk
(npm) or anthropic (PyPI) for those — they ship the authoritative
signatures and stay in sync with the SDK release you're using.
Auto-correction rules
Rule file
Triggers on edits to
rules/messages-api.md
code calling client.messages.create, POST /v1/messages, or constructing tool_use / tool_result content blocks
This skill is auto-updated daily by a maintainer-run pipeline. File
issues at xiaolai/anthropic-docs —
SKILL fixes flow through the next research run, not via PRs.