Push Contacts
curl --request POST \
--url https://api.example.com/api/contacts/pushimport requests
url = "https://api.example.com/api/contacts/push"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/contacts/push', 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.example.com/api/contacts/push",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/contacts/push"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/api/contacts/push")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/contacts/push")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyContacts
Push Contacts
Create or update contacts by phone number
POST
/
api
/
contacts
/
push
Push Contacts
curl --request POST \
--url https://api.example.com/api/contacts/pushimport requests
url = "https://api.example.com/api/contacts/push"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/contacts/push', 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.example.com/api/contacts/push",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/contacts/push"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/api/contacts/push")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/contacts/push")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySends one contact or a list. A contact whose phone number already exists in the workspace is updated; otherwise it’s created. This is the easiest way to keep the Orova AI Platform in step with your CRM.
Needs the
Lists of 50 or more come back as counts:
Request
curl -X POST "https://platform.orova.ai/api/contacts/push?workspaceId=WORKSPACE_ID" \
-H "x-api-key: osk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '[
{ "contactName": "John Smith", "phoneNumber": "+12025551234", "accountNumber": "ACC-001" },
{ "contactName": "Jane Doe", "phoneNumber": "+442071234567", "city": "London" }
]'
api_write scope. Sending more than one contact at once is an import: it needs a plan that includes contact import. One contact at a time works on every plan.
Body
One object, or an array of objects, with the fields from Create Contact (workspaceId is optional here). Any other field is saved as a custom field and can be used in prompts as {{fieldName}}.
Response
One contact: the saved contact. A list: a summary.{
"total": 2,
"created": 2,
"results": [
{ "success": true, "_id": "6650f3e4a1b2c3d4e5f6071a", "contactName": "John Smith", "phoneNumber": "+12025551234" },
{ "success": true, "_id": "6650f3e4a1b2c3d4e5f6071b", "contactName": "Jane Doe", "phoneNumber": "+442071234567" }
]
}
total, created, updated, errors.Was this page helpful?

