Telegram

Initialize Session

Creates an authentication session for Telegram.

To create a new connection, provide one of (auth_type=code & phone) or (auth_type=qr).

To authenticate with an existing connection, provide connection_id & auth_type=code|qr.

post/companies/{company_id}/telegram/init

Request

  • Base URL: https://api.radist.online/v2
  • URL: https://api.radist.online/v2/companies/{company_id}/telegram/init
  • Auth: one of:
    • API key in header X-Api-Key
    • OAuth 2 (password, token URL https://auth.radist.online/auth/realms/radist/protocol/openid-connect/token)

Path parameters

company_idinteger required

Request body

auth_type'qr' | 'code'
phonestring nullable
connection_idinteger nullable

Response

Successful Response

session_idstring required
status'authenticated' | 'waiting_for_qr' | 'waiting_for_code' | 'waiting_for_password' required

Changes

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