Skip to main content

Test a LINE channel's connection.

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

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.

Scopechat_channels:write (sensitive)
AsynchronousNo
MCP tooltest_chat_channel
Portal permissionstest_chat_channels

Parameters​

NameInTypeRequiredDescription
chat_channel_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
200Success.application/json ChatConnectionTest or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ChatConnectionTest​

FieldTypeRequiredDescription
display_namestring or nullRequiredThe bot account's name on LINE.
failurestring or nullRequiredWhy it is not connected: missing_channel_secret, missing_access_token or the reason LINE gave; null when connected.
is_connectedbooleanRequiredTrue when the stored credentials work and belong to the channel's LINE account.
provider_user_idstring or nullRequiredLINE's own id of the channel's bot account.
webhook_detailstring or nullRequired
webhook_statusstring or nullRequiredactive (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 or nullRequiredThe webhook the Portal pointed the channel at.