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
Level
Can
Read only
Read videos, stats, leads, audiences, funnels, embed codes, setup status and the website check.
Full access
Everything 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.
Full access + account settings
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/libraryRead only
Every video: id, title, status (uploading, encoding, ready, failed), progress, settings (JSON string), published (JSON string or null), folder, tags.
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"
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().
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).
{
"copied": [
"Smart Autoplay (muted preview)",
"…"
],
"notCopied": [
"The video file itself…"
]
}
Switch from Vidalytics
PUT/api/vidalyticsFull access + account settings
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).
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: [] }.
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).
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"
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).
GET/api/vidalytics/baseline/v_abc123def456Read 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.
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/experimentsRead 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? }.
GET/api/library/v_abc123def456/thumbnail-lab?duration=180Read 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.
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.
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"
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}'
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).
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.
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).
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.
GET/api/setup/embed?video=v_abc123def456&builder=gohighlevelRead 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.
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.
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.
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/recordingsRead 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.
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.
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.
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.
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-sourcesRead 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.
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/overviewRead 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.
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.
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"}'
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/membersFull access + account settings
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).
GET/api/overlay?level=ad&ids=6001,6002&from=2026-11-01&to=2026-11-07&model=paid&window=7Read 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.
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).
GET/api/attribution?from=2026-11-01&to=2026-11-07&model=paid&window=7&date=conversion&revenue=ltvRead 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.
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.
GET/api/pipeline?from=2026-11-01&to=2026-11-07Read 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).
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.
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.
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.
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.
GET/api/ltv?from=2026-08-01&to=2026-08-31&anchor=touch&by=campaignRead 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).
GET/api/answers?from=2026-11-01&to=2026-11-30&top=12Read 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.
GET/api/profit/summary?from=2026-11-01&to=2026-11-07Read 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.
GET/api/stores?from=2026-11-01&to=2026-11-07¤cy=audRead 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.
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.
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=teeRead only
Every variant sold (title, SKU, units, latest price) with its cost per unit now and where it came from (shopify, manual, csv).
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/importFull 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/expensesRead 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.
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-07Read 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.
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.
GET/api/setup/check?url=https://example.com/goRead 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.
Video embed: Exactly where the video should appear on the page. One block per video; a page can have any number.
Site tag: Every page of the funnel, in the header / tracking-code area (funnel-wide tracking code where the builder has it). Pages that already carry a video embed have it already: the embed includes the same script.
Thank-you / booking-confirmed page: The thank-you snippet (it includes the site tag) on the page people see after opting in, booking or paying, so the lead, call or sale is counted against what they watched.
Checkout and CRM: Not on the page: connect Stripe, Whop, your checkout or your CRM in Team & settings, so verified sales come in by webhook.
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: