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

Test a LINE channel's connection.

POST/api/v1/chat-channels/{chat_channel_id}/testchat_channels:write
注記

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

Checks the stored credentials and that the access token belongs to the channel's LINE account, then points LINE's webhook at the Portal and reports its status (webhook_status), without sending a message. A channel that is not connected is answered 200 with is_connected false and the reason. Needs Test Chat Channels.

スコープchat_channels:write (機密性の高いスコープ)
非同期いいえ
MCP ツールtest_chat_channel
Portal の権限test_chat_channels

パラメーター​

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

応答​

ステータス説明本文
200Success.application/json ChatConnectionTest または object
400invalid_versionapplication/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
409idempotency_in_progressapplication/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 のコードです。各コードからそのページに移動できます。

スキーマ​

ChatConnectionTest​

フィールド型必須説明
display_namestring または null必須The bot account's name on LINE.
failurestring または null必須Why it is not connected: missing_channel_secret, missing_access_token or the reason LINE gave; null when connected.
is_connectedboolean必須True when the stored credentials work and belong to the channel's LINE account.
provider_user_idstring または null必須LINE's own id of the channel's bot account.
webhook_detailstring または null必須
webhook_statusstring または null必須active (events reach the Portal), use_webhook_off (the LINE Console switch is off), unreachable (LINE could not deliver; webhook_detail has its reason), other_endpoint (the channel already sends elsewhere and was left alone; webhook_detail has that URL) or unavailable (could not be checked: set it by hand). Open.
webhook_urlstring または null必須The webhook the Portal pointed the channel at.