VK Direct

Initialize Session

Start a new VK Direct QR login session.

If connection_id is provided and the connection already has a valid device_id, the existing device_id is reused (so the same VK account can re-authenticate without losing its identity). Otherwise a fresh device_id + session_uuid are generated.

Returns session_id=session_uuid — the client uses this opaque token to poll /login. The internal device_id is never exposed to the client.

Returns a QR code (PNG data URI) to show to the user.

post/companies/{company_id}/vk_direct/init

Request

  • Base URL: https://api.radist.online/v2
  • URL: https://api.radist.online/v2/companies/{company_id}/vk_direct/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

connection_idinteger nullable

Response

Successful Response

session_idstring required
status'authenticated' | 'waiting_for_qr_scan' | 'need_refresh_qr' | 'need_validation_code' required

Changes

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