Integra le funzionalità di SyBox nei tuoi sistemi ERP, CRM e gestionali aziendali con le nostre API REST e webhook ad elevate prestazioni.
022. Invio Messaggi WhatsApp & Omnicanale
Invia messaggi di testo, immagini, documenti e modelli approvati Meta tramite le nostre rotte REST.
cURL
curl -X POST https://api.smartsybox.com/v26.0/PHONE_NUMBER_ID/messages \
-H "Authorization: Bearer YOUR_DEVICE_KEY" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"to": "15551234567",
"type": "text",
"text": { "body": "Hello from SyBox 👋" }
}'
C# · HttpClient
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "YOUR_DEVICE_KEY");
string json = @"{
""messaging_product"": ""whatsapp"",
""to"": ""15551234567"",
""type"": ""text"",
""text"": { ""body"": ""Hello from SyBox"" }
}";
var res = await http.PostAsync(
"https://api.smartsybox.com/v26.0/PHONE_NUMBER_ID/messages",
new StringContent(json, Encoding.UTF8, "application/json"));
Console.WriteLine(await res.Content.ReadAsStringAsync());
Esempio di risposta
La risposta include l'ID univoco del messaggio e lo stato di consegna in tempo reale.
200 OK · application/json
{
"messaging_product": "whatsapp",
"contacts": [{ "input": "15551234567", "wa_id": "15551234567" }],
"messages": [{ "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI…" }]
}
044. Integrazione Pannello ERP Integrato nel Chat
Mostra informazioni di fatturazione, saldi e ordini del cliente direttamente nella barra laterale della conversazione.
Request · SyBox → your endpoint
POST YOUR_ERP_URL
Authorization: Bearer YOUR_ERP_KEY
X-Sybox-Action: lookup
# body: { "data": "<json string>" } — the decoded "data":
{
"phone": "15551234567",
"email": "customer@example.com",
"ref": ""
}
Your reply · application/json
{
"renderAs": "table",
"content": [
{ "Order": "#10432", "Status": "Shipped", "Total": "$1,250.00" }
]
}
renderAs
Rendering di schede personalizzate ERP per gli operatori dell'assistenza.
table
Rows & columns. content = an array of flat objects (or { rows: [ … ] }). Object keys become the column headers.
cards · kpi
Compact tiles (a balance, an order count). content = an array of { label, value } (or { cards: [ … ] }).
feed · list · thread
A timeline of rich cards. content = an array of { title, text, date, tags, media:[{ type, url, name }] }.
message
A single message-style card (one record laid out as a note).
html
Your own trusted HTML — content = a string. Use only for markup you generate yourself.
sections
Several blocks at once: content = { sections: [ { title, renderAs, content } ] } — mix a table + cards + a feed in one reply.
json
The default when renderAs is omitted — SyBox pretty-prints your content as-is.
Riferimenti ai campi dati dinamici importati.
Configura i webhook ERP nelle impostazioni dello spazio di lavoro.
5. Catalogo Prodotti & Schede Articoli ERP
Importa e sincronizza i prodotti del tuo magazzino per un rapido inserimento nei messaggi.
Request · SyBox → your endpoint
POST YOUR_ERP_URL
Authorization: Bearer YOUR_ERP_KEY
X-Sybox-Action: products
# body: { "data": "<json string>" } — the decoded "data":
{
"q": "wireless keyboard",
"phone": "15551234567",
"email": "customer@example.com",
"ref": ""
}
Your reply · application/json
{
"content": [
{
"name": "Wireless Keyboard K380",
"price": 449,
"oldPrice": 520,
"currency": "USD",
"available": true,
"stock": 12,
"image": "https://cdn.example.com/k380.jpg",
"link": "https://shop.example.com/p/k380",
"note": "Ships in 24h"
}
]
}
name
Nome Prodotto
price · oldPrice · currency
Prezzo Unitario
available · stock
Disponibilità Magazzino
image
URL Immagine Articolo
link
Link Scheda Prodotto
note
Note e specifiche tecniche
Supporta prezzi con valute multiple e controllo delle giacenze di magazzino.
056. Gestione Contatti & Profili CRM
Crea, aggiorna e ricerca schede clienti e contatti aziendali via API.
cURL
curl -X POST "https://api.smartsybox.com/v1/case" \
-H "Authorization: Bearer $SYBOX_CASE_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_unique_id": "CUST-10432",
"header": "Screen replacement not delivered",
"description": "Paid on 12 Aug, promised in 3 days, still nothing.",
"ext_ref": "TICKET-99817"
}'
Campi contatto personalizzabili
customer_unique_id
ID Cliente ERP
header / description
Intestazione Scheda
ext_ref
Riferimento Esterno
Supporta l'assegnazione automatica di etichette e dipartimenti.
Sincronizzazione automatica con Google Contacts se abilitata.