Messages
API Reference
Messages
Create a model response using the Anthropic Messages API format through the attested Confidential AI gateway.
POST
Messages
Creates a model response using the Anthropic Messages request and response format. Requests are served through the attested gateway and return an
Read assistant text from
x-receipt-id header for verification.
Endpoint
Request Body
Model id returned by List Models.
Maximum number of tokens to generate.
Conversation turns. Each item has a
role (user or assistant) and content.System prompt, sent as a top-level field.
Sampling temperature.
Stream the response as server-sent events.
Example
Response
content[].text on blocks with type: "text". stop_reason is usually end_turn, max_tokens, stop_sequence, or tool_use.
Verification
Use the responsex-receipt-id header with Get Receipt. A confidential response has upstream.verified.result = verified and required = true.

