Crescendo Lab ドキュメント
日本語
無料で始める

Channel events API リファレンス

Platform API v1 の Channel events:各操作のパス、パラメーター、リクエストとレスポンスのフィールド、スコープ、冪等性、エラーをコントラクトから掲載します。

最終更新

API コントラクト(Agent Lab Platform API 1.0.0-alpha.1)から生成しています。説明文はコントラクトの英語の原文のままです。

Answering a channel event the platform delivered to the application (sdk-event/v1).

Reply to a channel event#

POST /v1/sdk/replies

Answers one sdk-event/v1 event the platform delivered to the application, by its correlationId. The credential — an al_app_ key, or an installation token of the installed application — is the only source of the workspace and the application; the body cannot choose either, or where the answer goes. Server to server only: a request with an Origin header or a query string is refused. An installation token answers only when its installation is granted channels:respond; an al_app_ key carries no scopes and needs none.

スコープ実行主体認証Idempotency-Key
なし—applicationKey, installationToken—

リクエストボディ

application/json: SdkReply

フィールド型必須説明
versionstringはい値: sdk-event/v1.
correlationIdstring (uuid)はいThe delivered event's correlationId.
contentstringはいThe answer's text; not blank.

レスポンス

ステータスボディ説明
202application/json: objectAccepted for delivery.
400application/json: LegacyErrorCodeinvalid_sdk_reply.
401application/json: LegacyErrorCodeapplication_key_not_accepted: neither a live key nor an installation token.
403application/json: LegacyErrorCodeserver_application_required: sent from a browser or with a query string; scope_not_granted: an installation token whose installation is not granted channels:respond.
404application/json: LegacyErrorCodesdk_event_not_found.
409application/json: LegacyErrorCodesdk_reply_conflict: the event was already answered or can no longer be.
413application/json: LegacyErrorCoderequest_too_large.
415application/json: LegacyErrorCodejson_required.
503application/json: LegacyErrorCodesdk_reply_unavailable, or CONTRACT_UNAVAILABLE when the API contract could not be read.

202 application/json

フィールド型必須説明
acceptedbooleanはい値: true.
correlationIdstring (uuid)はい—