API

The fckurl public API exposes a single endpoint: link creation. Everything else (listing, deletion, rotation, custom domains, API keys) is managed from your dashboard.

Create a link

curl -X POST https://fckurl.com/api/v1/links \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/some/long/url"}'

Response (201 Created):

{
  "id": 42,
  "code": "G",
  "shortUrl": "https://fckurl.com/G",
  "targetUrl": "https://example.com/some/long/url",
  "strategy": "Sequential",
  "createdAtUtc": "2026-04-27T12:34:56Z",
  "secret": null
}

Request fields

Authentication

Anonymous requests can create links on the platform domain. An API key is only required when you supply slug or domain:

X-Api-Key: fck_<prefix>_<secret>

Issue keys from the dashboard. Each key is shown exactly once.

Status codes