Skip to main content

Get a code to link your LINE account.

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

A one-time code, valid for ten minutes, that the person sends to the staff channel as link <pairing_code> to link their LINE account to their Docwize user. Needs Create Channel Pairing Codes for an active internal user. The channel must be enabled, and the account must not already be linked to it.

Scopechat_channels:write (sensitive)
AsynchronousNo
MCP toolpair_chat_channel
Portal permissionscreate_channel_pairing_codes

Parameters​

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

Responses​

StatusDescriptionBody
200Success.application/json ChatPairingCode 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
409conflict, idempotency_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​

ChatPairingCode​

FieldTypeRequiredDescription
commandstringRequiredThe message to send to the channel: link <pairing_code>.
expires_atstring (date-time)Required
pairing_codestringRequiredThe code the person sends to the channel.