Upload Insights Upload Folder
/api/v1/insights/folders/{folder_id}/upload-fileAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
folder_id
integer
path
required
Query parameters
call_id
string
query
required
A unique identifier for the call
agent_number
string | null
query
optional
The phone number or ID of the agent involved.
customer_number
string | null
query
optional
The phone number or ID of the customer.
start_time
string (date-time) | null
query
optional
The timestamp of the call's beginning
end_time
string (date-time) | null
query
optional
The timestamp of the call's end.
duration
number | null
query
optional
The call duration in seconds.
metadata
string | null
query
optional
Request body
multipart/form-data
body
Body_insights_folder_upload_file
optional
1 field
filestring (binary)optionalRequest example
{
"file": "string"
}Responses
200Successful Response
application/json
response
InsightsUploadFile
required
13 fields
idintegerrequiredSystem-assigned ID for the upload file
folder_idintegerrequiredSystem-assigned ID for the folder to which the file belongs
filenamestringrequiredName of the uploaded file
object_keystringrequiredObject-store key of the uploaded file
call_idstring | nulloptionalUnique identifier for the call associated with the uploaded file
agent_numberstring | nulloptionalAgent number associated with the uploaded file
customer_numberstring | nulloptionalCustomer number associated with the uploaded file
durationnumber | nulloptionalLength in seconds of the uploaded recording
start_timestring (date-time) | nulloptionalStart time of the uploaded file
end_timestring (date-time) | nulloptionalEnd time of the uploaded file
error_messagestring | nulloptionalError message associated with the uploaded file
metadataobject | nulloptionalMeta-data associated with the uploaded file
1 options
{key}string | integer | numberoptional3 options
Option 1stringoptionalOption 2integeroptionalOption 3numberoptionalcreated_atstring (date-time)optionalTimestamp at which insight upload file was created
Response example
{
"id": 0,
"folder_id": 0,
"filename": "string",
"object_key": "string",
"call_id": "string",
"agent_number": "string",
"customer_number": "string",
"duration": "string",
"start_time": "string",
"end_time": "string",
"error_message": "string",
"metadata": "string",
"created_at": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
