Channels

Connect a new channel account

Closed on purpose. A channel account only gets created by finishing a verified provider flow, so posting credentials straight here always returns 400. Use the connect flow for that channel.

Session-only. This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

post/api/channels

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/channels
  • Auth: API key in cookie luca.session_token

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

channel'telegram' | 'instagram' | 'messenger' | 'whatsapp' required
externalAccountIdstring required
encryptedCredentialsstring required

Response

ok

idstring uuid required
channel'telegram' | 'instagram' | 'messenger' | 'whatsapp' required
externalAccountIdstring required
displayNamestring
status'connected' | 'disconnected' | 'paused' | 'suspended' | 'reconnect_required' required
aiDmAutoSendEnabledboolean required
aiDmAutoSendActiveboolean required
connectedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.