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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json ChatConnectionTest または object |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
ChatConnectionTest
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string または null | 必須 | The bot account's name on LINE. |
failure | string または null | 必須 | Why it is not connected: missing_channel_secret, missing_access_token or the reason LINE gave; null when connected. |
is_connected | boolean | 必須 | True when the stored credentials work and belong to the channel's LINE account. |
provider_user_id | string または null | 必須 | LINE's own id of the channel's bot account. |
webhook_detail | string または null | 必須 | |
webhook_status | string または 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_url | string または null | 必須 | The webhook the Portal pointed the channel at. |