EXPERT
Citations & Files API
Grounding responses in source documents with precision citations and reusable file references. Part of the free Claude Academy — every lesson below is open to everyone, no signup required.
2 lessons1150 XP~35 min total100% free
// LESSONS IN THIS MODULE
- 01Document-Grounded Citations20 min · 550 XP
Precision Source Attribution The Citations API ( anthropic-beta: citations-2025-02-28 ) enables Claude to ground its responses in specific passages fr...
- 02Files API & Token Counting15 min · 600 XP
Token Counting & File Management Anthropic provides the /v1/messages/count_tokens endpoint to calculate the exact token consumption of a request (incl...