Documentation
Hello, developer.
Everything your team needs to build on CD4CD: a REST API, webhooks, multi-language SDKs, and real examples that don't use fake keys.
REST API
Every endpoint, curl examples, JSON responses, rate limits.
Webhooks
link.created, link.clicked, qr.scanned events with full payloads.
SDKs
Node, PHP, Python, Go — install + auth + first request.
Guides
ZATCA, A/B testing, Salla integration, building a pro Bio page.
Status
Live uptime, 90-day history, past incidents.
Blog
Technical updates, big-change rationale, use-cases.
Quickstart — your first link in 60 seconds
- 01Get an API key
From /dashboard/api → "New key".
- 02POST a request
To https://api.cd4cd.com/v1/links with longUrl.
- 03Save shortUrl
Use it in campaigns or your app.
$ curl -X POST https://api.cd4cd.com/v1/links \
-H "Authorization: Bearer cd_live_xxx" \
-H "Content-Type: application/json" \
-d '{"longUrl":"https://example.com/very/long/path"}'
{ "shortCode": "abc123",
"shortUrl": "https://cd4cd.com/abc123",
"createdAt": "2026-05-13T05:42:00Z" }