POST
/
api
/
team
/
assets
/
register_phone_number
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.team.assets.registerPhoneNumber({
  integrationId: 'integrationId',
  phoneNumber: 'phoneNumber',
});

console.log(response.id);
{
  "id": "<string>",
  "phoneNumber": "<string>",
  "provider": "<string>",
  "integrationId": "<string>",
  "workerId": "<string>",
  "teamId": "<string>",
  "countryCode": "<string>",
  "callerName": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

API key authentication

Body

application/json

Response

201
application/json

Phone number registered successfully.

The response is of type object.