Documentation

Upload a file

API Reference

Authenticate with an Enterprise API key and list links authored by the key owner with the documented v1 REST endpoint.

Availability and base URL

The public REST API is available on Enterprise. Its base URL is:

https://www.linkyhost.com/api/v1

The only currently documented public endpoint is:

GET /api/v1/links

It lists links authored by the API-key owner across their personal and team workspaces. It does not provide a team selector and cannot list links authored by other team members. Upload, create, update, and delete endpoints are not part of the current public API.

Create an API key

  1. Open the dashboard with an Enterprise account.
  2. Select the API section.
  3. Enter a descriptive key name and select Generate.
  4. Copy the complete lh_... value immediately.

The complete key is shown only once. Up to five active keys can be created. Existing keys can be named, reviewed by prefix and last-used date, and revoked from the dashboard.

Treat an API key like a password. Do not place it in browser code, a public repository, screenshots, URLs, or client-side logs.

Authentication

Send the key as a Bearer token:

Authorization: Bearer lh_your_key_here

Example:

curl --request GET \
  --header "Authorization: Bearer lh_your_key_here" \
  "https://www.linkyhost.com/api/v1/links?limit=100&offset=0"

Query parameters

ParameterDefaultRangeMeaning
limit100Up to 500Maximum number of links returned
offset00 or greaterNumber of newest links to skip

Results are sorted newest first. Use the response's total, limit, and offset values to paginate.

Successful response

{
  "links": [
    {
      "id": "66b1f8d209ba923456789abc",
      "url": "https://quarterly-report.linkyhost.com",
      "subdomain": "quarterly-report",
      "shortCode": "quarterly-report",
      "views": 12,
      "uniqueVisitors": 8,
      "type": "pdf",
      "fileName": "quarterly-report.pdf",
      "folderId": null,
      "associatedDomain": null,
      "createdAt": "2026-08-01T12:00:00.000Z"
    }
  ],
  "total": 1,
  "limit": 100,
  "offset": 0
}
FieldMeaning
idLink identifier
urlStored Linkyhost URL
subdomainLinkyhost address label
shortCodePath segment used for a connected custom domain
viewsRecorded total views
uniqueVisitorsApproximate unique count from stored visitor identifiers
typeLink content category
fileNameOriginal or current file name, when available
folderIdFolder identifier or null
associatedDomainConnected domain identifier or null
createdAtISO 8601 creation timestamp

Rate limits

Requests are limited to:

  • 60 requests per minute from one IP address; and
  • 30 requests per minute for one API-key owner.

Reduce request frequency and retry later after a 429 response. Applications should use bounded retries with backoff rather than retrying continuously.

Status codes

StatusMeaningAction
200Request succeededProcess the JSON response
401Key is missing, malformed, unknown, or revokedCheck the Bearer header or generate a new key
403The account is suspended or no longer EnterpriseRestore eligibility or contact support
429A request limit was reachedWait and retry with backoff
500Unexpected server errorRetry later; contact support if persistent

Key rotation

Generate a new named key, update the server-side secret used by your integration, verify one successful request, and then revoke the old key. Revocation takes effect for applications using that key.

If a key is exposed, revoke it immediately. Never send the full key to support; provide only its dashboard name and visible prefix.

Still need a hand?

Tell us what you are trying to publish and where you got stuck.

Contact support