Connect Occuz to your own systems. Whether you want to receive near real-time click data, create campaigns from an external CRM, or track conversions inside a mobile app - the Occuz API gives you the building blocks to do it.
All API features are available from your Occuz dashboard under API & Integrations. Generate your key, grab an SDK, and get started quickly.
Push Webhook
Every time a short link is clicked, Occuz pushes a structured JSON payload to your endpoint in near real time. No polling required. Pipe the data directly into your CRM, data warehouse, or analytics pipeline.
Campaign Create API
Issue a single POST request to create a social campaign and short link from any external system. Ideal for automating campaign launches from a CRM, scheduling tool, or marketing platform.
POST /shortener/external-api/create-social
X-Api-Key: <your-api-key>
{
"type": "social",
"campaign": {
"campaign_name": "Summer Sale",
"campaign_url": "https://yoursite.com/sale"
}
}
Pixel & Conversion Tracking
The Occuz pixel fires after user consent and ties on-site behaviour back to the short link that brought the visitor. Works on any website, single-page app, or native mobile app.
utm_* parameters automaticallyZapier Integration
Connect Occuz with Zapier to trigger automations whenever campaign links are needed. Route creation into tools your team already uses.
Every API feature ships with a ready-made SDK. Download a single file, set your key, and start integrating quickly. No package manager or build step required.
Validate the HMAC signature and start processing events immediately:
Node.js / Express Python / Flask PHPMake authenticated campaign-creation requests from any platform:
Node.js Python PHP iOS (Swift) Android (Kotlin)Native session tracking, deep-link interception, and event firing:
iOS (Swift) Android (Kotlin) Huawei (Kotlin) React Native Flutter (Dart)
All SDK files are available for download directly from your Occuz dashboard or via wget
from shortener.occuz.com.
const express = require('express');
const crypto = require('crypto');
const app = express();
app.use(express.json());
app.post('/webhook', (req, res) => {
const sig = req.headers['x-occuz-signature'];
const body = JSON.stringify(req.body);
const hmac = crypto
.createHmac('sha256', process.env.OCCUZ_SECRET)
.update(body).digest('hex');
if (sig !== hmac) {
return res.status(401).send('Invalid signature');
}
const { data } = req.body.records[0].value;
console.log('Click:', data.campaign_name, data.url);
res.sendStatus(200);
});
app.listen(3000);
curl -X POST \
https://api...... \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-d '{
"type": "social",
"campaign": {
"campaign_name": "Summer Sale",
"campaign_url": "https://yoursite.com/sale",
"short_url": "summer-sale"
}
}'
Log into your Occuz account to generate your first API key, download an SDK, or set up your first webhook.
Questions? Contact us at support@occuz.com.