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.


Quickstart — your first link in 60 seconds

  1. 01
    Get an API key

    From /dashboard/api → "New key".

  2. 02
    POST a request

    To https://api.cd4cd.com/v1/links with longUrl.

  3. 03
    Save 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" }