curl --request POST \
--url https://api.siro.ai/v1/core/recordings/upload \
--header 'Content-Type: application/json' \
--header 'x-siro-auth-token: <api-key>' \
--data '
{
"fileUrl": "<string>",
"fileType": "<string>",
"title": "<string>",
"userId": "<string>",
"userEmail": "<string>",
"userPhone": "<string>",
"organizationId": "<string>",
"conversationType": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"integrationConnectionId": "<string>",
"crmObjects": [
{
"objectId": "<string>"
}
],
"contactName": "<string>",
"contactPhone": "<string>"
}
'import requests
url = "https://api.siro.ai/v1/core/recordings/upload"
payload = {
"fileUrl": "<string>",
"fileType": "<string>",
"title": "<string>",
"userId": "<string>",
"userEmail": "<string>",
"userPhone": "<string>",
"organizationId": "<string>",
"conversationType": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"integrationConnectionId": "<string>",
"crmObjects": [{ "objectId": "<string>" }],
"contactName": "<string>",
"contactPhone": "<string>"
}
headers = {
"x-siro-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-siro-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileUrl: '<string>',
fileType: '<string>',
title: '<string>',
userId: '<string>',
userEmail: '<string>',
userPhone: '<string>',
organizationId: '<string>',
conversationType: '<string>',
dateCreated: '2023-11-07T05:31:56Z',
integrationConnectionId: '<string>',
crmObjects: [{objectId: '<string>'}],
contactName: '<string>',
contactPhone: '<string>'
})
};
fetch('https://api.siro.ai/v1/core/recordings/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.siro.ai/v1/core/recordings/upload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fileUrl' => '<string>',
'fileType' => '<string>',
'title' => '<string>',
'userId' => '<string>',
'userEmail' => '<string>',
'userPhone' => '<string>',
'organizationId' => '<string>',
'conversationType' => '<string>',
'dateCreated' => '2023-11-07T05:31:56Z',
'integrationConnectionId' => '<string>',
'crmObjects' => [
[
'objectId' => '<string>'
]
],
'contactName' => '<string>',
'contactPhone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-siro-auth-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.siro.ai/v1/core/recordings/upload"
payload := strings.NewReader("{\n \"fileUrl\": \"<string>\",\n \"fileType\": \"<string>\",\n \"title\": \"<string>\",\n \"userId\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userPhone\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"conversationType\": \"<string>\",\n \"dateCreated\": \"2023-11-07T05:31:56Z\",\n \"integrationConnectionId\": \"<string>\",\n \"crmObjects\": [\n {\n \"objectId\": \"<string>\"\n }\n ],\n \"contactName\": \"<string>\",\n \"contactPhone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-siro-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.siro.ai/v1/core/recordings/upload")
.header("x-siro-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fileUrl\": \"<string>\",\n \"fileType\": \"<string>\",\n \"title\": \"<string>\",\n \"userId\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userPhone\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"conversationType\": \"<string>\",\n \"dateCreated\": \"2023-11-07T05:31:56Z\",\n \"integrationConnectionId\": \"<string>\",\n \"crmObjects\": [\n {\n \"objectId\": \"<string>\"\n }\n ],\n \"contactName\": \"<string>\",\n \"contactPhone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siro.ai/v1/core/recordings/upload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-siro-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fileUrl\": \"<string>\",\n \"fileType\": \"<string>\",\n \"title\": \"<string>\",\n \"userId\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userPhone\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"conversationType\": \"<string>\",\n \"dateCreated\": \"2023-11-07T05:31:56Z\",\n \"integrationConnectionId\": \"<string>\",\n \"crmObjects\": [\n {\n \"objectId\": \"<string>\"\n }\n ],\n \"contactName\": \"<string>\",\n \"contactPhone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"recordingId": "<string>"
},
"cursor": "<string>",
"pageSize": 123,
"limit": 123,
"total": 123,
"hasNextPage": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"issues": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>",
"expected": "<string>",
"received": "<string>"
}
],
"name": "ZodError"
}{
"error": "<string>"
}Create a recording from a phone call
Creates a new recording from an external phone call source.
curl --request POST \
--url https://api.siro.ai/v1/core/recordings/upload \
--header 'Content-Type: application/json' \
--header 'x-siro-auth-token: <api-key>' \
--data '
{
"fileUrl": "<string>",
"fileType": "<string>",
"title": "<string>",
"userId": "<string>",
"userEmail": "<string>",
"userPhone": "<string>",
"organizationId": "<string>",
"conversationType": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"integrationConnectionId": "<string>",
"crmObjects": [
{
"objectId": "<string>"
}
],
"contactName": "<string>",
"contactPhone": "<string>"
}
'import requests
url = "https://api.siro.ai/v1/core/recordings/upload"
payload = {
"fileUrl": "<string>",
"fileType": "<string>",
"title": "<string>",
"userId": "<string>",
"userEmail": "<string>",
"userPhone": "<string>",
"organizationId": "<string>",
"conversationType": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"integrationConnectionId": "<string>",
"crmObjects": [{ "objectId": "<string>" }],
"contactName": "<string>",
"contactPhone": "<string>"
}
headers = {
"x-siro-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-siro-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileUrl: '<string>',
fileType: '<string>',
title: '<string>',
userId: '<string>',
userEmail: '<string>',
userPhone: '<string>',
organizationId: '<string>',
conversationType: '<string>',
dateCreated: '2023-11-07T05:31:56Z',
integrationConnectionId: '<string>',
crmObjects: [{objectId: '<string>'}],
contactName: '<string>',
contactPhone: '<string>'
})
};
fetch('https://api.siro.ai/v1/core/recordings/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.siro.ai/v1/core/recordings/upload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fileUrl' => '<string>',
'fileType' => '<string>',
'title' => '<string>',
'userId' => '<string>',
'userEmail' => '<string>',
'userPhone' => '<string>',
'organizationId' => '<string>',
'conversationType' => '<string>',
'dateCreated' => '2023-11-07T05:31:56Z',
'integrationConnectionId' => '<string>',
'crmObjects' => [
[
'objectId' => '<string>'
]
],
'contactName' => '<string>',
'contactPhone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-siro-auth-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.siro.ai/v1/core/recordings/upload"
payload := strings.NewReader("{\n \"fileUrl\": \"<string>\",\n \"fileType\": \"<string>\",\n \"title\": \"<string>\",\n \"userId\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userPhone\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"conversationType\": \"<string>\",\n \"dateCreated\": \"2023-11-07T05:31:56Z\",\n \"integrationConnectionId\": \"<string>\",\n \"crmObjects\": [\n {\n \"objectId\": \"<string>\"\n }\n ],\n \"contactName\": \"<string>\",\n \"contactPhone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-siro-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.siro.ai/v1/core/recordings/upload")
.header("x-siro-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fileUrl\": \"<string>\",\n \"fileType\": \"<string>\",\n \"title\": \"<string>\",\n \"userId\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userPhone\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"conversationType\": \"<string>\",\n \"dateCreated\": \"2023-11-07T05:31:56Z\",\n \"integrationConnectionId\": \"<string>\",\n \"crmObjects\": [\n {\n \"objectId\": \"<string>\"\n }\n ],\n \"contactName\": \"<string>\",\n \"contactPhone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siro.ai/v1/core/recordings/upload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-siro-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fileUrl\": \"<string>\",\n \"fileType\": \"<string>\",\n \"title\": \"<string>\",\n \"userId\": \"<string>\",\n \"userEmail\": \"<string>\",\n \"userPhone\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"conversationType\": \"<string>\",\n \"dateCreated\": \"2023-11-07T05:31:56Z\",\n \"integrationConnectionId\": \"<string>\",\n \"crmObjects\": [\n {\n \"objectId\": \"<string>\"\n }\n ],\n \"contactName\": \"<string>\",\n \"contactPhone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"recordingId": "<string>"
},
"cursor": "<string>",
"pageSize": 123,
"limit": 123,
"total": 123,
"hasNextPage": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"issues": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>",
"expected": "<string>",
"received": "<string>"
}
],
"name": "ZodError"
}{
"error": "<string>"
}Authorizations
OAuth access token for user-scoped requests (Authorization Code or machine-to-machine). Send header x-siro-auth-token: <oauth-access-token>. Not an organization API key.
Body
Download URL from the signed-urls endpoint (the downloadUrl returned by POST /v1/core/recordings/signed-urls).
File type (limited to mp3, aac, wav)
Title of the recording.
ID of the user who created the recording.
Email of the user who created the recording
Phone number of the user who created the recording
ID of the organization associated with the recording.
Conversation type for the recording to be analyzed against. Falls back to default conversation type
When the recording was created.
Integration Connection Id.
CRM objects to link to the recording.
Show child attributes
Show child attributes
Contact name for purposes of linking to CRM objects. Ignored if CRM objects are passed.
Contact phone number for purposes of linking to CRM objects. Ignored if CRM objects are passed.
closed, not closed, in progress