Messages
Create message
Create conversational messages using the Anthropic-compatible Messages API
post/messages
Headers
anthropic-versionstring required
Example:2023-06-01
The version of the Anthropic API you want to use. Use '2023-06-01' for the current stable version.
anthropic-betastring
Example:max-tokens-3-5-sonnet-2022-07-15
Optional header for accessing beta features. Format: comma-separated list of beta feature names.
Request body
Example request
{
"model": "claude-3.5-sonnet"
}Response
Successful response
Example response
{
"id": "msg_abc123",
"model": "claude-3.5-sonnet"
}