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.listPhoneNumbers();
console.log(response);
[
{
"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"
}
]
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.listPhoneNumbers();
console.log(response);
[
{
"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"
}
]
API key authentication
Filter phone numbers by integration id.
List of phone numbers.
The response is of type object[]
.