Get Bitrix24 Address BX24.getDomain

Choose a tool for developing with an AI agent:

  • use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
  • use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation

The method BX24.getDomain returns the value of PARAMS.DOMAIN, which is stored during the library initialization. This is the domain of the current Bitrix24.

String BX24.getDomain()
        

Parameters

No parameters.

Code Example

How to Use Examples in Documentation

BX24.init(function () {
            const domain = BX24.getDomain();
            console.log(domain);
        });
        

Response Handling

The method synchronously returns a result of type string.

Returned Data

Name
type

Description

result
string

The Bitrix24 domain without ports 80 and 443, for example mycompany.bitrix24.com

Continue Learning