Early access: one-click sign-in apps for HighLevel, HubSpot and Shopify are on the way. Every CMS works today with a key. What's live →
Skip to content

Partner API

For white-label partners on the Partner plan: everything on your Partner page as HTTP calls, so a hosting panel, a GoHighLevel app or a billing system can create and manage client workspaces for you.

Authentication

Make a partner key on Partner → Partner API in your own workspace (it starts with lp_live_ and is shown once; only its hash is stored). Send it as Authorization: Bearer <key> to https://www.lyntcast.com/api/partner/v1/…. Making a new key stops the old one at once. The key acts for your whole partner account: keep it on your servers, never in a browser.

Requests are limited to 120 a minute per partner; a 429 carries Retry-After: 60. Errors are JSON in the same shape as the REST API: { "error": { "type": "invalid_request", "message": "…", "status": 400 } }.

Endpoints

EndpointWhat it does
GET /meYour partner account: brand, domain, plan, client workspaces against the included ones, the AI post pool and the plans you may give clients.
GET /workspacesEvery client workspace you run, with usage: sites, members, held changes, AI posts used this period and the cap.
POST /workspacesCreate a client workspace: name (2 to 80 characters), plan (site, team, agency or business; default: your default plan), ai_posts_cap (optional). Your team owns it. 201 with the workspace, billed_extra and billing_note; send ?confirm_billing=false to get a 409 instead when the workspace would be billed over the included ones.
GET /workspaces/{id}One client workspace with its usage and the current pool period.
POST /workspaces/{id}/invitesInvite one of the client's people: email, role (admin, reviewer or viewer; default admin), invited_by (a name shown in the email). The email carries your brand and a link on your domain. Returns the link too.
POST /workspaces/{id}/planChange the plan or the AI post cap: plan, ai_posts_cap (a number, or null for no cap).
POST /workspaces/{id}/suspendSuspend: members can't open it and its agents are refused. reason (optional, shown in the audit log).
POST /workspaces/{id}/resumeResume a suspended workspace.
POST /workspaces/{id}/transferHand the workspace to the client's own billing: it leaves your account, moves to Free, the client's admin becomes owner and your team is removed. Refused until the client has someone of its own in the workspace.
POST /workspaces/{id}/connect-linksA one-time link for the client to connect their website: recipient_name, recipient_email (emails it), message, cms (wordpress, shopify, …), expires_in_days (default 7, max 30).
POST /workspaces/{id}/intake-linksA link for the client to send content files: recipient_name, recipient_email, message, max_files (default 50), expires_in_days (default 14, max 90).
GET /workspaces/{id}/reports/{month}A signed link (valid 30 days, no sign-in) to the month's supervision report under your brand, ready to print or save as PDF. month is YYYY-MM.
GET /eventsThe workspace event types and what each carries.
POST /hooksSubscribe a URL to workspace events: url (https), events (a list of the types below, or ["*"]). Returns the signing secret once.
GET /hooks, GET /hooks/{id}Hooks subscribed with the partner API.
DELETE /hooks/{id}Unsubscribe. 204.

Workspace ids are the id values from GET /workspaces (also shown on the Partner page). A workspace that isn't one of your clients answers 400 with "That workspace isn't one of your client workspaces".

What creating a workspace costs

The Partner plan includes 50 client workspaces; each one over that adds $5 a month to your subscription, prorated. The response to POST /workspaces says whether this one was billed (billed_extra) and repeats the notice (billing_note). To refuse rather than pay, send ?confirm_billing=false: you then get a 409 with the notice instead of a new workspace. AI posts come from your pool whatever plan a client is on; ai_posts_cap limits what one client may take from it per month.

Examples

Create a client workspace

Terminal
curl -X POST https://www.lyntcast.com/api/partner/v1/workspaces \
  -H "Authorization: Bearer $LYNTCAST_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Bloom Bakery","plan":"agency","ai_posts_cap":200}'
 
# 201
{
  "object": "workspace",
  "id": "ws_7f3k…",
  "slug": "bloom-bakery",
  "name": "Bloom Bakery",
  "plan": "agency",
  "status": "active",
  "usage": { "sites": 0, "members": 1, "held_changes": 0, "ai_posts_used": 0, "ai_posts_cap": 200 },
  "billed_extra": false,
  "billing_note": null
}

Invite the client

Terminal
curl -X POST https://www.lyntcast.com/api/partner/v1/workspaces/ws_7f3k…/invites \
  -H "Authorization: Bearer $LYNTCAST_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"cleo@bloombakery.com","role":"admin","invited_by":"Acme Hosting"}'
 
# 201
{ "object": "invite", "email": "cleo@bloombakery.com", "role": "admin", "url": "https://publish.acme.example/invite/…", "emailed": true, "expires_in_days": 7 }

Get a monthly report link

Terminal
curl https://www.lyntcast.com/api/partner/v1/workspaces/ws_7f3k…/reports/2026-10 \
  -H "Authorization: Bearer $LYNTCAST_PARTNER_KEY"
 
# 200
{ "object": "report_link", "workspace_id": "ws_7f3k…", "month": "2026-10", "url": "https://publish.acme.example/p/report/…", "expires_at": "2026-12-12T09:00:00.000Z" }

Webhooks

Subscribe a URL to workspace events. Each delivery is a POST with the JSON envelope below and these headers: Lyntcast-Event-Id, Lyntcast-Event-Type, Lyntcast-Delivery-Id, Lyntcast-Attempt, Lyntcast-Timestamp and Lyntcast-Signature (t=<unix seconds>,v1=<hex HMAC-SHA256 of "t.body"> with the hook's secret). Answer 2xx within 10 seconds; anything else is retried with backoff for about a day, and a hook that fails 15 times in a row is turned off (your workspace admins are emailed). Deliveries are at least once: dedupe on the event id.

Terminal
curl -X POST https://www.lyntcast.com/api/partner/v1/hooks \
  -H "Authorization: Bearer $LYNTCAST_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://portal.acme.example/webhooks/lyntcast","events":["workspace.created","workspace.suspended","workspace.transferred"]}'
 
# 201 (the secret is shown once)
{ "object": "hook", "id": "hook_…", "url": "https://portal.acme.example/webhooks/lyntcast", "events": ["workspace.created","workspace.suspended","workspace.transferred"], "source": "partner", "enabled": true, "secret": "whsec_…" }

Event types

TypeWhen, and what data carries
workspace.createdA client workspace was created under the partner. data.workspace
workspace.invitedSomeone was invited to a client workspace. data.workspace, email, role
workspace.plan_changedA client workspace's plan or AI post cap changed. data.workspace, plan, ai_posts_cap
workspace.suspendedA client workspace was suspended by the partner. data.workspace, reason
workspace.resumedA suspended client workspace was resumed. data.workspace
workspace.transferredA client workspace was handed to the client's own billing and left the partner. data.workspace

A delivery

JSON
{
  "id": "evt_…",
  "type": "workspace.suspended",
  "created_at": "2026-11-12T09:30:00.000Z",
  "api_version": "v1",
  "workspace": { "id": "ws_partner…", "slug": "acme-hosting", "name": "Acme Hosting" },
  "data": {
    "workspace": { "id": "ws_7f3k…", "slug": "bloom-bakery", "name": "Bloom Bakery", "plan": "agency" },
    "partner_id": "ptn_…",
    "reason": "Invoice unpaid"
  }
}

Verifying the signature (Node.js)

JavaScript
import { createHmac, timingSafeEqual } from "node:crypto";
 
// rawBody: the request body exactly as received, not re-serialised JSON.
export function verifyLyntcast(rawBody, signatureHeader, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(signatureHeader.split(",").map((p) => p.trim().split("=")));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"));
  const given = Buffer.from(parts.v1 ?? "");
  return expected.length === given.length && timingSafeEqual(expected, given);
}

Good to know

  • Invite links, connect links, intake links and report links use your domain once it is verified, and your <slug>.lyntcast.com subdomain before that. Emails carry your brand, never Lyntcast's.
  • A suspended workspace refuses invites and links until it is resumed. Suspending deletes nothing.
  • Handing a workspace over is final from your side: it leaves your account and your extra-workspace billing drops with it on the next sync.
  • Your clients' own agents and automations keep using the ordinary REST API and MCP endpoint with their workspace's agent keys; the partner API is only for managing workspaces.