Links API

List & create

Manage your unlock links

GET/api/linksAuth

List your links

json
[
  {
    "id": "clx…",
    "slug": "a1b2c3d4e5",
    "destinationUrl": "https://…",
    "title": "My pack",
    "contentText": null,
    "clicks": 12,
    "unlocks": 4,
    "active": true,
    "source": "api",
    "expiresAt": null
  }
]
POST/api/linksAuth

Create a new link

json
{
  "destinationUrl": "https://example.com/file",
  "title": "Premium pack",
  "contentText": "license-key-here"
}
json
{
  "slug": "a1b2c3d4e5",
  "unlockUrl": "https://unlockfy.cc/u/a1b2c3d4e5",
  "source": "api",
  "expiresAt": null,
  "contentText": "license-key-here"
}

Auth: session cookie or Authorization: Bearer uf_….

Delivery (at least one required):

  • destinationUrl — unlock destination URL, or
  • contentText — text downloaded as .txt after unlock

You can send both. If both are missing → 400 delivery_required.

Other fields: optional title. Slug is auto-generated (no custom alias).

`source`: API key → "api"; Dashboard → "dashboard"; Full Script → "script".

Expiration: only dashboard links can be temporary (expiresIn + expiresUnit, or expiresAt ISO). With an API key, expiry is always null (expiry fields ignored). API / Full Script links never expire.