Links API

Update & delete

Modify an existing link

PATCH/api/links/{id}Auth

Update destination, title, text, status, or expiry

json
{
  "destinationUrl": "https://example.com/new",
  "title": "Updated",
  "contentText": "new text",
  "active": false,
  "expiresIn": 7,
  "expiresUnit": "days"
}
DELETE/api/links/{id}Auth

Delete the link

json
{ "ok": true }
POST/api/links/bulk-deleteAuth

Delete multiple links at once

json
{ "ids": ["clx…", "clx…"] }
json
{ "ok": true, "deleted": 2 }

You can only update/delete links you own. 404 if not found.

Expiry fields apply only to source: "dashboard" links. Clear expiry with { "expiresIn": null }. API/script links stay non-expiring.

Expired links return 410 expired on unlock (Dashboard → Expired tab can reactivate). Temporary dashboard links expired for over 14 days are purged.

Bulk delete: send ids (array of link ids). Non-owned ids are ignored.