POST
/
api
/
team
/
integrations
/
twilio
/
create
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
)
integration = client.team.integrations.twilio.create(
    account_sid="accountSid",
    auth_token="authToken",
)
print(integration.id)
{
  "id": "<string>",
  "appType": "<string>",
  "config": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "teamId": "<string>",
  "workerId": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication

Body

application/json
Twilio integration configuration details.
accountSid
string
required
authToken
string
required

Provide the plain text auth token. It will be encrypted before being stored.

Response

201
application/json
Twilio integration created successfully.
id
string
required
appType
string
required
config
object
required
createdAt
string
required
updatedAt
string
required
teamId
string | null
workerId
string | null