Integrations & APIs

The API: read your data, and connect Claude

The API lets your own scripts and tools read your account's data — analytics, views, orders, ad spend, your VSLs and folders — and, if you allow it, make folders and upload VSLs. The same key connects Claude to your account. It is part of the Scale plan and higher.

Make a key

Open Settings → API and click New key. Give it a name that says what will use it, tick what it may read, and click Create key. The key is shown once — copy it then. If you lose it, Rotate the key to get a new one (the old one stops working at once).

Only the account owner makes keys. A team member can't, and neither can our staff. Make one key per tool, so you can Revoke them one by one; the list shows when each was last used, and from which address.

Edit changes a key's name, its permissions or its addresses without changing the key itself — nothing that uses it has to be updated, and the change takes effect at once.

Only from these addresses ties a key to the addresses of your own server: 203.0.113.7, or a range like 198.51.100.0/24. Anywhere else the key is refused, so a copied key is useless to anyone else. Leave it empty for Claude and for hosted tools, whose addresses change.

What a key may do is what you tick:

PermissionWhat it opens
Folders and VSLsYour folders and VSLs: names, page links, status, length, button link
AnalyticsTotals for a date range, by day, per VSL and per folder, retention
Views, one by oneOne row per view: device, country, utm tags, seconds watched
OrdersOne row per sale: amount, status, source, VSL, utm tags
Buyer details on ordersAdds the buyer's first name, email and city to each order
Ad spendSpend per campaign per day from your connected ad accounts
Create and rename foldersChanges: make a folder, rename it
Upload videos as new VSLs…Changes: upload a video, duplicate, rename or move a VSL, set its traffic weight, pitch time and button link

A key changes nothing unless you tick one of the last two. No key can delete anything, or touch billing, the team, tracking pixels, custom code, domains or account settings — and a key never returns tokens, passwords, file names or visitors' IP addresses.

Making, editing or rotating a key asks for your account password again, and we email you each time one is made, rotated or given more reach. A key keeps working after you sign out, so nobody should be able to make one behind your back.

Send a request

Every address starts with https://app.revvyscales.com/api/v1. Send the key in the Authorization header of every request:

curl https://app.revvyscales.com/api/v1/vsls \
  -H "Authorization: Bearer rvs_live_…"

Never put the key in the address (?key=…). Addresses end up in logs and browser histories, so such a request is refused — and if the key in it is a real one, we revoke that key on the spot and email you. Keep the key on a server, not in a web page or an app people download.

Answers are JSON. A VSL or folder's id is the short code at the end of its page link. Money is in cents of your account's currency. Times are UTC.

Dates. from and to take a day (2026-11-01, in your account's time zone, the end day included) or an exact instant (2026-11-01T00:00:00Z). Without them you get the last 7 days.

Pages. Long lists answer { "data": […], "next_cursor": "…" }. Send ?cursor= with that value (and the same other parameters) to get the next page, until next_cursor is null. ?limit= sets the page size (50 by default, 200 at most).

Trying again safely. If a request that makes something times out, you can't tell whether it went through. Send an Idempotency-Key header — any unique text of your own, like import-2026-11-01-a — with every POST. Sending the same request again with the same key within 24 hours gives you the first answer back instead of a second folder or a second copy.

Request ids. Every answer carries an X-Request-Id header (req_…), and errors repeat it as request_id. Quote it when you write to support.

What you can read

RequestReturns
GET /meThe account, the key's permissions, the limits
GET /usageWhere you stand against your plan: views this billing period, VSLs, folders, storage
GET /folders · GET /folders/{id}Folders with their VSLs and traffic shares; q= finds one by name
GET /vsls · GET /vsls/{id}VSLs: title, link, folder, traffic share, status, length, pitch time, button; q= finds one by title, folder= and status= narrow the list
GET /analytics/summaryThe account's totals for a range; add by=day for one row per day
GET /analytics/breakdownThe totals split by by= country, device, browser, os or a traffic tag (utm_source, utm_campaign…) — which campaign, country or device sells
GET /vsls/{id}/analyticsOne VSL's totals and its retention curve
GET /folders/{id}/analyticsOne folder's totals, with each VSL side by side
GET /sessionsOne row per view (up to 92 days a request); vsl= for one VSL
GET /ordersOne row per sale (up to 92 days a request); vsl= for one VSL, status= for refunds or chargebacks only, order=desc for the newest first
GET /ad-spendSpend, clicks and impressions per campaign per day

GET /folders and GET /vsls answer up to 500 at once; when there are more, next_cursor continues, and limit= sets a smaller page.

A breakdown answers one row per value — { "key": "US", "sessions": …, "orders": …, "revenue_cents": … } — with the busiest first; sort=revenue puts the best earners first, and vsl= or folder= narrows it. A sale is counted under its own tags, or under the tags of the view that bought when it has none. Up to 92 days a request.

The totals are the ones on your analytics pages: sessions, visitors, plays, play_rate, reached_pitch, cta_clicks, avg_watch_seconds, orders, revenue_cents and revenue_per_visitor_cents. Analytics take up to 366 days a request (92 with by=day).

An order's status is paid, partially_refunded, refunded, chargeback, voided, canceled or pending; net_cents is what's left after refunds. counted is false for a store order that didn't come through RevvyScales and that your account leaves out of its figures.

What you can change

Only with a change permission ticked on the key.

RequestDoes
POST /folders with { "name" }Makes a folder
PATCH /folders/{id} with { "name" }Renames it
POST /vsls (multipart, the file as video, optional title, folder)Uploads a video of up to 1 GB as a new VSL, in one request
POST /vsls/import with { "url", "title", "folder" }The same from a public link, in the background
GET /imports/{id} · GET /importsHow an import is going: running, done or failed; the latest imports
PATCH /vsls/{id} with title, folder, traffic_weight, pitch_at_seconds, ctaRenames or moves a VSL, sets its weight in the folder's traffic, the second its pitch starts, or its button ({ "url", "text", "enabled" })
POST /vsls/{id}/duplicate with optional title, folderMakes a copy to test against the original: the same video, ready at once, on its own page

A new VSL starts as preparing and becomes ready when it can take traffic; meanwhile processing_progress says how far it has got. Your plan's limits apply as in the dashboard, and through the API an account can make up to 500 VSLs and folders a day. A request with a field the API doesn't know is refused, never half-applied.

Large files: upload in parts

A video of several gigabytes shouldn't depend on one connection staying up. Send it in parts instead:

  1. POST /uploads with { "filename": "offer.mp4", "size": 1234567890 } (and optional title, folder). The answer has the upload's id, part_size_bytes and how many parts there are.
  2. PUT /uploads/{id}/parts/{n} for each part, numbered from 0, with the raw bytes as the body. Every part is part_size_bytes long except the last. Parts can go in any order, a few at once, and a part can be sent again.
  3. POST /uploads/{id}/complete makes the VSL.

If the connection drops, GET /uploads/{id} lists the parts that arrived (received_parts) — send only the rest. GET /uploads lists your latest uploads, and DELETE /uploads/{id} gives one up and removes its parts. An upload nobody touches for three days expires.

Connect Claude

The same key connects Claude to your account, so you can ask it things like "which VSL earned the most per visitor last week?" or "upload this video into the Joint offer folder". In Claude Code:

claude mcp add --transport http revvyscales https://app.revvyscales.com/api/v1/mcp --header "Authorization: Bearer rvs_live_…"

Any other tool that speaks MCP over HTTP connects to the same address (POST /mcp) with the key as its Bearer token. Claude can do exactly what the key's permissions allow, nothing more — and it is only shown the tools that key can use. Make a read-only key if you only want answers about your numbers.

It also comes with ready-made requests — a weekly report, a comparison of a folder's VSLs, which traffic sells — that show up in Claude as prompts. Through this connection a video is uploaded from a link; a file on your computer goes through the dashboard or the upload in parts above.

Limits and errors

A key can make 120 requests a minute, and all the keys of one account together 480. Past that the answer is 429 with a Retry-After header saying how many seconds to wait; the X-RateLimit-Remaining header on every answer says how many are left. Several wrong keys from one address block that address for a few minutes.

CodeMeans
400Something in the request is wrong; error says what
401No key, or the key was revoked, rotated or has expired
402The account isn't on Scale, or a plan limit was reached
403The key doesn't have that permission, or isn't allowed from that address
404No such VSL, folder or address on your account
409Not yet: an upload still misses parts, or the first request with that Idempotency-Key is still running
410The upload expired — start a new one
413The file or the request is too large
422That Idempotency-Key was already used for a different request
429Too many requests — wait and try again

Every error answers { "error": "what happened", "code": "…", "request_id": "req_…" }.

For developers

GET /reference is the whole API as text — every request, parameter and field — and GET /openapi.json is the same as an OpenAPI 3.1 document for tools that read one. Neither needs a key.

Keep a key safe

A key reads your sales data, so treat it like a password. Don't paste it in chats, tickets or code you share. Give it an expiry when a contractor or a trial of a tool needs it, and tie a server's key to that server's address. If a key may have leaked, Revoke it — it stops working at once. If your plan drops below Scale, your keys switch off by themselves and come back when you return.

Ready to try it yourself?Start your free trial