Create or replace the CRM link on a recording
curl --request PUT \
--url https://api.siro.ai/v1/core/recordings/{id}/link \
--header 'Content-Type: application/json' \
--header 'x-siro-auth-token: <api-key>' \
--data '
{
"id": "<string>",
"externalId": "<string>",
"integrationConnectionId": "<string>"
}
'import requests
url = "https://api.siro.ai/v1/core/recordings/{id}/link"
payload = {
"id": "<string>",
"externalId": "<string>",
"integrationConnectionId": "<string>"
}
headers = {
"x-siro-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-siro-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', externalId: '<string>', integrationConnectionId: '<string>'})
};
fetch('https://api.siro.ai/v1/core/recordings/{id}/link', 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/{id}/link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'externalId' => '<string>',
'integrationConnectionId' => '<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/{id}/link"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"integrationConnectionId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.siro.ai/v1/core/recordings/{id}/link")
.header("x-siro-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"integrationConnectionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siro.ai/v1/core/recordings/{id}/link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-siro-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"integrationConnectionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"externalId": "<string>",
"dataType": "ACCOUNT",
"name": "<string>",
"lastActivityAt": "<string>"
},
"cursor": "<string>",
"pageSize": 123,
"limit": 123,
"total": 123,
"hasNextPage": true
}Recordings
Create or replace CRM link on a recording
Links the recording to a CRM Account, Contact, Lead, Opportunity, or Engagement (server clears prior links as needed).
PUT
/
v1
/
core
/
recordings
/
{id}
/
link
Create or replace the CRM link on a recording
curl --request PUT \
--url https://api.siro.ai/v1/core/recordings/{id}/link \
--header 'Content-Type: application/json' \
--header 'x-siro-auth-token: <api-key>' \
--data '
{
"id": "<string>",
"externalId": "<string>",
"integrationConnectionId": "<string>"
}
'import requests
url = "https://api.siro.ai/v1/core/recordings/{id}/link"
payload = {
"id": "<string>",
"externalId": "<string>",
"integrationConnectionId": "<string>"
}
headers = {
"x-siro-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-siro-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', externalId: '<string>', integrationConnectionId: '<string>'})
};
fetch('https://api.siro.ai/v1/core/recordings/{id}/link', 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/{id}/link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'externalId' => '<string>',
'integrationConnectionId' => '<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/{id}/link"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"integrationConnectionId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.siro.ai/v1/core/recordings/{id}/link")
.header("x-siro-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"integrationConnectionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siro.ai/v1/core/recordings/{id}/link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-siro-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"integrationConnectionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"externalId": "<string>",
"dataType": "ACCOUNT",
"name": "<string>",
"lastActivityAt": "<string>"
},
"cursor": "<string>",
"pageSize": 123,
"limit": 123,
"total": 123,
"hasNextPage": true
}Path parameter
id: Siro’s internal recording id (from recording list/detail APIs). It is not a CRM external id.
Request body — pick one way to point at the CRM row
- Siro internal id: set
idto the integrations DB id of the Account, Contact, Lead, Opportunity, or Engagement (the synced CRM row’s primary key in Siro—not a Siro User id). Do not sendexternalIdorintegrationConnectionId. - CRM-native id: set
externalIdto the id in the source CRM andintegrationConnectionIdto the Siro integration connection for that tenant. Do not sendid.
dataType (ACCOUNT, CONTACT, LEAD, OPPORTUNITY, or ENGAGEMENT). trigger is optional; allowed values appear in the request schema below.
Validation (typical 422) The API rejects the body if you send both id and externalId, neither, or externalId without a non-empty integrationConnectionId.
Examples
{
"dataType": "ACCOUNT",
"id": "01HZX0M4K3N7Q2V8R9T0Y1A2B3C"
}
{
"dataType": "OPPORTUNITY",
"externalId": "006xx0000123456",
"integrationConnectionId": "01HABCD1234567890EFGHIJKLMN"
}
Authorizations
Access token from POST https://auth.siro.ai/oauth2/token (client_credentials), or a Siro OAuth access token. Send x-siro-auth-token: <access-token>.
Path Parameters
Body
application/json
The path parameter identifies the recording. In the JSON body, identify the CRM entity using either (1) id — Siro's internal database id for that Account, Contact, Lead, Opportunity, or Engagement, or (2) externalId with integrationConnectionId — the CRM-native id plus the Siro integration connection that owns it. Send exactly one of id or externalId (not both, not neither).
Recording Link trigger
Available options:
FUZZY_MATCH_RECORDINGS_FOR_ENGAGEMENT, FUZZY_MATCH_ENGAGEMENTS_FOR_RECORDING, FUZZY_MATCH_RECORDINGS_FOR_OPPORTUNITY, FUZZY_MATCH_OPPORTUNITIES_FOR_RECORDING, END_RECORDING_SHADOW, OPPORTUNITY_DEEPLINK_ADMIN, OPPORTUNITY_DEEPLINK, CRM_DEEPLINK, AUDIO_UPLOAD_DEEPLINK, CONTACT_MATCH_AUDIO_UPLOAD, USER_LINK_WEB, USER_LINK_MOBILE, USER_LINK_WEB_FUZZY_MATCH_CONFIRMED, USER_LINK_MOBILE_FUZZY_MATCH_CONFIRMED, USER_LINK_POST_RECORDING, USER_UNLINK, USER_APPOINTMENT_LIST, CALENDAR_MATCH, EXTERNAL_API_LINK, RECORDING_HARD_DELETED