GET
/
api
/
team
/
assets
/
phone_numbers
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"
  }
]

Authorizations

x-api-key
string
header
required

API key authentication

Query Parameters

integrationId
string

Filter phone numbers by integration id.

Response

200
application/json

List of phone numbers.

The response is of type object[].