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

Create an Oliver thread.

POST/api/v1/oliver-threadsoliver:run
注記

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

Starts an empty chat thread of yours, with no run and no cost. Without oliver_agent_id it uses the organisation's default agent. contexts scopes the chat to documents, folders and dataviews ("ask Oliver about this document"): each must exist and be readable by you, or the call is refused (422 reference_not_found or reference_forbidden naming the ID you sent), and naming one needs the matching read scope. A progressive agent starts a progressive thread instead, together with its first message and run (message required; the Portal's progressive admission checks that it admits the caller to progressive agents, the tenant's controls and the agent's profile; it needs Start Oliver Runs and Execute Oliver Tools, and images need Inject Oliver Images). The thread starts in ask mode, where any write the agent proposes waits for your approval, unless permission_mode is auto (Oliver itself may not choose auto, 403). Send the first message with POST /oliver-threads/{oliver_thread_id}/messages. Needs Create Oliver Conversations.

スコープoliver:run
非同期いいえ
MCP ツールcreate_oliver_thread
Portal の権限create_oliver_conversations

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonOliverThreadCreateInput

応答​

ステータス説明本文
201Success.application/json OliverThread または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/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 のコードです。各コードからそのページに移動できます。

スキーマ​

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.

OliverThread​

フィールド型必須説明
agent_namestring または null必須
contextsOliverThreadContext の配列必須What the chat is scoped to: documents, folders and dataviews the agent is told to work with.
created_atstring (date-time) または null必須
latest_runOliverThreadRunRef または null必須The thread's most recent run; null when it has none.
my_ratingOliverThreadFeedback または null必須Your own rating of the thread, as the Portal's rate dialog shows it; null until you rate it. Rate with rate_oliver_thread.
oliver_agent_idstring または null必須The agent the thread talks to.
oliver_thread_idstring必須
permission_modestring必須ask (any write waits for approval) or auto.
titlestring または null必須The chat's heading, taken from its first message; null until then.
updated_atstring (date-time) または null必須When the thread last had a message.

OliverThreadContext​

フィールド型必須説明
dataview_idstring または null必須The dataview, for type dataview.
document_idstring または null必須The document, for type document.
folder_idstring または null必須The folder, for type folder.
labelstring または null必須What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent.
typestring必須document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown.
type_codestring または null必須The stored type of a context whose type is unknown. Read-only.

OliverThreadContextInput​

フィールド型必須説明
dataview_idstring または null任意The dataview, for type dataview.
document_idstring または null任意The document, for type document.
folder_idstring または null任意The folder, for type folder.
labelstring または null任意What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent.
typestring必須document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown.
type_codestring または null任意The stored type of a context whose type is unknown. Read-only.

OliverThreadCreateInput​

フィールド型必須説明
contextsOliverThreadContextInput の配列任意What to scope the chat to: a document, a folder or a dataview each, as {type, document_id | folder_id | dataview_id}. You must be able to read each, and your token needs documents:read, folders:read or dataviews:read to name one.
imagesOliverMessageImageInput の配列任意A progressive agent only: pictures attached to the first message, as for create_oliver_thread_message.
messagestring または null任意A progressive agent only: the first message. A progressive thread is created together with its first message and run (the Portal's progressive admission); a standard thread starts empty and takes its first message with create_oliver_thread_message.
oliver_agent_idstring または null任意The agent to chat with; omit for the organisation's default agent.
permission_modestring または null任意ask (the default: any write the agent proposes waits for your approval) or auto (writes run without asking, each audited on its tool call), as the Portal's mode toggle. Change it later with update_oliver_thread.

OliverThreadFeedback​

フィールド型必須説明
created_atstring (date-time) または null必須
messagestring または null必須What went wrong or right; required at 2 stars or fewer.
oliver_thread_idstring必須
ratinginteger必須1 to 5 stars. ≥ -2147483648; ≤ 2147483647
releasestring または null必須The backend release the rating is tied to; null when unknown.

OliverThreadRunRef​

フィールド型必須説明
oliver_run_idstring必須
statusstring必須The run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open).