Skip to main content
POST
/
api
/
workers
/
check-callable
JavaScript
import BrainbaseLabs from 'brainbase-labs';

const client = new BrainbaseLabs({
  apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});

const response = await client.workers.checkCallable({
  phoneNumber: '+1 (954) 580-2181',
  timestamp: 1730822400,
});

console.log(response.callable);
{
  "callable": true
}

Authorizations

x-api-key
string
header
required

API key authentication

Body

application/json
phoneNumber
string
required

The phone number to check (accepts any format - will be normalized)

Example:

"+1 (954) 580-2181"

timestamp
number
required

Unix timestamp in seconds (UTC). Will be converted to the business hours timezone.

Example:

1730822400

Response

Callable status

callable
boolean

Whether the phone number is callable at the given time