Upsert Salesforce integration authentication details
curl --request PUT \
--url https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"namespace": "<string>",
"org_id": "<string>",
"instance_url": "<string>",
"refresh_token": "",
"username": "<string>",
"is_prod": true,
"use_prod_eca": true
}
'import requests
url = "https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce"
payload = {
"namespace": "<string>",
"org_id": "<string>",
"instance_url": "<string>",
"refresh_token": "",
"username": "<string>",
"is_prod": True,
"use_prod_eca": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
namespace: '<string>',
org_id: '<string>',
instance_url: '<string>',
refresh_token: '',
username: '<string>',
is_prod: true,
use_prod_eca: true
})
};
fetch('https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce', 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://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce",
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([
'namespace' => '<string>',
'org_id' => '<string>',
'instance_url' => '<string>',
'refresh_token' => '',
'username' => '<string>',
'is_prod' => true,
'use_prod_eca' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce"
payload := strings.NewReader("{\n \"namespace\": \"<string>\",\n \"org_id\": \"<string>\",\n \"instance_url\": \"<string>\",\n \"refresh_token\": \"\",\n \"username\": \"<string>\",\n \"is_prod\": true,\n \"use_prod_eca\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"namespace\": \"<string>\",\n \"org_id\": \"<string>\",\n \"instance_url\": \"<string>\",\n \"refresh_token\": \"\",\n \"username\": \"<string>\",\n \"is_prod\": true,\n \"use_prod_eca\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"namespace\": \"<string>\",\n \"org_id\": \"<string>\",\n \"instance_url\": \"<string>\",\n \"refresh_token\": \"\",\n \"username\": \"<string>\",\n \"is_prod\": true,\n \"use_prod_eca\": true\n}"
response = http.request(request)
puts response.read_body{
"integrationConnectionId": "<string>",
"isActive": true
}Integration Connections
Upsert Salesforce integration authentication details
Upsert Salesforce integration authentication details
PUT
/
v1
/
core
/
integrations
/
salesforce
Upsert Salesforce integration authentication details
curl --request PUT \
--url https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"namespace": "<string>",
"org_id": "<string>",
"instance_url": "<string>",
"refresh_token": "",
"username": "<string>",
"is_prod": true,
"use_prod_eca": true
}
'import requests
url = "https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce"
payload = {
"namespace": "<string>",
"org_id": "<string>",
"instance_url": "<string>",
"refresh_token": "",
"username": "<string>",
"is_prod": True,
"use_prod_eca": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
namespace: '<string>',
org_id: '<string>',
instance_url: '<string>',
refresh_token: '',
username: '<string>',
is_prod: true,
use_prod_eca: true
})
};
fetch('https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce', 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://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce",
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([
'namespace' => '<string>',
'org_id' => '<string>',
'instance_url' => '<string>',
'refresh_token' => '',
'username' => '<string>',
'is_prod' => true,
'use_prod_eca' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce"
payload := strings.NewReader("{\n \"namespace\": \"<string>\",\n \"org_id\": \"<string>\",\n \"instance_url\": \"<string>\",\n \"refresh_token\": \"\",\n \"username\": \"<string>\",\n \"is_prod\": true,\n \"use_prod_eca\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"namespace\": \"<string>\",\n \"org_id\": \"<string>\",\n \"instance_url\": \"<string>\",\n \"refresh_token\": \"\",\n \"username\": \"<string>\",\n \"is_prod\": true,\n \"use_prod_eca\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://functions.siro.ai/api-externalApi/v1/core/integrations/salesforce")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"namespace\": \"<string>\",\n \"org_id\": \"<string>\",\n \"instance_url\": \"<string>\",\n \"refresh_token\": \"\",\n \"username\": \"<string>\",\n \"is_prod\": true,\n \"use_prod_eca\": true\n}"
response = http.request(request)
puts response.read_body{
"integrationConnectionId": "<string>",
"isActive": true
}Authorizations
Organization integration token from Siro admin (Person icon → API Tokens). Send Authorization: Bearer . This is not the OAuth access token used with api.siro.ai user-scoped endpoints.
Body
application/json
⌘I