Assign a user to a conversation by phone number
curl --request POST \
--url https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign \
--header 'Content-Type: application/json' \
--header 'x-organization-id: <api-key>' \
--data '
{
"phoneNumber": "<string>",
"userId": "<string>",
"userName": "<string>",
"actorId": "<string>",
"actorName": "<string>",
"replaceExisting": true
}
'import requests
url = "https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign"
payload = {
"phoneNumber": "<string>",
"userId": "<string>",
"userName": "<string>",
"actorId": "<string>",
"actorName": "<string>",
"replaceExisting": True
}
headers = {
"x-organization-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-organization-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '<string>',
userId: '<string>',
userName: '<string>',
actorId: '<string>',
actorName: '<string>',
replaceExisting: true
})
};
fetch('https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign', 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://smartsend-server.otherwise.co.il/integrations/make/conversations/assign",
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([
'phoneNumber' => '<string>',
'userId' => '<string>',
'userName' => '<string>',
'actorId' => '<string>',
'actorName' => '<string>',
'replaceExisting' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-organization-id: <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://smartsend-server.otherwise.co.il/integrations/make/conversations/assign"
payload := strings.NewReader("{\n \"phoneNumber\": \"<string>\",\n \"userId\": \"<string>\",\n \"userName\": \"<string>\",\n \"actorId\": \"<string>\",\n \"actorName\": \"<string>\",\n \"replaceExisting\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-organization-id", "<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://smartsend-server.otherwise.co.il/integrations/make/conversations/assign")
.header("x-organization-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phoneNumber\": \"<string>\",\n \"userId\": \"<string>\",\n \"userName\": \"<string>\",\n \"actorId\": \"<string>\",\n \"actorName\": \"<string>\",\n \"replaceExisting\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-organization-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phoneNumber\": \"<string>\",\n \"userId\": \"<string>\",\n \"userName\": \"<string>\",\n \"actorId\": \"<string>\",\n \"actorName\": \"<string>\",\n \"replaceExisting\": true\n}"
response = http.request(request)
puts response.read_bodyMake.com Integration
Assign a user to a conversation by phone number
Assigns the specified user to the conversation. By default this is a replace operation — every other user currently assigned is removed so only the target user remains. Set replaceExisting: false to append the user alongside existing assignments instead.
POST
/
integrations
/
make
/
conversations
/
assign
Assign a user to a conversation by phone number
curl --request POST \
--url https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign \
--header 'Content-Type: application/json' \
--header 'x-organization-id: <api-key>' \
--data '
{
"phoneNumber": "<string>",
"userId": "<string>",
"userName": "<string>",
"actorId": "<string>",
"actorName": "<string>",
"replaceExisting": true
}
'import requests
url = "https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign"
payload = {
"phoneNumber": "<string>",
"userId": "<string>",
"userName": "<string>",
"actorId": "<string>",
"actorName": "<string>",
"replaceExisting": True
}
headers = {
"x-organization-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-organization-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '<string>',
userId: '<string>',
userName: '<string>',
actorId: '<string>',
actorName: '<string>',
replaceExisting: true
})
};
fetch('https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign', 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://smartsend-server.otherwise.co.il/integrations/make/conversations/assign",
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([
'phoneNumber' => '<string>',
'userId' => '<string>',
'userName' => '<string>',
'actorId' => '<string>',
'actorName' => '<string>',
'replaceExisting' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-organization-id: <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://smartsend-server.otherwise.co.il/integrations/make/conversations/assign"
payload := strings.NewReader("{\n \"phoneNumber\": \"<string>\",\n \"userId\": \"<string>\",\n \"userName\": \"<string>\",\n \"actorId\": \"<string>\",\n \"actorName\": \"<string>\",\n \"replaceExisting\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-organization-id", "<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://smartsend-server.otherwise.co.il/integrations/make/conversations/assign")
.header("x-organization-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phoneNumber\": \"<string>\",\n \"userId\": \"<string>\",\n \"userName\": \"<string>\",\n \"actorId\": \"<string>\",\n \"actorName\": \"<string>\",\n \"replaceExisting\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://smartsend-server.otherwise.co.il/integrations/make/conversations/assign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-organization-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phoneNumber\": \"<string>\",\n \"userId\": \"<string>\",\n \"userName\": \"<string>\",\n \"actorId\": \"<string>\",\n \"actorName\": \"<string>\",\n \"replaceExisting\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Your SmartSend Organization ID. Required on every request.
Body
application/json
When true (default), unassigns every other user before assigning the target user (replace). When false, leaves existing assignments intact and just adds the target user (append). If the target user is already assigned, this is a no-op.
Response
200
User assigned successfully
⌘I