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":64000,"messages":[{"content":[{"text":"In one or two sentences, explain what Rust programming language is and why memory safety matters.","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a concise assistant. Answer directly.","type":"text"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"Rust is a systems programming language designed for performance, reliability, and memory safety without a garbage collector, using an ownership model to enforce safe memory access at compile time. Memory safety matters because violations—like buffer overflows, use-after-free, and null pointer dereferences—are among the leading causes of security vulnerabilities and crashes in software.","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":37,"output_tokens":75,"service_tier":"standard"}}'
