Vidonomics

API

Everything the dashboard does is an /api/… call, and an API key can make the same calls: upload and import videos, change settings, publish, get embed codes, read stats and leads, connect integrations, run the setup test. A key only reads and writes this account's own data (videos, settings, leads, stats, integrations). It can never change the Vidonomics product, other accounts, API keys, or billing payment methods.

Authentication

Create a key in Team & settings → API: give it a name, an access level and an expiry (never, 30, 90 or 365 days). It is shown once. Send it on every call:

Authorization: Bearer vsl_…

Keys belong to one account (workspace). Owners can make keys at any level; members can make read-only keys for themselves. A key stops working when it's revoked, when it expires, or when the person who made it leaves the account; if their role drops, the key acts at the lower level. JSON in, JSON out; no CSRF headers are needed with a key.

Access levels

LevelCan
Read onlyRead videos, stats, leads, audiences, funnels, embed codes, setup status and the website check.
Full accessEverything a member can do: upload, import and duplicate videos, change settings, settings templates, publish, captions, thumbnails, A/B tests, funnels, lead notes, the setup test.
Also owner-level account settings: integrations and their keys (Stripe, Whop, Close, Meta…), webhooks, team (invite members and analysts, remove non-owners), delete or replace videos, delete leads, the billing view. Never: create API keys, invite owners, change the plan or payment method, delete the account.

Rate limits and errors

About 120 requests a minute per key (429 "slow down" above it; wait and retry). Errors are JSON { "error": "…" } in plain English: 400 bad input, 401 missing/expired/revoked key, 403 above the key's level, 404 not found (including anything in another account), 409 conflict (e.g. still encoding), 402 trial or plan limit.

Videos

GET /api/library Read only

Every video: id, title, status (uploading, encoding, ready, failed), progress, settings (JSON string), published (JSON string or null), folder, tags.

curl "https://app.vidonomics.com/api/library" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
[
  {
    "id": "v_abc123def456",
    "title": "Main VSL",
    "status": "ready",
    "progress": 100,
    "settings": "{\"mode\":\"smart\",…}",
    "published": "{…}",
    "folder": "Launch",
    "tags": "q4",
    "created": 1762900000000
  }
]

PUT /api/library/v_abc123def456 Full access

Rename, file into a folder, tag, or set internal notes.

curl -X PUT "https://app.vidonomics.com/api/library/v_abc123def456" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"title":"Main VSL v2","folder":"Launch","tags":["q4","cold"],"notes":"Hook rewritten 12 Nov"}'

DELETE /api/library/v_abc123def456

Delete a video (and its file, unless a duplicate still plays it). Refused while it is B in a running A/B test.

curl -X DELETE "https://app.vidonomics.com/api/library/v_abc123def456" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/library/v_abc123def456/duplicate Full access

Duplicate a ready video: same file (no re-upload or re-encode), draft settings, thumbnails, phone and email images, pause screen images, captions, folder and tags, titled "<title> (copy)". The copy has its own id and embed, no stats, no A/B tests, no share link, and is not published. Counts as a new video for trial limits (402).

Deleting or replacing either video never deletes the file the other still plays.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/duplicate" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "video": {
    "id": "v_new123copy45",
    "title": "Main VSL (copy)",
    "status": "ready",
    "published": null,
    "folder": "Launch"
  }
}

Upload and import

POST /api/library Full access

Upload step 1: create the video and get a TUS upload ticket.

Step 2: upload the file with any TUS 1.0 client to upload.endpoint, sending upload.headers on every request and upload.metadata (plus filetype) as Upload-Metadata. Step 3: call POST /api/library/<id>/status until status is "ready" (encoding takes a few minutes), then publish. Example with tus-js-client: new tus.Upload(file, { endpoint, headers, metadata }).start().

curl -X POST "https://app.vidonomics.com/api/library" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"title":"Main VSL"}'
Response
{
  "video": {
    "id": "v_abc123def456",
    "status": "uploading"
  },
  "upload": {
    "endpoint": "https://video.bunnycdn.com/tusupload",
    "headers": {
      "AuthorizationSignature": "…",
      "AuthorizationExpire": "1762990000",
      "VideoId": "…",
      "LibraryId": "…"
    },
    "metadata": {
      "filetype": "",
      "title": "Main VSL"
    }
  }
}

POST /api/library/import Full access

Import from a link; Bunny downloads it. Then poll status as above.

Supported: Direct links to a video file (https://…/video.mp4, .mov, .m4v, .webm); Dropbox share links (converted to a direct download); Google Drive file links shared as "Anyone with the link" (converted to a direct download); Vimeo, Wistia or Loom download links you copy from their Download button (the file link, not the watch page). Not supported: YouTube links (download the file and upload it instead); Loom, Vimeo or Wistia watch pages (use their Download button and paste that file link, or upload the file); Google Drive folders, private files, and Google Photos; Vidalytics videos (download the file from Vidalytics; settings can still be copied with the Vidalytics embed code).

curl -X POST "https://app.vidonomics.com/api/library/import" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url":"https://www.dropbox.com/s/abc/vsl.mp4?dl=0","title":"Main VSL"}'
Response
{
  "video": {
    "id": "v_abc123def456",
    "status": "encoding"
  },
  "note": "optional: e.g. Google Drive sharing reminder"
}

POST /api/library/v_abc123def456/status Full access

Refresh the encoding status from the video host (and finish a pending replacement).

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/status" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "id": "v_abc123def456",
  "status": "ready",
  "progress": 100
}

POST /api/library/v_abc123def456/replace

Replace the file (same embed, settings and stats): returns a TUS upload ticket like POST /api/library. The old file plays until the new one is ready.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/replace" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/setup/replace

Replace the file from a link instead of an upload.

curl -X POST "https://app.vidonomics.com/api/setup/replace" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"video":"v_abc123def456","url":"https://example.com/vsl-v2.mp4"}'
Response
{
  "replacing": true
}

POST /api/library/v_abc123def456/from-vidalytics Full access

Copy a Vidalytics video’s player settings onto this video from its embed code; the Vidalytics embed becomes the fallback at the rollout %.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/from-vidalytics" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"embed":"<div id=\"vidalytics_embed_…\"></div><script>…fast.vidalytics.com/embeds/…</script>","rollout":10}'
Response
{
  "copied": [
    "Smart Autoplay (muted preview)",
    "…"
  ],
  "notCopied": [
    "The video file itself…"
  ]
}

Switch from Vidalytics

PUT /api/vidalytics

Connect the account’s Vidalytics API key (Vidalytics → Settings → API). It is checked against Vidalytics, stored encrypted and never returned: responses show only its last 4 characters. DELETE /api/vidalytics disconnects it (videos already imported stay).

curl -X PUT "https://app.vidonomics.com/api/vidalytics" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"apiKey":"…"}'
Response
{
  "connected": true,
  "keyLast4": "c4d5",
  "videos": [
    {
      "id": "boQbFg8UAG4EG8CL",
      "title": "VSL 3",
      "status": "ready",
      "created": "2026-08-27 07:39:06",
      "views": 116749,
      "imported": null,
      "videoId": null
    }
  ]
}

GET /api/vidalytics/videos

The connected Vidalytics account’s videos, each with its import state here (null, queued, importing, done, error) and the Vidonomics video it became. Not connected: { connected: false, videos: [] }.

curl "https://app.vidonomics.com/api/vidalytics/videos" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/vidalytics/import

Bring videos across in the background: the file (fetched by the video host, never through the API), player settings with everyone on Vidonomics (rollout 100, no fallback), buttons, pause screens, thumbnails, captions, time tags, folder, and the Vidalytics stats history. Omit videos for all. Already imported videos are skipped; failed ones are retried. Imported videos are drafts until published.

Uses 2 of the Vidalytics account’s monthly API requests per video (the stats totals and drop-off); the other calls don’t count against it. Follow progress with GET /api/vidalytics. The answer also carries the progress (as GET /api/vidalytics) and the account’s videos (as GET /api/vidalytics/videos).

curl -X POST "https://app.vidonomics.com/api/vidalytics/import" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"videos":["boQbFg8UAG4EG8CL"]}'
Response
{
  "queued": 1,
  "alreadyImported": 0,
  "counts": {
    "queued": 1,
    "importing": 0,
    "done": 0,
    "error": 0,
    "total": 1
  }
}

POST /api/vidalytics/continue

Carry the switch on now: the progress (as GET /api/vidalytics), and if videos are waiting and no copy is running, the next few start in the background. The dashboard calls it while the page is open; without it, an hourly job carries on.

curl -X POST "https://app.vidonomics.com/api/vidalytics/continue" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "connected": true,
  "running": true,
  "pending": 2,
  "counts": {
    "queued": 1,
    "importing": 1,
    "done": 3,
    "error": 0,
    "total": 5
  },
  "imports": [
    "…"
  ]
}

GET /api/vidalytics Read only

Progress: connected or not (the key only as its last 4 characters) and each video queued, importing (with the step), done (what came across and what didn’t) or error (the reason in plain English), with its Vidonomics video, whether the file is ready and whether it is published. Only reads: it never starts or speeds up the copying (POST /api/vidalytics/continue does).

curl "https://app.vidonomics.com/api/vidalytics" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "connected": true,
  "keyLast4": "c4d5",
  "running": true,
  "counts": {
    "queued": 1,
    "importing": 1,
    "done": 3,
    "error": 0,
    "total": 5
  },
  "imports": [
    {
      "vidalyticsId": "boQbFg8UAG4EG8CL",
      "title": "VSL 3",
      "status": "done",
      "step": null,
      "error": null,
      "video": {
        "id": "v_abc123def456",
        "status": "encoding",
        "progress": 40,
        "published": false
      },
      "notes": {
        "copied": [
          "Thumbnail",
          "…"
        ],
        "notCopied": [
          "…"
        ]
      }
    }
  ]
}

GET /api/vidalytics/baseline/v_abc123def456 Read only

The video’s stats from Vidalytics before the switch (all time up to the import): totals (plays, playsUnique, impressions, playRate, unmuteRate, engagement, revenue, conversionCount…) and the drop-off as [second, viewers still watching]. { baseline: null } when it didn’t come from Vidalytics.

curl "https://app.vidonomics.com/api/vidalytics/baseline/v_abc123def456" \
  -H "Authorization: Bearer $VSL_API_KEY"

Settings and publishing

PUT /api/library/v_abc123def456/settings Full access

Save the player settings (the whole object: send the current settings with your changes). A draft until published.

Unknown keys are dropped; invalid values answer 400 with the reason. Full list of keys: the MCP tool update_video_settings describes them.

curl -X PUT "https://app.vidonomics.com/api/library/v_abc123def456/settings" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"mode":"smart","ratio":"16/9","color":"#f59e0b","unmuteTitle":"Your video is playing","unmuteSub":"Click to unmute","ctas":[{"text":"Apply now","href":"https://example.com/apply","from":600,"to":null,"placement":"below","color":null,"image":null,"price":null}]}'

POST /api/library/v_abc123def456/publish Full access

Put the video and its settings live. Pages carrying its embed update within a minute; nobody re-pastes anything.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/publish" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/library/v_abc123def456/audit Read only

The conversion audit: settings and numbers against the VSL playbook, with a score.

curl "https://app.vidonomics.com/api/library/v_abc123def456/audit" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/library/v_abc123def456/audit/apply Full access

Apply the audit’s safe defaults (autoplay, captions, Smart Pause…).

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/audit/apply" \
  -H "Authorization: Bearer $VSL_API_KEY"

PUT /api/library/v_abc123def456/thumbnail Full access

Custom thumbnail: send the image bytes (JPEG/PNG/WebP, under 2 MB) with its Content-Type.

curl -X PUT "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  --data-binary @thumb.jpg -H "content-type: image/jpeg"

PUT /api/library/v_abc123def456/captions?lang=en Full access

Upload captions (WebVTT text, under 1 MB).

curl -X PUT "https://app.vidonomics.com/api/library/v_abc123def456/captions?lang=en" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  --data-binary @captions.vtt

POST /api/library/v_abc123def456/captions/generate Full access

Generate captions automatically.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/captions/generate" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"lang":"en"}'

POST /api/library/v_abc123def456/share Full access

Create (or rotate) a read-only stats share link. DELETE turns it off.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/share" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/library/v_abc123def456/experiments Read only

A/B tests and thumbnail tests on this video (kind "ab" or "thumbnail"). POST starts an A/B test (full access): { name, goal, split (0.1-0.9), bVideoId?, bSettings? }.

curl "https://app.vidonomics.com/api/library/v_abc123def456/experiments" \
  -H "Authorization: Bearer $VSL_API_KEY"

Thumbnail lab and tests

GET /api/library/v_abc123def456/thumbnail-lab?duration=180 Read only

The video’s thumbnail candidates (newest first), the suggested moments to grab frames at (evenly spaced, plus the hook, offer, proof and call to action when the script breakdown exists; duration in seconds is only needed when the server doesn’t know it), whether AI picks are on, the playlist to grab frames from, and whether the video has a separate phone thumbnail.

curl "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail-lab?duration=180" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "aiEnabled": false,
  "aiNote": "Add an Anthropic key to switch this on.",
  "durationSec": 180,
  "moments": [
    {
      "at": 2,
      "why": "Hook: Pattern interrupt"
    },
    {
      "at": 11,
      "why": "Evenly spaced"
    }
  ],
  "hasPhone": false,
  "current": {
    "poster": "https://…/t/v_abc123def456?v=…",
    "posterMobile": null
  },
  "candidates": [
    {
      "id": "tc_abc123def4",
      "source": "frame",
      "at": 12.5,
      "image": "https://…/t/v_abc123def456/tc_abc123def4",
      "phoneOf": null,
      "parentId": null,
      "overlay": null,
      "aiRank": 1,
      "aiReason": "Clear face, eye contact.",
      "headlines": [
        "$0 to $40,000 a month"
      ],
      "inTest": false
    }
  ]
}

POST /api/library/v_abc123def456/thumbnail-lab/candidates?source=frame&at=12.5 Full access

Add a candidate: the image bytes (JPEG/PNG/WebP/GIF, under 2 MB; 6 MB animated) with its Content-Type. source is frame (with at, seconds into the video), upload (your own image) or composed (a headline drawn on: parent=<tc_id>, overlay=<headline>). phoneOf=<tc_id> marks it as the phone version of another candidate. Up to 24 per video.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail-lab/candidates?source=frame&at=12.5" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  --data-binary @frame.jpg -H "content-type: image/jpeg"
Response
{
  "candidate": {
    "id": "tc_abc123def4",
    "source": "frame",
    "at": 12.5,
    "image": "https://…/t/v_abc123def456/tc_abc123def4"
  }
}

DELETE /api/library/v_abc123def456/thumbnail-lab/candidates/<tc_id> Full access

Delete a candidate and its image. Refused (409) while it is in the running thumbnail test.

curl -X DELETE "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail-lab/candidates/<tc_id>" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/library/v_abc123def456/thumbnail-lab/host-frames Full access

Bring in the video host’s own frames (Bunny makes up to 5 at encoding) as candidates.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail-lab/host-frames" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "added": 5,
  "candidates": [
    "…"
  ]
}

POST /api/library/v_abc123def456/thumbnail-lab/ai Full access

The AI looks at up to 12 frames with the transcript, picks the 3 strongest and writes 2-3 short headlines for each, in the video’s own words. Needs AI switched on for this install (503 "Add an Anthropic key to switch this on." otherwise). The newest run replaces the last one’s picks.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail-lab/ai" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "picks": [
    {
      "candidate": "tc_abc123def4",
      "rank": 1,
      "reason": "Clear face, eye contact.",
      "headlines": [
        "$0 to $40,000 a month",
        "The 3-step system"
      ]
    }
  ],
  "note": null,
  "candidates": [
    "…"
  ]
}

POST /api/library/v_abc123def456/thumbnail-tests Full access

Start a thumbnail test: visitors split evenly between 2 to 4 thumbnails (arms a-d, each visitor always sees the same one), judged on play rate (plays ÷ impressions). candidate is a candidate id or "current" (the thumbnail live now). A video with a phone thumbnail needs a phone version of each (phoneCandidate, or a candidate made with phoneOf). One live test per video, of either kind. autoApply (default false): the hourly job makes a called winner the thumbnail.

curl -X POST "https://app.vidonomics.com/api/library/v_abc123def456/thumbnail-tests" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"Faces vs text","arms":[{"candidate":"current"},{"candidate":"tc_abc123def4"},{"candidate":"tc_def456abc1","phoneCandidate":"tc_ghi789def2"}],"autoApply":false}'
Response
{
  "id": "x_abc123def456",
  "kind": "thumbnail",
  "goal": "playRate",
  "status": "running",
  "arms": "[{\"key\":\"a\",\"label\":\"Current thumbnail\",\"poster\":\"…\"},…]",
  "auto_apply": 0
}

GET /api/experiments/<x_id> Read only

A test and its live results. For a thumbnail test, result.arms holds each thumbnail’s label, poster, impressions, plays, play rate (value), the rest of the chain (leads, booked, sales, revenue, revenuePerPlay, in result.currency; verified payments only, as in A/B tests) and chance of being the best (probBest). Play rate alone decides the winner; result.winner is set once one is called (95% and enough impressions on every arm).

curl "https://app.vidonomics.com/api/experiments/<x_id>" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "experiment": {
    "id": "x_abc123def456",
    "kind": "thumbnail",
    "status": "running"
  },
  "result": {
    "goal": "playRate",
    "arms": [
      {
        "key": "a",
        "label": "Current thumbnail",
        "impressions": 812,
        "plays": 97,
        "value": 0.119,
        "probBest": 0.03
      },
      {
        "key": "b",
        "label": "From $0 to $40k",
        "impressions": 806,
        "plays": 141,
        "value": 0.175,
        "probBest": 0.97
      }
    ],
    "enoughData": true,
    "requiredTrials": 640,
    "leader": "b",
    "winner": "b",
    "verdict": "winner"
  }
}

POST /api/experiments/<x_id>/stop Full access

End a test. For a thumbnail test: { winner: "a"-"d", apply: true } makes the winner’s image (and phone image) the video’s thumbnail, live straight away; without apply the thumbnail stays as it was. Other unpublished draft changes stay drafts.

curl -X POST "https://app.vidonomics.com/api/experiments/<x_id>/stop" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"winner":"b","apply":true}'

POST /api/experiments/<x_id>/auto-apply Full access

Thumbnail tests: switch auto-apply on or off. On, the hourly job ends the test and applies the winner once one is called.

curl -X POST "https://app.vidonomics.com/api/experiments/<x_id>/auto-apply" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"on":true}'

Settings templates

GET /api/library/templates Read only

The account’s settings templates, by name: { id, name, settings, created, updated }.

A template carries how the player looks and behaves: mode, ratio, fit, mobileRatio, mobileFit, color, controls, speed, speedMenu, fastBar, fastBarSpeed, fastBarMobileSpeed, barHideFirstVisit, barStyle, unmuteTitle, unmuteSub, unmuteTitleMobile, unmuteSubMobile, forwardParams, captionsOn, smartPause, pip, pixelCompat, disablePausing, resumePrompt, focusOnUnmute, seekable, startQuality. Never per-video items: ctas, chapters, pauseScreens, gate, tags, conditions, rollout, fallback, posterMobile, emailImage, pageUrl, previewFrom, previewTo, endRedirect, endRedirectSeconds, expireAt, expireMessage, expireHref, pixelTitle (nor captions, thumbnails or A/B tests).

curl "https://app.vidonomics.com/api/library/templates" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
[
  {
    "id": "tpl_abc123def456",
    "name": "House style",
    "settings": {
      "mode": "smart",
      "ratio": "16/9",
      "color": "#f59e0b",
      "controls": false
    },
    "created": 1762900000000,
    "updated": 1762900000000
  }
]

POST /api/library/templates Full access

Save a template from a video’s current draft settings ({ name, video }), or from settings you give ({ name, settings }: only the template keys given are kept). Names are unique in the account (409).

curl -X POST "https://app.vidonomics.com/api/library/templates" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"House style","video":"v_abc123def456"}'
Response
{
  "template": {
    "id": "tpl_abc123def456",
    "name": "House style",
    "settings": {
      "mode": "smart",
      "color": "#f59e0b",
      "…": "…"
    }
  },
  "leftOut": [
    "ctas",
    "chapters",
    "…"
  ]
}

PUT /api/library/templates/<tpl_id> Full access

Rename a template and/or replace its settings. DELETE /api/library/templates/<tpl_id> removes it (videos keep their settings).

curl -X PUT "https://app.vidonomics.com/api/library/templates/<tpl_id>" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"House style v2"}'

POST /api/library/templates/<tpl_id>/apply Full access

Apply a template to chosen videos ({ videos: [ids] }) or every video in a folder ({ folder }), up to 100 at a time. Only the template’s settings change; each video keeps its own buttons, chapters, images and the rest. Drafts only, unless publish is true: then up to 25 go live per request, and the rest are applied as drafts and listed under notPublished.

curl -X POST "https://app.vidonomics.com/api/library/templates/<tpl_id>/apply" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"videos":["v_abc123def456","v_def456abc123"],"publish":false}'
Response
{
  "applied": [
    {
      "id": "v_abc123def456",
      "title": "Main VSL"
    }
  ],
  "published": [],
  "notPublished": [],
  "skipped": [
    {
      "id": "v_def456abc123",
      "reason": "not found"
    }
  ]
}

Embed code and placement

GET /api/setup/embed?video=v_abc123def456&builder=gohighlevel Read only

The exact video embed, the site tag and the thank-you snippet, with placement steps for a page builder (gohighlevel, clickfunnels, wordpress, webflow, framer, shopify, kajabi, carrd, wix, squarespace, html). Optional: reveal=<seconds> adds a timed button; iframe=1 gives the iframe version. Without video: the site tag only.

curl "https://app.vidonomics.com/api/setup/embed?video=v_abc123def456&builder=gohighlevel" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "video": {
    "id": "v_abc123def456",
    "title": "Main VSL",
    "published": true
  },
  "embed": "<div data-vsl=\"v_…\" …></div>\n<script src=\"…/dist/vsl-player.js\" data-collect=\"…/collect\" data-site=\"ws_…\" async></script>",
  "siteTag": "<script src=\"…/dist/vsl-player.js\" …></script>",
  "thankYou": "<script>…vslq.push(['convert', 'lead'])…</script>",
  "builder": {
    "name": "GoHighLevel (funnels & websites)",
    "video": [
      "…"
    ],
    "siteTag": [
      "…"
    ]
  }
}

GET /api/setup/guide Read only

Every placement rule and every builder’s steps, with this account’s site tag.

curl "https://app.vidonomics.com/api/setup/guide" \
  -H "Authorization: Bearer $VSL_API_KEY"

Stats

GET /api/overview Read only

Last 30 days against the 30 before, account-wide and per video.

curl "https://app.vidonomics.com/api/overview" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/stats?video=v_abc123def456&since=1760000000000 Read only

One video: plays, unmute rate, average watched, drop-off curve, funnel, leads, sales, revenue, breakdown by segment. Query: since/until (ms), segment (utm_content, utm_source, device, country, page, variant, param:<name>…), filter=<segment>=<value>, tz (minutes).

curl "https://app.vidonomics.com/api/stats?video=v_abc123def456&since=1760000000000" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/live Read only

Watching now: people playing each video in the last 60 seconds (paused viewers and muted autoplay previews don’t count), busiest first, and the account total (people, so someone with two videos open counts once). Live within about 5 seconds; ask every 15 seconds or more.

curl "https://app.vidonomics.com/api/live" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "windowSeconds": 60,
  "at": 1762900000000,
  "total": 12,
  "videos": [
    {
      "video": "v_abc123def456",
      "title": "Main VSL",
      "watching": 9
    },
    {
      "video": "v_def456abc123",
      "title": "Short VSL",
      "watching": 3
    }
  ]
}

GET /api/videos Read only

Videos with events, and when they were last seen.

curl "https://app.vidonomics.com/api/videos" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/usage Read only

Bandwidth and plays this billing period.

curl "https://app.vidonomics.com/api/usage" \
  -H "Authorization: Bearer $VSL_API_KEY"

Leads

GET /api/leads?q=sam Read only

Leads newest first (up to 200), with how much they watched and whether they bought. q searches email and name. With form capture on, each lead also carries its latest form answers.

curl "https://app.vidonomics.com/api/leads?q=sam" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/leads/<viewer-id> Read only

One lead: contact, per-video watch summary, every visit, conversions, and submitted forms with their answers (form capture).

curl "https://app.vidonomics.com/api/leads/<viewer-id>" \
  -H "Authorization: Bearer $VSL_API_KEY"

DELETE /api/leads/<viewer-id>

Delete a lead and their data (privacy requests), including recordings of their visits.

curl -X DELETE "https://app.vidonomics.com/api/leads/<viewer-id>" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/leads/<viewer-id>/timeline Read only

Lead notes and automatic events, newest first (lead notes).

curl "https://app.vidonomics.com/api/leads/<viewer-id>/timeline" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/leads/<viewer-id>/notes Full access

Add a note to a lead (lead notes). PUT/DELETE /api/leads/<viewer-id>/notes/<id> edit or remove it.

curl -X POST "https://app.vidonomics.com/api/leads/<viewer-id>/notes" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"type":"call","body":"Booked for Thursday"}'

Recordings

GET /api/recordings Read only

Recorded visits (replays of the page around the video), newest first, 50 per page (limit up to 200). Each has the page (address without its query string), device, window size, start, length in ms, chunk count, stored bytes, the video on the page and the lead when the visitor gave an email. Filters: page (part of the address), lead (viewer id), q (lead email or name, or page), device (mobile, tablet, desktop), video, since / until (ms), min / max (seconds long). Pass next back as before for the next page. Recording is off until an owner turns on "Record visits" (Team & settings → Tracking); recordVisits and recordRate say how it is set.

curl "https://app.vidonomics.com/api/recordings" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "recordVisits": true,
  "recordRate": 25,
  "storage": "r2",
  "recordings": [
    {
      "id": "r0abcdefghijklmnop",
      "vid": "3f2b9c1e-8a4d-4c2b-9f1e-1234567890ab",
      "lead": {
        "email": "sam@example.com",
        "name": "Sam"
      },
      "video": "v_abc123def456",
      "videoTitle": "Main VSL",
      "page": "https://example.com/go",
      "device": "mobile",
      "width": 390,
      "height": 844,
      "started": 1762900000000,
      "ended": 1762900185000,
      "duration": 185000,
      "chunks": 19,
      "bytes": 61234
    }
  ],
  "next": "1762900000000.r0abcdefghijklmnop"
}

GET /api/recordings/<recording-id> Read only

One recording (as in the list) and its chunks in replay order: seq, gzipped bytes, event count, first and last timestamp.

curl "https://app.vidonomics.com/api/recordings/<recording-id>" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "recording": {
    "id": "r0abcdefghijklmnop",
    "duration": 185000,
    "chunks": 2
  },
  "chunks": [
    {
      "seq": 0,
      "bytes": 41000,
      "events": 310,
      "first": 1762900000000,
      "last": 1762900010000
    },
    {
      "seq": 1,
      "bytes": 20234,
      "events": 240,
      "first": 1762900010000,
      "last": 1762900185000
    }
  ]
}

GET /api/recordings/<recording-id>/chunks/<seq> Read only

One chunk’s events, in the rrweb format (replay them with rrweb’s Replayer, in seq order). The player’s own moments (play, pause, milestones, button clicks) are custom events tagged "vsl". Typed input is masked when it is recorded, so it never reaches this API.

curl "https://app.vidonomics.com/api/recordings/<recording-id>/chunks/<seq>" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "seq": 0,
  "events": [
    {
      "type": 4,
      "timestamp": 1762900000000,
      "data": {
        "href": "https://example.com/go",
        "width": 390,
        "height": 844
      }
    },
    {
      "type": 5,
      "timestamp": 1762900004000,
      "data": {
        "tag": "vsl",
        "payload": {
          "e": "play",
          "at": 0
        }
      }
    }
  ]
}

Conversions

POST /api/conversions/import

Import affiliate commissions or sales: rows of { sub, amount, currency, id, date, status }.

curl -X POST "https://app.vidonomics.com/api/conversions/import" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"rows":[{"sub":"f3a9…","amount":"97.00","currency":"usd","id":"C-1001","date":"2026-11-10","status":"approved"}]}'
Response
{
  "rows": 1,
  "added": 1,
  "matched": 1,
  "skipped": 0
}

POST /webhooks/<workspace>/custom?key=<key>

Your checkout’s sale/refund/booking webhook (no API key: the URL key, from GET /api/workspace → webhooks.custom). JSON or form fields: email, amount or amount_cents, currency, order_id, type.

curl -X POST "https://app.vidonomics.com/webhooks/<workspace>/custom?key=<key>" \
  -H "content-type: application/json" \
  -d '{"email":"buyer@example.com","amount":997,"currency":"usd","order_id":"INV-1042"}'

POST /webhooks/<workspace>/calendly

Where Calendly (invitee.created, invitee.canceled), Cal.com (/calcom: BOOKING_CREATED, BOOKING_CANCELLED, BOOKING_RESCHEDULED), Typeform (/typeform: form_response) and Tally (/tally: FORM_RESPONSE) post. No API key: each request is signed by the tool with the workspace’s signing secret (GET /api/booking-sources). iClosed can’t sign, so it posts to /iclosed?key=<key>. Booked calls and leads are stored once per booking or response, cancellations mark the booking cancelled. Setup: docs/SOURCES.md.

curl -X POST "https://app.vidonomics.com/webhooks/<workspace>/calendly" \
  -H 'Calendly-Webhook-Signature: t=<unix>,v1=<hex hmac>' -d '{"event":"invitee.created","payload":{…}}'

POST /webhooks/<workspace>/activecampaign?key=<key>

Where ActiveCampaign posts deal and tag events (form fields, as ActiveCampaign sends them). No API key: the random key in the address (inboundUrl above) is the authentication, as ActiveCampaign webhooks are unsigned by default. Test connection sets this up for you.

curl -X POST "https://app.vidonomics.com/webhooks/<workspace>/activecampaign?key=<key>" \
  -d 'type=deal_update&deal[id]=901&deal[status]=1&deal[value]=4500&deal[currency]=usd&deal[contact_email]=buyer@example.com'

Account settings and integrations

GET /api/booking-sources Read only

Booking calendars and form tools (calendly, calcom, iclosed, typeform, tally): connected or not, the webhook address, the signing secret (owners), counts of requests received / not counted / tests / failed, the last event and problem, and the 10 most recent events (what happened, never who). PUT /api/booking-sources/<source> with {} connects (a new secret), {secret} uses the tool’s own, {disconnect: true} switches it off; POST /api/booking-sources/<source>/rotate makes a new secret or address.

curl "https://app.vidonomics.com/api/booking-sources" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "sources": [
    {
      "id": "calendly",
      "name": "Calendly",
      "kind": "booked",
      "signed": true,
      "connected": true,
      "webhookUrl": "https://…/webhooks/ws_…/calendly",
      "secret": "vx_…",
      "counts": {
        "received": 12,
        "ignored": 1,
        "test": 0,
        "failed": 0
      },
      "lastEventAt": 1762900000000,
      "lastStatus": "ok",
      "lastError": null,
      "recent": [
        {
          "action": "booked",
          "status": "ok",
          "detail": "booked call recorded, matched to a visitor",
          "matched": true,
          "received": 1762900000000
        }
      ]
    }
  ]
}

GET /api/workspace Read only

Account settings and which integrations are connected (never the secrets), plus the webhook URLs for Stripe, Whop and your checkout.

curl "https://app.vidonomics.com/api/workspace" \
  -H "Authorization: Bearer $VSL_API_KEY"

PUT /api/workspace

Change account settings and connect integrations: stripeWebhookSecret, whopWebhookSecret, whopApiKey, whopPlans, closeApiKey, closeCreateLeads, closeBookedStatuses, metaPixelId, metaAccessToken, metaAdAccount, metaTestCode, metaBrowserEvents, allowedDomains, ipFilter, weeklyEmail, bandwidthCapGb, capAction, affiliateRules, impactSid, impactToken, customWebhookKey ("rotate"). Secrets are write-only.

curl -X PUT "https://app.vidonomics.com/api/workspace" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"metaPixelId":"123456789012345","metaAccessToken":"EAAB…"}'

POST /api/integrations/meta/test

Send a test event to Meta (shows in Events Manager → Test events with the test code).

curl -X POST "https://app.vidonomics.com/api/integrations/meta/test" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/integrations/overview Read only

Every connection (CRMs, checkouts, ad platforms, automation) grouped by kind of business, each with its state (connected, off, error, partial), what it does, when it last sent and its last error.

curl "https://app.vidonomics.com/api/integrations/overview" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/integrations/activecampaign Read only

The native ActiveCampaign connection (the same shape for ghl, hubspot, google-ads, tiktok, ga4): enabled, what is still missing, settings, which secrets are set (never their values), the last success and error, and recent sends. Owners also get inboundUrl, the webhook address with its key.

curl "https://app.vidonomics.com/api/integrations/activecampaign" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "provider": "activecampaign",
  "enabled": true,
  "missing": [],
  "config": {
    "accountUrl": "https://youraccount.api-us1.com",
    "bookedTags": "Call booked"
  },
  "secretsSet": {
    "apiKey": true
  },
  "inboundUrl": "https://…/webhooks/ws_…/activecampaign?key=ak_…",
  "inboundSet": true,
  "webhookSet": true,
  "counts": {
    "ok": 12,
    "failed": 0,
    "retrying": 0,
    "skipped": 0,
    "lastSent": 1762900000000
  },
  "sends": []
}

PUT /api/integrations/activecampaign

Connect ActiveCampaign: accountUrl (Settings → Developer, https://<account>.api-us1.com) and apiKey (write-only, stored encrypted). Switches on once both are there. Optional: phoneCountry, bookedTags, wonTags, bookedStages, wonStages (comma-separated names), percentField and videoField (custom field ids for % watched and the video), currency. { disconnect: true } switches it off, removes the key and our webhook in ActiveCampaign.

Out: each lead is synced as a contact by email (POST /api/3/contact/sync) and tagged "VSL watched 25%/50%/75%/100%", "VSL clicked button", "VSL booked", "VSL bought" (tags made once and cached). In: a deal marked Won or in a won stage → a sale with its value; a booked stage or booked tag → a booked call; matched by email, never echoed back.

curl -X PUT "https://app.vidonomics.com/api/integrations/activecampaign" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"accountUrl":"https://youraccount.api-us1.com","apiKey":"<ActiveCampaign API key>","bookedTags":"Call booked","percentField":"12"}'

POST /api/integrations/activecampaign/test

Check the key (GET /api/3/users/me), make the VSL tags, list the account’s custom fields (to pick percentField / videoField), and add our webhook in ActiveCampaign (deal_add, deal_update, contact_tag_added). POST /api/integrations/activecampaign/key makes a new inbound address and moves the webhook to it.

curl -X POST "https://app.vidonomics.com/api/integrations/activecampaign/test" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "ok": true,
  "message": "Connected as you@example.com. The 7 VSL tags are ready. Bookings and won deals will come back on their own.",
  "fields": [
    {
      "id": "12",
      "title": "VSL % watched"
    }
  ]
}

GET /api/members

People in the account. POST /api/members/invite { role: member|analyst, email? } makes an invite link (keys can’t invite owners); DELETE /api/members/<id> removes someone (not owners).

curl "https://app.vidonomics.com/api/members" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/billing

Plan and trial state (view only: keys can never change the plan or payment method).

curl "https://app.vidonomics.com/api/billing" \
  -H "Authorization: Bearer $VSL_API_KEY"

Ad spend and attribution

GET /api/overlay?level=ad&ids=6001,6002&from=2026-11-01&to=2026-11-07&model=paid&window=7 Read only

The attribution table’s own rows keyed by the ad platform’s ids, for the Ads Manager overlay (Chrome extension, docs/ADS-OVERLAY.md) or any tool that joins on Meta ids. level: campaign, adset or ad (omit for all three). ids: up to 500 (omit for every row). since/until work as from/to; model, window, date, revenue and sci exactly as /api/attribution; platform: meta (default), google, tiktok, microsoft. profit is true once the account has costs set up (then cm, netProfit and poas mean something). Names and numbers only, never a person. Rate limited per key.

curl "https://app.vidonomics.com/api/overlay?level=ad&ids=6001,6002&from=2026-11-01&to=2026-11-07&model=paid&window=7" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "workspace": {
    "name": "Winning Streak"
  },
  "platform": "meta",
  "level": "ad",
  "from": "2026-11-01",
  "to": "2026-11-07",
  "timezone": "Australia/Brisbane",
  "currency": "aud",
  "model": "paid",
  "window": 7,
  "profit": false,
  "rows": [
    {
      "level": "ad",
      "id": "6002",
      "campaignId": "4001",
      "adsetId": "5001",
      "name": "Hook B",
      "spend": 20,
      "leads": 1,
      "booked": 1,
      "costPerBooked": 20,
      "sales": 1,
      "revenue": 3000,
      "roas": 150,
      "cpa": 20,
      "cm": 3000,
      "netProfit": 2980,
      "poas": 150
    }
  ]
}

GET /api/overlay/me Read only

Which workspace this key opens, its access, the report’s time zone and currency, and the connected ad accounts (the overlay’s popup uses it to check a key and to pick the workspace for the ad account on screen).

curl "https://app.vidonomics.com/api/overlay/me" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "workspace": {
    "id": "ws_abc123def4567890",
    "name": "Winning Streak"
  },
  "scope": "read",
  "timezone": "Australia/Brisbane",
  "currency": "aud",
  "accounts": [
    {
      "platform": "meta",
      "account": "1234567",
      "name": "WS Ads"
    }
  ]
}

GET /api/attribution?from=2026-11-01&to=2026-11-07&model=paid&window=7&date=conversion&revenue=ltv Read only

Which ad made money: spend, impressions, clicks, leads, booked calls, sales, revenue, cost per lead / call, ROAS and CPA per campaign → ad set → ad, then other paid traffic, Direct and organic, Unattributed (with why) and the Total. model: paid (Paid priority), last, first, linear, scientific (sci=<days>, default 7). window: 1, 7, 14, 28 or 90 days. date: conversion or click. revenue: ltv (every payment) or new (each person’s first). Days in the ad account’s time zone (tz= overrides); money in its currency. &format=csv for a spreadsheet.

Credited revenue + Unattributed always equals real revenue (verified payments and won deals, net of refunds): check.ok says so on every report. docs/ATTRIBUTION.md explains the models and the URL parameters to put on ads.

curl "https://app.vidonomics.com/api/attribution?from=2026-11-01&to=2026-11-07&model=paid&window=7&date=conversion&revenue=ltv" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "from": "2026-11-01",
  "to": "2026-11-07",
  "timezone": "Australia/Brisbane",
  "currency": "aud",
  "model": "paid",
  "kpis": {
    "spend": 200.5,
    "revenue": 4500,
    "adRevenue": 4000,
    "roas": 19.95,
    "sales": 4,
    "cpa": 66.83,
    "prior": {
      "from": "2026-10-25",
      "to": "2026-10-31",
      "spend": 999
    }
  },
  "rows": [
    {
      "id": "meta|4001",
      "level": "campaign",
      "name": "Cold | VSL",
      "spend": 170.5,
      "leads": 2,
      "booked": 1,
      "sales": 1,
      "revenue": 3000,
      "roas": 17.6,
      "children": [
        "…"
      ]
    }
  ],
  "unattributed": {
    "sales": 1,
    "revenue": 500,
    "reasons": {
      "no_visit": {
        "conversions": 1,
        "revenue": 500
      }
    }
  },
  "check": {
    "realRevenue": 4500,
    "credited": 4000,
    "unattributed": 500,
    "ok": true
  }
}

GET /api/spend Read only

The ad accounts spend is imported from (Meta, and Google Ads when connected): name, currency, time zone, last import and the last error in the platform’s own words.

curl "https://app.vidonomics.com/api/spend" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "accounts": [
    {
      "platform": "meta",
      "account": "1234567",
      "name": "WS Ads",
      "currency": "aud",
      "timezone": "Australia/Brisbane",
      "backfilled": true,
      "lastPullAt": 1763251200000,
      "error": null
    }
  ]
}

POST /api/spend/pull Full access

Import spend now (otherwise hourly; the last 3 days are pulled again every night because Meta revises them). At most once a minute.

curl -X POST "https://app.vidonomics.com/api/spend/pull" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "results": [
    {
      "platform": "meta",
      "account": "1234567",
      "ok": true,
      "rows": 42,
      "mode": "hourly",
      "range": [
        "2026-11-15",
        "2026-11-16"
      ]
    }
  ]
}

Calls and LTV

GET /api/pipeline?from=2026-11-01&to=2026-11-07 Read only

The call pipeline for people whose first booking was in the period: booked, qualified, showed, noShow, closed (won), lost, cancelled, showRate (showed ÷ booked), closeRate (closed ÷ showed), revenue (their verified payments from the booking on, net of refunds, renewals included), avgBookToCallHours and avgCallToSaleDays; the same per rep (the latest CRM user or booking host named on each person; rep null = none recorded); and the people (newest booking first, up to 200). Calls are qualified only when a CRM status mapped to qualified, or a manual mark, says so. Days in the ad account’s time zone (tz= overrides).

curl "https://app.vidonomics.com/api/pipeline?from=2026-11-01&to=2026-11-07" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "from": "2026-11-01",
  "to": "2026-11-07",
  "timezone": "Australia/Brisbane",
  "currency": "aud",
  "totals": {
    "booked": 40,
    "qualified": 22,
    "showed": 28,
    "noShow": 9,
    "closed": 7,
    "lost": 12,
    "cancelled": 3,
    "showRate": 0.7,
    "closeRate": 0.25,
    "revenue": 35000,
    "avgBookToCallHours": 46.5,
    "avgCallToSaleDays": 1.2
  },
  "reps": [
    {
      "rep": "Jess Closer",
      "booked": 25,
      "showed": 18,
      "closed": 5,
      "showRate": 0.72,
      "closeRate": 0.2778,
      "revenue": 25000
    }
  ],
  "people": [
    {
      "vid": "viewer-…",
      "email": "sam@x.com",
      "name": "Sam",
      "state": "showed",
      "owner": "Jess Closer",
      "bookedAt": 1762300000000,
      "callAt": 1762480000000,
      "closedAt": null
    }
  ]
}

GET /api/pipeline/mapping Read only

Each CRM (close, ghl, hubspot, activecampaign): connected or not, and every status or stage it has sent, with the pipeline stage it counts as (stage: booked, qualified, showed, no_show, won, lost, cancelled or ignore), guessed: true when it is the guess from the name rather than a saved choice, and how often it was seen. HubSpot lists its default pipeline stages before any deal arrives.

curl "https://app.vidonomics.com/api/pipeline/mapping" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "stages": [
    {
      "id": "booked",
      "name": "Booked"
    }
  ],
  "crms": [
    {
      "id": "close",
      "name": "Close",
      "connected": true,
      "statuses": [
        {
          "status": "call booked",
          "label": "Call Booked",
          "stage": "booked",
          "guessed": true,
          "seen": 41,
          "lastSeen": 1763250000000
        }
      ]
    }
  ]
}

PUT /api/pipeline/mapping Full access

Say what a CRM status means. stage: booked, qualified, showed, no_show, won, lost, cancelled, ignore (not a pipeline step), or null (back to the guess). It applies to past events too: they keep the CRM’s own words. For HubSpot, a stage mapped here is also read from then on.

curl -X PUT "https://app.vidonomics.com/api/pipeline/mapping" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"crm":"close","status":"Demo done","stage":"showed"}'

GET /api/leads/<vid>/pipeline Read only

One lead’s pipeline: the first time they reached each stage (stages, ms), where they are now (state), the rep (owner), the call’s time, how the call closed (crm, sale or manual) and every event behind it, oldest first, with its source, the CRM’s words and who made a manual change.

curl "https://app.vidonomics.com/api/leads/<vid>/pipeline" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/leads/<vid>/pipeline Full access

A manual mark on the lead: { stage } (e.g. "showed"), { stage, clear: true } to remove a stage that was wrong, or { owner } to name the rep. Each is a new event: nothing earlier is changed or deleted. Answers like the GET.

curl -X POST "https://app.vidonomics.com/api/leads/<vid>/pipeline" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"stage":"no_show"}'

GET /api/ltv?from=2026-08-01&to=2026-08-31&anchor=touch&by=campaign Read only

Lifetime value of the people whose first touch (anchor=touch) or first payment (anchor=sale) was in the period, grouped by entry source, campaign or ad (by=source|campaign|ad) or first product (by=product): customers, revenue so far, spend in the period and CPA (spend ÷ customers), and per customer the value at 7, 30, 60, 90, 180 and 365 days (ltv), with how many customers are that old yet (mature: fewer than customers means the figure is still growing). Money is the shared revenue rule: verified payments net of refunds, renewals and instalments included, in the ad account’s currency (others in otherCurrencies).

curl "https://app.vidonomics.com/api/ltv?from=2026-08-01&to=2026-08-31&anchor=touch&by=campaign" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "from": "2026-08-01",
  "to": "2026-08-31",
  "currency": "aud",
  "anchor": "touch",
  "by": "campaign",
  "days": [
    7,
    30,
    60,
    90,
    180,
    365
  ],
  "groups": [
    {
      "key": "c|meta|4001",
      "name": "Cold | VSL",
      "customers": 12,
      "revenue": 61000,
      "spend": 18000,
      "cpa": 1500,
      "ltv": {
        "7": 3100,
        "30": 4200,
        "60": 4800,
        "90": 5083.33,
        "180": null,
        "365": null
      },
      "mature": {
        "7": 12,
        "30": 12,
        "60": 12,
        "90": 9,
        "180": 0,
        "365": 0
      }
    }
  ],
  "total": {
    "customers": 20
  }
}

GET /api/answers?from=2026-11-01&to=2026-11-30&top=12 Read only

Revenue by answer: every form and quiz sent in the period (by the day it was sent, in the ad account’s time zone; tz= overrides), each question and answer with leads (people, once per answer, across their devices), buyers (leads who paid more than nothing from their answer on), conversionRate (buyers ÷ leads), revenue (what they paid from their answer until now, net of refunds; test orders never count), revenuePerLead, aov (revenue ÷ orders) and medianDaysToFirstPurchase. Each question ends with "Other (n answers)" (kind other: the answers past the top, 1 to 50, default 12) and "No answer" (kind none: the form’s leads who skipped it); each form has a total (kind total). Money is the shared revenue rule in the report currency (others in otherCurrencies). docs/ANSWERS.md.

curl "https://app.vidonomics.com/api/answers?from=2026-11-01&to=2026-11-30&top=12" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "from": "2026-11-01",
  "to": "2026-11-30",
  "timezone": "Australia/Brisbane",
  "currency": "aud",
  "top": 12,
  "forms": [
    {
      "name": "Selfawear message quiz",
      "total": {
        "value": "All leads",
        "kind": "total",
        "leads": 312,
        "buyers": 41,
        "orders": 47,
        "conversionRate": 0.1314,
        "revenue": 4120,
        "revenuePerLead": 13.21,
        "aov": 87.66,
        "medianDaysToFirstPurchase": 3.5
      },
      "questions": [
        {
          "label": "Who’s it for?",
          "distinct": 4,
          "answered": 305,
          "rows": [
            {
              "value": "My daughter",
              "kind": "answer",
              "leads": 120,
              "buyers": 22,
              "orders": 25,
              "conversionRate": 0.1833,
              "revenue": 2400,
              "revenuePerLead": 20,
              "aov": 96,
              "medianDaysToFirstPurchase": 2
            },
            {
              "value": "No answer",
              "kind": "none",
              "leads": 7,
              "buyers": 0,
              "orders": 0,
              "conversionRate": 0,
              "revenue": 0,
              "revenuePerLead": 0,
              "aov": null,
              "medianDaysToFirstPurchase": null
            }
          ]
        }
      ]
    }
  ],
  "otherCurrencies": {},
  "capped": false
}

Profit

GET /api/profit/summary?from=2026-11-01&to=2026-11-07 Read only

Daily profit: orders, revenue, net sales, product cost, shipping, fees, per-sale costs, gross profit, contribution margin (CM), ad spend, expenses, net profit (CM − spend − expenses) and MER (revenue ÷ spend), with the total, each sale’s numbers, and how many items sold had no cost. Days and currency as on /api/attribution (tz= overrides). &format=csv: one line per sale.

curl "https://app.vidonomics.com/api/profit/summary?from=2026-11-01&to=2026-11-07" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "from": "2026-11-01",
  "to": "2026-11-07",
  "timezone": "Australia/Brisbane",
  "currency": "aud",
  "total": {
    "orders": 12,
    "revenue": 1450,
    "contribution": 820.4,
    "spend": 350,
    "expenses": 140,
    "netProfit": 330.4,
    "mer": 4.14
  },
  "days": [],
  "orders": [],
  "missingCosts": {
    "units": 0,
    "variants": 0
  },
  "check": {
    "ok": true
  }
}

GET /api/stores?from=2026-11-01&to=2026-11-07&currency=aud Read only

All stores: one row per workspace you may see (a login: every workspace you belong to; an API key: its own workspace only), each in its own currency with revenue, ad spend, MER, new-customer revenue, NC-ROAS, orders, AOV, and contribution margin and net profit where costs are set up (the store’s own Attribution and Profit numbers; money in a second currency is converted in and listed under converted). total: every store converted into currency (default aud) at each day’s ECB rate, a weekend using the Friday’s; fx.missing names money left out for want of a rate. docs/ALL-STORES.md.

curl "https://app.vidonomics.com/api/stores?from=2026-11-01&to=2026-11-07&currency=aud" \
  -H "Authorization: Bearer $VSL_API_KEY"
Response
{
  "from": "2026-11-01",
  "to": "2026-11-07",
  "currency": "aud",
  "scope": "memberships",
  "rows": [
    {
      "id": "ws_abc123def4567890",
      "name": "Pure Grounding USA",
      "role": "owner",
      "current": false,
      "currency": "usd",
      "timezone": "America/New_York",
      "revenue": 12450.5,
      "spend": 4100,
      "mer": 3.04,
      "ncRevenue": 8200,
      "ncRoas": 2,
      "orders": 131,
      "aov": 95.04,
      "contribution": 5320.1,
      "netProfit": 1220.1,
      "hasCosts": true,
      "converted": [],
      "missingRates": [],
      "capped": false
    }
  ],
  "total": {
    "currency": "aud",
    "revenue": 18950.2,
    "spend": 6240.6,
    "mer": 3.04,
    "ncRevenue": 12480.3,
    "ncRoas": 2,
    "orders": 131,
    "aov": 144.66,
    "contribution": 8098.7,
    "netProfit": 1857.2,
    "costStores": 1,
    "stores": 1,
    "capped": false,
    "cappedStores": 0
  },
  "fx": {
    "source": "European Central Bank (ECB) daily reference rates, via Frankfurter",
    "note": "rates: ECB, daily",
    "latest": "2026-11-06",
    "missing": []
  },
  "conversionLimit": 200000
}

GET /api/profit/settings Read only

The shipping rule, payment fees per gateway and the fallback product cost now, every saved version (each applies from its date), the default fees and the gateways seen.

curl "https://app.vidonomics.com/api/profit/settings" \
  -H "Authorization: Bearer $VSL_API_KEY"

PUT /api/profit/settings Full access

Save a new version: { shipping: { mode: none|charged|flat|percent|zones, flat, percent, zones: { AU: 9.5, "*": 20 } }, fees: { shopify_payments: { pct: 1.75, fixed: 0.3 } }, defaultCogsPct, from: "start" | "now" | "2026-11-01" }. The first version covers every order; later ones apply from their date. Past versions are never changed.

curl -X PUT "https://app.vidonomics.com/api/profit/settings" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/profit/costs?q=tee Read only

Every variant sold (title, SKU, units, latest price) with its cost per unit now and where it came from (shopify, manual, csv).

curl "https://app.vidonomics.com/api/profit/costs?q=tee" \
  -H "Authorization: Bearer $VSL_API_KEY"

PUT /api/profit/costs Full access

Set a variant’s cost per unit: { variantId (or "sku:<SKU>"), cost, from? }. Applies from now on (the first cost for a variant covers every order); past orders keep theirs.

curl -X PUT "https://app.vidonomics.com/api/profit/costs" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/profit/costs/import Full access

Import costs from CSV text: { csv, from? }. Shopify’s product export works as is (Variant SKU, Cost per item), or any sheet with a Variant ID or SKU column and a Cost column.

curl -X POST "https://app.vidonomics.com/api/profit/costs/import" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/profit/expenses Read only

Every expense: one_off, recurring (every day/week/month/year), per_order and percent (of each sale, optionally one source only), with start and end days. Stopped and removed ones too.

curl "https://app.vidonomics.com/api/profit/expenses" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/profit/expenses Full access

Add an expense: { name, category?, kind, amount | percent, every (recurring), source? (per_order/percent), startDay, endDay? }. Then POST /api/profit/expenses/<id>/stop { endDay } or /archive (kept on record, off the reports).

curl -X POST "https://app.vidonomics.com/api/profit/expenses" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/survey/report?from=2026-11-01&to=2026-11-07 Read only

The post-purchase survey by answer: responses, sales, revenue, gross profit and CM per answer (each sale under its buyer’s latest answer, by order, else by visitor), No answer, the total, the response rate and what people typed under Other.

curl "https://app.vidonomics.com/api/survey/report?from=2026-11-01&to=2026-11-07" \
  -H "Authorization: Bearer $VSL_API_KEY"

GET /api/survey Read only

The survey’s question, answers, whether it’s on, and the snippet for non-Shopify thank-you pages. PUT { enabled, question, options: [{ id?, label }], allowOther } to change it.

curl "https://app.vidonomics.com/api/survey" \
  -H "Authorization: Bearer $VSL_API_KEY"

Audiences

GET /api/audiences Read only

Saved lead audiences ("watched 50%, didn’t book") and their Meta sync state.

curl "https://app.vidonomics.com/api/audiences" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/audiences

Create an audience, optionally synced to a Meta Custom Audience. PUT/DELETE /api/audiences/<id>; POST /api/audiences/<id>/sync.

curl -X POST "https://app.vidonomics.com/api/audiences" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"Watched half, no call","rules":{"video":"v_abc123def456","minPct":50,"withinDays":30,"booked":"no","bought":"any","cta":"any"},"metaSync":true}'

Webhooks

GET /api/integrations Read only

Outbound webhooks and recent deliveries. Event types: lead.identified, video.milestone, cta.clicked, tag.fired, sale.completed, video.abandoned. Deliveries are signed: X-VSL-Signature: t=<unix>,v1=<hex HMAC-SHA256 of "t.body">; retries at 1m, 5m, 30m, 2h, 12h.

curl "https://app.vidonomics.com/api/integrations" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/integrations/webhooks

Add a webhook (public https only). The signing secret is returned once. DELETE /api/integrations/webhooks/<id>; POST …/<id>/test sends a test event.

curl -X POST "https://app.vidonomics.com/api/integrations/webhooks" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url":"https://hooks.example.com/vsl","events":["lead.identified","sale.completed"]}'
Response
{
  "id": "wh_…",
  "secret": "whsec_…"
}

Funnels

GET /api/funnels Read only

Funnels → pages → videos meant for each page, with what was seen live on each page (embed, site tag, last event), plus live pages not in a funnel yet.

curl "https://app.vidonomics.com/api/funnels" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/funnels Full access

Create a funnel with pages in order.

curl -X POST "https://app.vidonomics.com/api/funnels" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"Main funnel","pages":[{"url":"https://example.com/free","name":"Opt-in"},{"url":"https://example.com/go","name":"VSL"},{"url":"https://example.com/apply"},{"url":"https://example.com/thank-you"}]}'

POST /api/funnels/<fn_id>/pages Full access

Add a page. PUT/DELETE /api/funnels/pages/<fp_id> rename, reorder or remove it.

curl -X POST "https://app.vidonomics.com/api/funnels/<fn_id>/pages" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/apply","name":"Application"}'

POST /api/funnels/pages/<fp_id>/videos Full access

Record that a video belongs on a page (the plan; the embed still goes on the page). DELETE …/videos/<video id> removes it.

curl -X POST "https://app.vidonomics.com/api/funnels/pages/<fp_id>/videos" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"video":"v_abc123def456"}'

Setup check and live test

GET /api/setup/status Read only

Setup progress (upload, publish, embed seen live, sales, Meta), funnel pages, videos, last test and the next step.

curl "https://app.vidonomics.com/api/setup/status" \
  -H "Authorization: Bearer $VSL_API_KEY"

PUT /api/setup/site Full access

Save the funnel’s page addresses.

curl -X PUT "https://app.vidonomics.com/api/setup/site" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"urls":["https://example.com/go","https://example.com/apply"]}'

GET /api/setup/check?url=https://example.com/go Read only

Fetch a page and check it: our embed and site tag (and that they name this account), published videos, other pixels (Meta, GA4, GTM, Google Ads, TikTok, Vidalytics, Hyros, Cortana), opt-in forms; each failed check has a fix.

curl "https://app.vidonomics.com/api/setup/check?url=https://example.com/go" \
  -H "Authorization: Bearer $VSL_API_KEY"

POST /api/setup/test Full access

Start a 30-minute live test: open openUrl, play, unmute, submit the form with testEmail. Test traffic never counts in stats or leads.

curl -X POST "https://app.vidonomics.com/api/setup/test" \
  -H "Authorization: Bearer $VSL_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/go"}'
Response
{
  "id": "st_…",
  "openUrl": "https://example.com/go?vsl_test=ab12cd34",
  "testEmail": "test+ab12cd34@vidonomics.com"
}

GET /api/setup/test/<st_id> Full access

The test’s checklist: page view, video loaded, autoplay, unmute, test opt-in, Meta and CRM test events; each with a fix when it didn’t fire.

curl "https://app.vidonomics.com/api/setup/test/<st_id>" \
  -H "Authorization: Bearer $VSL_API_KEY"

Where does everything go?

Step-by-step for GoHighLevel, ClickFunnels 2.0, WordPress, Webflow, Framer, Shopify, Kajabi, Carrd, Wix, Squarespace, Custom HTML / anything else: the placement guide (logged in, with your own code and copy buttons) or GET /api/setup/guide.

AI assistants (MCP)

Vidonomics is also a remote MCP server at https://app.vidonomics.com/mcp (Streamable HTTP; JSON responses). Connect with OAuth from Claude.ai, Claude desktop or ChatGPT (add a custom connector with that URL; you approve the account and access level on a Vidonomics consent screen), or with a key in clients that take a header:

claude mcp add --transport http vidonomics https://app.vidonomics.com/mcp --header "Authorization: Bearer vsl_…"

Tools: capabilities, setup_status, list_videos, vidalytics_switch_status, overview, video_stats, live_viewers, conversion_audit, leads, get_embed_code, check_website, list_funnels, list_settings_templates, search, fetch (read); set_funnel_urls, create_video_from_url, update_video_settings, duplicate_video, create_settings_template, apply_settings_template, publish_video, import_from_vidalytics, create_funnel, add_page, assign_video_to_page, run_setup_test (full access); replace_video_from_url, switch_from_vidalytics, set_business_profile (full + account settings). The assistant can't edit your website: it gives you the exact code and where it goes. OAuth metadata: /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server. Disconnect any assistant in Team & settings → API.