Deskhero Developer Hub
Back to deskhero.com
Web socket

Init anonymous

Same as the authenticated init but for guests, such as the chat widget: the pending connection is registered against the tenant in the URL with no User attached, and a fresh one is created on every call. The caller's IP is recorded on the connection, and when an Origin or Referer header is present it has to be a Deskhero domain.

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/web_socket/init_anonymous
Authorisation
No authentication needed

Request arguments

Name Type Source
Request body example
No input arguments

Response

Status
200 (OK)
Type
DTO_web_socket_init
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_web_socket_init
NameTypeReadOnlyDescription
dh_tokenStringReadOnlyDh token
socket_urlStringReadOnlySocket url

Generated Aug 4, 2026 18:37