Skip to main content

Invite an external user to link LINE on a channel.

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

Makes a one-time LINE link for an external user (an applicant) of an external_customer channel: opening it types link <code> into the channel's chat. The answer holds a live pairing code, so the link is shown once and cannot be read back; it expires (expires_at). Needs Create Chat Channel Invites.

Scopechat_channels:write (sensitive)
AsynchronousNo
MCP toolinvite_chat_channel
Portal permissionscreate_chat_channel_invites

Parameters​

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

Request body​

Content typeType
application/jsonChatInviteRequestInput

Responses​

StatusDescriptionBody
200Success.application/json ChatInvite or object
400invalid_version, malformed_jsonapplication/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
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/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​

ChatInvite​

FieldTypeRequiredDescription
commandstringRequiredThe message that links the account: link followed by the live pairing code.
expires_atstring (date-time)Required
invite_urlstringRequiredA LINE link that opens the channel's chat with the link command typed. Send it to the person: whoever holds it can link a LINE account to them until it is used or expires.

ChatInviteRequestInput​

FieldTypeRequiredDescription
user_idstringRequiredThe external user (an applicant) to invite: a user of the organisation that is not staff.