Get Bitrix24 Address BX24.getDomain
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize 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 |
Description |
|
result |
The Bitrix24 domain without ports |
Continue Learning
Copied
Previous