Create a message
Compatible with the Anthropic Messages protocol, with optional built-in octen_broad_search and octen_search tools.
post/v1/messages
Request
- Base URL: https://api.octen.ai
- URL: https://api.octen.ai/v1/messages
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Headers
anthropic-versionstring
Anthropic protocol version, e.g. 2023-06-01. Sent automatically by the Anthropic SDK. Defaults to 2023-06-01 if omitted.
Request body
Example request
{
"tools": [
{
"parameters": {
"include_domains": [
"octen.ai",
"wikipedia.org"
],
"exclude_domains": [
"spam.com",
"ads.example.net"
],
"start_time": "2025-01-01T00:00:00+08:00",
"end_time": "2025-01-01T00:00:00+08:00",
"language": [
"en",
"zh"
]
}
}
]
}Response
Successful message response. When stream=false, returns a single message object. When stream=true, returns an Anthropic SSE event stream.
Changes
No recorded changes to this operation across all 1 revision of this API.