メインコンテンツまでスキップ

Send a message to an Oliver thread (starts a run).

POST/api/v1/oliver-threads/{oliver_thread_id}/messagesoliver:run
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Sends your message to the thread's agent and starts a run that answers it. Answers arrive as the run's answer (GET the run, or wait for it). A thread with an unfinished run is 409 naming that run. images attaches pictures to the message and needs Inject Oliver Images. On a progressive thread the message is a new run admitted by the Portal's progressive admission (neither oliver_agent_id nor oliver_model_id applies). The answer is 201 with the run's Location. Needs Start Oliver Runs and Execute Oliver Tools.

スコープoliver:run
非同期いいえ
MCP ツールcreate_oliver_thread_message
Portal の権限start_oliver_runs, execute_oliver_tools

パラメーター​

名前場所型必須説明
oliver_thread_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonOliverMessageCreateInput

応答​

ステータス説明本文
201Success.application/json OliverMessage または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

OliverMessage​

フィールド型必須説明
agent_namestring または null必須
contentstring必須
oliver_agent_idstring または null必須
oliver_message_idstring必須
oliver_run_idstring必須
oliver_thread_idstring必須
permission_modestring必須ask or auto.
statusstring必須The run's status when it was started.

OliverMessageCreateInput​

フィールド型必須説明
imagesOliverMessageImageInput の配列任意Images to attach to the message, as the chat's attach button does: each base64 (a data URL is accepted), with an optional caption. The Oliver image limits apply (count, bytes each and together, pixels): one over them is 413 payload_too_large or 422 on /images.
messagestring必須What the user says to the agent.
oliver_agent_idstring または null任意The agent to answer; omit for the thread's agent (the default agent when it has none).
oliver_model_idstring または null任意The model that answers this message, as the Portal's model picker chooses it for a turn: fast or smart, or an id from list_oliver_models. Omit for the agent's own model.

OliverMessageImageInput​

フィールド型必須説明
captionstring または null任意What the image shows, for the agent; default "User attached image".
datastring必須The image bytes, base64; a data URL is accepted. PNG, JPEG, GIF or WebP.