Link Resources
Create a new link resource
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
Link Resources
Create a new link resource
POST
/
api
/
workers
/
{workerId}
/
resources
/
link
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
)
resource = client.workers.resources.link.create(
worker_id="workerId",
name="name",
raw_link="rawLink",
update_frequency="updateFrequency",
)
print(resource.id)
{
"id": "<string>",
"ragType": "FILE",
"lastUpdated": "2023-11-07T05:31:56Z",
"updateFrequency": "<string>",
"rawLink": "<string>",
"key": "<string>",
"s3FilePath": "<string>",
"imageS3FilePath": "<string>",
"signedS3FilePath": "<string>",
"numScrolls": 123,
"fileName": "<string>",
"mimeType": "<string>",
"status": "<string>",
"size": 123,
"uploadedAt": "2023-11-07T05:31:56Z"
}
Authorizations
API key authentication
Path Parameters
Body
application/json
Response
201
application/json
Link resource created
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
)
resource = client.workers.resources.link.create(
worker_id="workerId",
name="name",
raw_link="rawLink",
update_frequency="updateFrequency",
)
print(resource.id)
{
"id": "<string>",
"ragType": "FILE",
"lastUpdated": "2023-11-07T05:31:56Z",
"updateFrequency": "<string>",
"rawLink": "<string>",
"key": "<string>",
"s3FilePath": "<string>",
"imageS3FilePath": "<string>",
"signedS3FilePath": "<string>",
"numScrolls": 123,
"fileName": "<string>",
"mimeType": "<string>",
"status": "<string>",
"size": 123,
"uploadedAt": "2023-11-07T05:31:56Z"
}