when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":256,"messages":[{"content":[{"citations":{"enabled":true},"source":{"data":"The Rust Programming Language\n\nRust is a systems programming language focused on three goals: safety, speed,\nand concurrency. It accomplishes these goals without a garbage collector.\n\nKey Features:\n- Zero-cost abstractions\n- Move semantics\n- Guaranteed memory safety\n- Threads without data races","media_type":"text/plain","type":"text"},"title":"Rust Goals","type":"document"},{"text":"Using citations, answer in one sentence: what three goals does Rust focus on?","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"Answer using the supplied document and preserve citation metadata.","type":"text"}],"temperature":0.0}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"citations":[{"cited_text":"The Rust Programming Language\n\nRust is a systems programming language focused on three goals: safety, speed,\nand concurrency. ","document_index":0,"document_title":"Rust Goals","end_char_index":126,"start_char_index":0,"type":"char_location"}],"text":"Rust focuses on three goals: **safety**, **speed**, and **concurrency**.","type":"text"}],"id":"msg_REDACTED_1","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":684,"output_tokens":38,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64,"messages":[{"content":[{"citations":{"enabled":true},"source":{"data":"The Rust Programming Language\n\nRust is a systems programming language focused on three goals: safety, speed,\nand concurrency. It accomplishes these goals without a garbage collector.\n\nKey Features:\n- Zero-cost abstractions\n- Move semantics\n- Guaranteed memory safety\n- Threads without data races","media_type":"text/plain","type":"text"},"title":"Rust Goals","type":"document"},{"text":"Using citations, answer in one sentence: what three goals does Rust focus on?","type":"text"}],"role":"user"},{"content":[{"citations":[{"cited_text":"The Rust Programming Language\n\nRust is a systems programming language focused on three goals: safety, speed,\nand concurrency. ","document_index":0,"document_title":"Rust Goals","end_char_index":126,"start_char_index":0,"type":"char_location"}],"text":"Rust focuses on three goals: **safety**, **speed**, and **concurrency**.","type":"text"}],"role":"assistant"},{"content":[{"text":"Reply exactly: citations follow-up ok","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"Answer using the supplied document and preserve citation metadata.","type":"text"}],"temperature":0.0}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"citations follow-up ok","type":"text"}],"id":"msg_REDACTED_2","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":733,"output_tokens":8,"service_tier":"standard"}}'
