Skip to content
Language: English

REST API for pages, links, blocks and statistics

Every dashboard action is a documented REST endpoint. Bearer tokens for interactive sessions, long-lived API keys with scopes for automation (Basic and above), and HMAC-signed webhooks that report events back to you. Looking for the dashboard itself? That is deck.linkharbor.com.

curlPOST /v1/ingest/{id}
curl -X POST https://dock.at-harbor.com/v1/ingest/$ID \  -H "Authorization: Bearer $INGEST_SECRET" \  -H "Content-Type: application/json" \  -d '{    "event": "player.joined",    "data":  { "player": "Steve" },    "state": { "type": "game_server", "online": true,               "players_online": 7, "players_max": 40 }  }'
200 · {"ok": true}

Endpoint families

/v1/auth
Auth

register (with date of birth and consent), login, refresh, logout, password reset, e-mail change verification, sign-in with Google or Facebook, two-factor challenge, API key → Bearer exchange

/v1/users
Users

profile, e-mail and password change (old password required), billing profile, device tokens for push, two-factor setup, verify, recovery codes and disable

/v1/workspaces
Workspaces

entitlements, usage per metric, members with roles, invites, ownership transfer to another member, protection tier default, custom templates, callback secrets, API keys

/v1/pages
Pages

create, list, update, delete, handle availability, versions, publish, SEO per page, visibility (public, private, password), uploads

/v1/draft
Draft

read and patch the draft, validate before publishing, preview tokens for the iframe

/v1/links
Links

create, reorder, enable, schedule, country and device rules, per-link protection tier

/v1/blocks
Blocks & Assets

text, image, embed, opening hours, coupon, contact, notice, info modal, form, Support and integration blocks; block schemas; multipart uploads bound to template slots; where an asset is used, before you delete it

/v1/short
Short links

create short links on lhbr.co with optional custom slug, list and search by slug, title or target URL, update, delete; daily click statistics (QR scans included)

/v1/forms
Forms

form definitions, public submit endpoint, submissions list with cursor paging, CSV export

/v1/webhooks
Webhooks

subscribe to page.published, form.submitted, domain.verified and domain.disabled; HMAC-signed deliveries, secret rotation, test delivery, manual redelivery

/v1/domains
Domains

add a custom domain, verify by DNS, pages at the root and below it

/v1/stats
Stats

views, clicks, unique visitors and click-through rate per page, link and block; breakdowns by country, device, referrer and campaign; conversions

/v1/push
Push

send a push to followers, usage against the weekly cap, history; push rules triggered by integration events

/v1/subscriptions
Subscriptions

follow and unfollow, list with unread counts, collections, search across followed pages

/v1/integrations
Integrations

connect Instagram, TikTok, Bluesky, Spotify, Apple Music, Deezer, YouTube, Twitch, Patreon, GitHub, GitLab, RSS / Podcast, Google Places, Match Day, Shopify, WooCommerce, eBay, Eventbrite, Ticket Tailor, Ticketmaster, Calendly, Calendar (iCal), Careers Page or Custom (API); widget state; event history

/v1/discover
Discover

public page search with typo tolerance and prefix ranking

/v1/plans
Plans / Billing

localised prices, Stripe Checkout, customer portal, Stripe Connect onboarding for the Support block

/health
System

Liveness check at / and /health. Public pages and /go redirects are served by the edge network, not by this API host.

Common calls

Search pages
curl "https://dock.at-harbor.com/v1/discover/pages?q=jane" \
  -H "Authorization: Bearer $LH_TOKEN"
Localised pricing with VAT ID
curl "https://dock.at-harbor.com/v1/plans?country=DE&currency=EUR&has_vat_id=true"
Check handle availability
curl "https://dock.at-harbor.com/v1/pages/available?handle=myname"
Exchange API key for Bearer
curl -X POST https://dock.at-harbor.com/v1/token \
  -H "Content-Type: application/json" \
  -d '{"key_id":"6F668EA6598B0692","key_secret":"lt_..."}'
Create a page
curl -X POST https://dock.at-harbor.com/v1/pages \
  -H "Authorization: Bearer $LH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"handle":"myname","template_key":"creator"}'
Update draft (theme + config)
curl -X PATCH https://dock.at-harbor.com/v1/pages/42/draft \
  -H "Authorization: Bearer $LH_TOKEN" \
  -d '{"config":{"profile_name":"Jane"},"theme_config":{"button_style":"pill","font":"Sora"}}'
Add a geo-filtered link
curl -X POST https://dock.at-harbor.com/v1/pages/42/links \
  -H "Authorization: Bearer $LH_TOKEN" \
  -d '{"title":"DE Store","target_url_template":"https://shop.de/...","geo":{"mode":"allowlist","countries":["DE","AT"]}}'
Publish the draft
curl -X POST https://dock.at-harbor.com/v1/pages/42/publish \
  -H "Authorization: Bearer $LH_TOKEN"
Inspect an earlier version
curl https://dock.at-harbor.com/v1/pages/42/versions/7 \
  -H "Authorization: Bearer $LH_TOKEN"
Register push device (app session token)
curl -X POST https://dock.at-harbor.com/v1/users/me/device-tokens \
  -H "Authorization: Bearer $LH_TOKEN" \
  -d '{"token":"fcm_...","platform":"android"}'
Read workspace usage
curl https://dock.at-harbor.com/v1/workspaces/me/usage \
  -H "Authorization: Bearer $LH_TOKEN"
Rotate a callback secret (dashboard session, Owner/Admin)
curl -X POST https://dock.at-harbor.com/v1/workspaces/me/callback-secrets/3/rotate \
  -H "Authorization: Bearer $LH_TOKEN"
Instagram
Instagram
TikTok
TikTok
YouTube
YouTube
Spotify
Spotify
Match Day
Match Day
Calendly
Calendly
Twitch
Twitch
GitHub
GitHub
Shopify
Shopify
Ticketmaster
Ticketmaster
Google Places
Google Places
RSS / Podcast
RSS / Podcast
Eventbrite
Eventbrite
Ticket Tailor
Ticket Tailor

Full reference

OpenAPI 3.1 spec at https://dock.at-harbor.com/openapi.yaml

Interactive docs at docs.linkharbor.com

API key scopes

read:pageswrite:pagesread:linkswrite:linksread:assetswrite:assetsread:formswrite:formsread:workspaceswrite:workspacesread:short_linkswrite:short_linksread:statsread:donationswrite:templates

write:X automatically includes read:X for the same resource. Statistics and supporter payments are read-only, workspace templates write-only. API keys are available from the Basic plan (2 keys), Pro has 5, Agency 20, Enterprise 50. Pages scope covers draft, SEO, versions and content blocks; links and uploads have their own scopes.

Rate limits

token
30 req / min

POST /v1/token, exchanging an API key for a Bearer token. The first call of every integration.

user
600 req / min

Default bucket for every signed-in call: pages, links, blocks, forms, short links, stats. Calls without a token share the public bucket, 120 per minute per IP.

discover
60 req / min

GET /v1/discover/pages, the public search. Counted per user, per IP without sign-in.

Counted per workspace for API keys, per user for dashboard sessions, per IP otherwise, and not per plan. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Bucket; a 429 includes Retry-After. Buckets reset on the minute. Auth, subscriptions and sale callbacks have their own, tighter buckets of the same shape.

API keys and webhooks come with Basic; see plans and limits. How tokens, keys and data are protected is on the security page. Building pages for clients? Read LinkHarbor for agencies, or see every feature the API covers.

Who it's for