Claude starter module
Messages API
Sends Claude requests from the server with trusted model settings and customer context.
- Files
- 2
- Lines
- 208
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
FilePurposeLanguageLines
src/checkout/ask-route.ts
Handles guarded ask requests and maps expected failures to plain HTTP responses.
TypeScript
86 lines
src/checkout/create-message.ts
Creates one allowance-checked Anthropic message and records its usage exactly once.
TypeScript
122 lines