Skip to content
masterclass Buddy

AI & ML · Concept

Constitutional AI

Claude citations attach source locations to answers about supplied documents. PDFs use page locations, while plain text and custom content documents use configurable citation chunks.

Last updated

Syntax

client.messages.create({ model, max_tokens, messages: [{ role: "user", content: [{ type: "document", source, citations: { enabled: true } }, { type: "text", text }] }] })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • document content block
  • PDF citations
  • plain text documents
  • custom content documents
  • page_location

Source: Citations | Claude Cookbook. Checked 2026-11-03.