Integrations
Create a new Twilio integration for the authenticated team.
Assets
Voice Deployment Logs
Voice Deployments
Flows
Integrations
Tests
Voice V1 Deployments
- GETGet all voice v1 deployments for a worker
- POSTCreate a new voice v1 deployment
- GETGet a single voice v1 deployment
- PUTUpdate a voice v1 deployment
- DELDelete a voice v1 deployment
- POSTCreate a new campaign for a voice v1 deployment
- POSTMake batch calls for a voice v1 deployment
- POSTRun a campaign with provided data
- GETGet a campaign by ID
- GETGet specific campaign data by ID
- PUTUpdate specific campaign data by ID
Integrations
Create a new Twilio integration for the authenticated team.
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
API key authentication
Body
application/json
Twilio integration configuration details.
The body is of type object
.
Response
201
application/json
Twilio integration created successfully.
The response is of type object
.
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>"
}