4e064cf81dae

latestOpenAPI 3.1.02026-08-131831,331960.0 KB
anthropicGateway

Create an Anthropic message

Send an Anthropic Messages API payload through Respan. Use x-api-key for native Anthropic SDKs, or Authorization: Bearer for Claude Code and bearer clients. Provider credentials are configured in Respan.

post/api/anthropic/v1/messages

Headers

x-api-keystring required

Respan API key in Anthropic's native auth header. Bearer authentication is also accepted by the backend but is not the generated native-SDK form.

anthropic-versionstring required
anthropic-betastring

Request body

modelstring required
max_tokensinteger required
messagesobject[] required
streamboolean
respan_paramsobject

Response

Anthropic response or event stream.

object required