Skip to main content

Claude Triage API

A reference implementation of a customer-support triage service built on the Claude API, written to be read and taught from.

Four routes, four capabilities

One domain. Each route introduces exactly one new idea and builds on the one before it.

POST /v1/triage
Structured outputs

The model's output contract is your type system

POST /v1/resolve
Tool use

Claude queries your systems and shows its work

POST /v1/draft
Streaming

Token-by-token delivery over SSE, with real cost accounting

POST /v1/estimate
Token counting

Know the bill before you pay it

The scenario is a real place

Northwind Outfitters is invented, and you can still walk into it. Browse the gear, read the warranty you are about to make a claim against, then file a support ticket and watch your own words get classified by the same schema Lab 2 has you edit.