Skip to main content
POST
Create a Message

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

anthropic-version
string
Example:

"2023-06-01"

Body

application/json
model
string
required
Example:

"anthropic/claude-sonnet-4.6"

max_tokens
integer
required
Example:

1024

messages
object[]
required
stream
boolean
default:false

Response

200 - application/json

Anthropic message response

The response is of type object.