Get a code to link your LINE account.
POST/api/v1/chat-channels/{chat_channel_id}/pairchat_channels:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | chat_channels:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | pair_chat_channel |
| Portal の権限 | create_channel_pairing_codes |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
chat_channel_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json ChatPairingCode または 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 | conflict, 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 のコードです。各コードからそのページに移動できます。
スキーマ
ChatPairingCode
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
command | string | 必須 | The message to send to the channel: link <pairing_code>. |
expires_at | string (date-time) | 必須 | |
pairing_code | string | 必須 | The code the person sends to the channel. |