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.
SubscribeRelated
document content blockPDF citationsplain text documentscustom content documentspage_location