We are still updating this page. Some data may be missing here — we will complete it shortly.
Overview
Use HealthCheck.make() to check the availability of Bitrix24 REST API. The method returns a Promise with a boolean value indicating API availability.
// Basic usage
const isHealthy = await $b24.tools.healthCheck.make()
if (isHealthy) {
console.log('Bitrix24 API is available')
} else {
console.error('Problems accessing Bitrix24 API')
}
Method Signature
make(
options?: { requestId?: string }
): Promise<boolean>
Parameters
Return Value
Promise<boolean> — a promise that resolves to a boolean value:
true— REST API is available and responding, webhook is configured correctly.false— REST API is unavailable, an error occurred, or necessary access rights are missing.
Examples
Availability check
Alternatives and Recommendations
BatchByChunk
Method for executing batch requests with automatic chunking for any number of commands. Automatically splits large command sets into batches of 50 and executes them sequentially. Use only arrays of tuples or arrays of objects.
Ping
Method for measuring Bitrix24 REST API response speed. Performs a test request and returns response time in milliseconds.