Wenn Sie bereits die Meta WhatsApp Cloud API genutzt haben, kennen Sie unsere bereits. Gleicher Pfad, gleicher JSON-Body, gleiche Bearer-Authentifizierung.
01Schnellstart
Drei Dinge und Ihre erste Nachricht ist unterwegs: die Basis-URL, ein Geräteschlüssel und der Nachrichten-Endpunkt.
Base URL
https://api.smartsybox.com
Authentication
Authorization: Bearer <YOUR_DEVICE_KEY>
Content type
application/json
Der Endpunkt
POST
/v26.0/{phone-number-id}/messages
Das Versionssegment wird in jeder v-Form akzeptiert — behalten Sie Ihren bisherigen Code bei.
02Senden Sie Ihre erste Nachricht
Eine reine Textnachricht. Der Body entspricht der Standard-Cloud-API.
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());
Die Antwort
Sie erhalten genau das zurück, was Meta zurückgibt, mit demselben HTTP-Status.
200 OK · application/json
{
"messaging_product": "whatsapp",
"contacts": [{ "input": "15551234567", "wa_id": "15551234567" }],
"messages": [{ "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgARGBI…" }]
}
04Zeigen Sie Ihre Daten neben dem Chat an
Wenn ein Mitarbeiter einen Chat öffnet, ruft SyBox IHREN Endpunkt auf und zeigt die Daten direkt neben dem Chat an.
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 MAD" }
]
}
renderAs
Legen Sie renderAs fest, um SyBox mitzuteilen, wie Ihr Inhalt dargestellt werden soll:
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.
Fügen Sie sybox_ref zu jeder Tabellenzeile hinzu, um sie anklickbar zu machen.
Wir senden Telefon und E-Mail — antworten Sie mit { renderAs, content }.
05Erstellen Sie ein Ticket aus Ihrem eigenen System
Verwenden Sie diese Route für ERP- oder Buchhaltungssysteme zur Erstellung zentraler Support-Tickets.
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"
}'
Die Felder
customer_unique_id
Ihre eigene Kunden-ID.
header / description
Mindestens ein Feld ist erforderlich. Der Header ist in der Liste sichtbar.
ext_ref
Ihre Ticketnummer.
Der Kunde muss bereits im System existieren.
Verwenden Sie einen Schlüssel vom Typ 'case'.