data_sources
Get Data Source
agents
channels.twilio.numbers
agents.test
conversations
data_sources
events
incidents
insights
insights.folders
insights.workflows
insights.tools
custom_messages
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
data_sources
Get Data Source
Fetch a given data source, including its text.
GET
/
api
/
v1
/
data_sources
/
{data_source_id}
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.data_sources.get_by_id(data_source_id=931598)
# Handle response
print(res)
{
"name": "Rain",
"description": "Information about rain.",
"labels": [
"Weather Info"
],
"chunk": false,
"chunk_delimiter": "",
"id": 1,
"edit_comments": "Added new info",
"updated_at": "2023-11-07T05:31:56Z",
"last_updated_by": "user@email.com",
"text": "<string>"
}
Authorizations
Path Parameters
Response
200
application/json
Successful Response
Metadata about a data source, along with the text. A data source is a blob of text that can be made available to an agent's general info tools to provide more context to the agent when generating its responses. For more information, see Console docs.
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.data_sources.get_by_id(data_source_id=931598)
# Handle response
print(res)
{
"name": "Rain",
"description": "Information about rain.",
"labels": [
"Weather Info"
],
"chunk": false,
"chunk_delimiter": "",
"id": 1,
"edit_comments": "Added new info",
"updated_at": "2023-11-07T05:31:56Z",
"last_updated_by": "user@email.com",
"text": "<string>"
}