Connect your external applications to Fynchat via the REST API and Webhooks.

The REST API lets your external systems (store, CRM, your custom system) to:
And Webhooks notify your system of important events in real time (new message, campaign completion, etc.).
live for production or test for testingUse curl for a quick test:
curl https://fynchat.com/api/public/v1/contacts \
-H "Authorization: Bearer fynk_live_YOUR_KEY"
Or use the JavaScript SDK:
<script src="https://fynchat.com/sdk/fyntralink.js"></script>
<script>
const fl = new Fynchat({ apiKey: 'fynk_live_xxx' });
await fl.messages.sendText('+966501234567', 'Hello!');
</script>
https://yourdomain.com/wa-webhook)message.received, campaign.completed...)Every webhook carries a header:
X-Fynchat-Signature: t=1715251200,v1=abc123...
Verify it before any processing:
$body = file_get_contents('php://input');
$sig = $_SERVER['HTTP_X_FYNTRALINK_SIGNATURE'];
preg_match('/t=(\d+),v1=([a-f0-9]+)/', $sig, $m);
$expected = hash_hmac('sha256', $m[1].'.'.$body, $YOUR_SIGNING_SECRET);
if (!hash_equals($expected, $m[2])) { http_response_code(401); exit; }
const valid = await Fynchat.verifyWebhook(rawBody, sigHeader, secret);
if (!valid) return res.status(401).send('Invalid signature');
X-Fynchat-Delivery is a unique ID for each webhook — ignore duplicateshttps://fynchat.com/api/docs — a comprehensive reference for every endpoint with examples.
We use essential cookies to run the site. With your permission we also measure usage and ad performance. You can change this anytime. Privacy policy