Skip to main content
The LinkGate RESTful API lets publishers create and edit links, also called lockers, directly from their own websites. If you’re planning to make a large number of links, use the Dynamic API. It lets you use multiple different destinations on a single base link. Open Settings → API in the dashboard. Your token is already filled into the examples, so copy one instead of typing the token by hand. Every call uses this base URL:
And every call needs the token:
A create body looks like this.
title is the link title, up to 70 characters. target is the destination URL, and it has to be a real http or https address. The response includes the id. You use that id when you edit or delete, and in the dashboard examples it’s written as YOUR_LINK_ID. The samples are Python, PHP, Node, and cURL. The variable that holds the result is response. If the token leaks, contact support and ask for a reset. You can’t rotate it yourself. A reset turns the old token off immediately, so update every app that was using it.