For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to use the API

Create an access key and drive files, orders, downloads and license keys from your own system through the LDT Digital Downloads API.

Connect your own system to LDT Digital Downloads: generate an access key, send it in one header, then call the endpoint groups for files, orders, downloads and license keys.

1. Open the API settings

Go to LDT Digital Downloads → Settings → APIs.

The page has five tabs: General, File management, Order management, Digital download management and License management. Each tab lists the endpoints with the exact request to send.

APIs page General tab with Your API access token hidden and the Re-generate button

2. Generate an access key

On the General tab, under Your API access token, click Generate access key and copy the value. If you ever leak it, click Re-generate to invalidate the old one.

Until you generate one the page says No access key found. Please generate one.

3. Authenticate every request

Each call carries the key in a header:

Two things to keep in mind:

  • Send at most 10 requests per second — the API is rate limited to keep the service stable.

  • Keep the key secret. The page states plainly that you are responsible for it, so store it in your own secret manager rather than in client-side code.

4. Upload and manage files

File management covers the file side:

  • File uploading (< 100MB) — a single request for small files.

  • File uploading multiparts (>= 100MB) — the chunked upload to use for big files.

  • Retrieve file information and Search files — look up what is already there.

  • File categories, List all categories, Add categories to files, Remove categories from files — group your files.

  • Generate download link — produce a link for a file, which is how your own site hands a download to a buyer.

Some older endpoints are marked Deprecated on the page; use the current ones next to them.

File management tab with the upload, information and search endpoints

5. Use the other endpoint groups

  • Order management — read orders and the files or keys attached to them.

  • Digital download management — work with what a customer can download.

  • License management — create and assign license keys.

Result

Your system can upload files, attach them to products, hand out download links and manage license keys without anyone opening the app.

Troubleshooting

  • Every request returns an authentication error. The header name is LDT-X-Access-Token; a key sent as a query parameter or under another header name is ignored.

  • Large uploads fail. Files of 100 MB and more must use File uploading multiparts, not the single-request endpoint.

  • Requests start failing under load. You are above the 10 requests per second limit — queue them in your own system.

  • The key stopped working. Someone clicked Re-generate; copy the new key into your system.

  • How to create and sell a digital product — in Sell your digital products (add the link after merging)

Last updated