Version: Current
Historical release snapshot. These docs are frozen. Read current docs.
POST /v1/messages
Part of the API reference; this page is generated from the OpenAPI document that the gateway builds from its own route tables.
Provenance
Section titled “Provenance”- Contract version:
1.10.0 - Contract title: acumen gateway API
- Source:
acumen:docs/openapi/acumen-v1.openapi.json
Operations
Section titled “Operations”POST /v1/messages
Section titled “POST /v1/messages”Anthropic Messages door
The Anthropic Messages dialect door (/v1/messages). Accepts the Anthropic request shape and answers message objects or Anthropic SSE frames; error bodies use the Anthropic error envelope. x-api-key or bearer both authenticate.
- Operation id:
postV1Messages - Scope:
chat - Exposure:
public - Mutating: no
- Auth:
bearerAuth,apiKeyAuth
Request
- Request body (application/json, required):
AnthropicRequest: AnthropicRequest (object)
| Field | Type | Required | Notes |
|---|---|---|---|
max_tokens |
integer | yes | |
messages |
array of object | yes | |
model |
string | yes | |
stream |
boolean | no | |
system |
no | string or content-block array | |
temperature |
number | no | |
tools |
array of object | no |
Responses
200: Completion, or an SSE stream when the request sets stream:true- Streaming:
text/event-stream application/json:AnthropicMessage: AnthropicMessage (object)
- Streaming:
400: schema_invalidapplication/json:AnthropicError: AnthropicError (object)
401: bad_credentialsapplication/json:AnthropicError: AnthropicError (object)
402: quota_exhausted (cool-down applied)application/json:AnthropicError: AnthropicError (object)
403: auth_scopeapplication/json:AnthropicError: AnthropicError (object)
413: payload_too_largeapplication/json:AnthropicError: AnthropicError (object)
429: rate_limited (RPM or concurrency)application/json:AnthropicError: AnthropicError (object)
502: upstream_error — every attempted seat failedapplication/json:AnthropicError: AnthropicError (object)
503: model_no_eligible_seatapplication/json:AnthropicError: AnthropicError (object)