Create an account
curl --request POST \
--url https://functions.siro.ai/api-externalApi/v1/integrations/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "<string>",
"latitude": 123,
"longitude": 123,
"name": "<string>",
"phoneNumbers": [
"<string>"
],
"emailAddresses": [
"<string>"
],
"addresses": [
{
"country": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
]
}
'import requests
url = "https://functions.siro.ai/api-externalApi/v1/integrations/accounts"
payload = {
"externalId": "<string>",
"latitude": 123,
"longitude": 123,
"name": "<string>",
"phoneNumbers": ["<string>"],
"emailAddresses": ["<string>"],
"addresses": [
{
"country": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: '<string>',
latitude: 123,
longitude: 123,
name: '<string>',
phoneNumbers: ['<string>'],
emailAddresses: ['<string>'],
addresses: [
{
country: '<string>',
street: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
}
]
})
};
fetch('https://functions.siro.ai/api-externalApi/v1/integrations/accounts', 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/integrations/accounts",
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([
'externalId' => '<string>',
'latitude' => 123,
'longitude' => 123,
'name' => '<string>',
'phoneNumbers' => [
'<string>'
],
'emailAddresses' => [
'<string>'
],
'addresses' => [
[
'country' => '<string>',
'street' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>'
]
]
]),
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/integrations/accounts"
payload := strings.NewReader("{\n \"externalId\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"phoneNumbers\": [\n \"<string>\"\n ],\n \"emailAddresses\": [\n \"<string>\"\n ],\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://functions.siro.ai/api-externalApi/v1/integrations/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"externalId\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"phoneNumbers\": [\n \"<string>\"\n ],\n \"emailAddresses\": [\n \"<string>\"\n ],\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://functions.siro.ai/api-externalApi/v1/integrations/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalId\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"phoneNumbers\": [\n \"<string>\"\n ],\n \"emailAddresses\": [\n \"<string>\"\n ],\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"externalId": "<string>",
"addresses": [
null
],
"createdAt": "<string>",
"updatedAt": "<string>",
"latitude": 123,
"longitude": 123,
"phoneNumbers": [
"<string>"
],
"emailAddresses": [
"<string>"
],
"name": "<string>"
}Accounts
Create an account
Create an account
POST
/
v1
/
integrations
/
accounts
Create an account
curl --request POST \
--url https://functions.siro.ai/api-externalApi/v1/integrations/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "<string>",
"latitude": 123,
"longitude": 123,
"name": "<string>",
"phoneNumbers": [
"<string>"
],
"emailAddresses": [
"<string>"
],
"addresses": [
{
"country": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
]
}
'import requests
url = "https://functions.siro.ai/api-externalApi/v1/integrations/accounts"
payload = {
"externalId": "<string>",
"latitude": 123,
"longitude": 123,
"name": "<string>",
"phoneNumbers": ["<string>"],
"emailAddresses": ["<string>"],
"addresses": [
{
"country": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: '<string>',
latitude: 123,
longitude: 123,
name: '<string>',
phoneNumbers: ['<string>'],
emailAddresses: ['<string>'],
addresses: [
{
country: '<string>',
street: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
}
]
})
};
fetch('https://functions.siro.ai/api-externalApi/v1/integrations/accounts', 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/integrations/accounts",
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([
'externalId' => '<string>',
'latitude' => 123,
'longitude' => 123,
'name' => '<string>',
'phoneNumbers' => [
'<string>'
],
'emailAddresses' => [
'<string>'
],
'addresses' => [
[
'country' => '<string>',
'street' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>'
]
]
]),
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/integrations/accounts"
payload := strings.NewReader("{\n \"externalId\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"phoneNumbers\": [\n \"<string>\"\n ],\n \"emailAddresses\": [\n \"<string>\"\n ],\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://functions.siro.ai/api-externalApi/v1/integrations/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"externalId\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"phoneNumbers\": [\n \"<string>\"\n ],\n \"emailAddresses\": [\n \"<string>\"\n ],\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://functions.siro.ai/api-externalApi/v1/integrations/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"externalId\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"phoneNumbers\": [\n \"<string>\"\n ],\n \"emailAddresses\": [\n \"<string>\"\n ],\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"street\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"externalId": "<string>",
"addresses": [
null
],
"createdAt": "<string>",
"updatedAt": "<string>",
"latitude": 123,
"longitude": 123,
"phoneNumbers": [
"<string>"
],
"emailAddresses": [
"<string>"
],
"name": "<string>"
}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
Response
200 - application/json
Create an account
The ID of the account in the external system (e.g. Salesforce)
The date the account was created
The date the account was last updated
⌘I