POST
/
api
/
team
/
assets
/
register_phone_number
import os
from brainbase_labs import BrainbaseLabs

client = BrainbaseLabs(
    api_key=os.environ.get("BRAINBASE_LABS_API_KEY"),  # This is the default and can be omitted
)
response = client.team.assets.register_phone_number(
    integration_id="integrationId",
    phone_number="phoneNumber",
)
print(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
phoneNumber
string
required
integrationId
string
required

Response

201
application/json
Phone number registered successfully.
id
string
required
phoneNumber
string
required
provider
string
required
integrationId
string
required
createdAt
string
required
updatedAt
string
required
workerId
string | null
teamId
string | null
countryCode
string | null
callerName
string | null
metadata
object | null