Automations & API
Part of Studio · last updated 19 November 2026
Put your videos where your work already happens, without copying a link by hand: show them on your own site, post each new one to Slack, log it in Notion, or wire it into anything with Zapier, Make, n8n or a few lines of code. Everything here hands out what you already made. Nothing is ever processed on our servers.
Show a video on any site
- Open the video and press Share.
- Press Copy embed code.
- Paste it into your page — any site builder's "embed" or "HTML" block takes it.
<iframe src="https://reverie.video/embed/jdtasy3b44hg" width="640" height="360" title="How to set up the dashboard" frameborder="0" allow="fullscreen; picture-in-picture" allowfullscreen></iframe>
It plays in the Reverie player, with the Reverie mark linking back to the full watch page. Make the video private, or choose Stop embedding in the same menu, and it stops playing everywhere at once. Password videos ask for the password inside the player.
| Add to the address | What it does |
|---|---|
| ?t=90 or ?t=1m30s | Starts there |
| ?autoplay=1 | Starts playing, muted — browsers only allow muted autoplay |
| ?loop=1 | Starts again at the end |
| ?muted=1 | Starts without sound |
Send new videos somewhere
- Copy an address from the tool that should hear about your videos — in Zapier it is Webhooks by Zapier › Catch Hook; Make, n8n and Slack's workflow builder have the same.
- In Settings › Automations & API, paste it, choose Uploaded, Changed or Deleted, and press Add address.
- Press Send a test. Your tool now knows what a Reverie message looks like.
Each message is a short JSON body:
{
"id": "9k2m4q7r1x3z5v8n",
"event": "video.uploaded",
"created_at": "2026-10-06T10:00:00.000Z",
"data": {
"id": "jdtasy3b44hg",
"title": "How to set up the dashboard",
"url": "https://reverie.video/watch/jdtasy3b44hg",
"embed_url": "https://reverie.video/embed/jdtasy3b44hg",
"thumbnail_url": "https://…",
"duration_ms": 80294, "width": 2214, "height": 1438, "bytes": 116583981,
"visibility": "link", "password_protected": false, "views": 0
}
}
| Event | When |
|---|---|
| video.uploaded | A new video's link is ready |
| video.updated | Its title, who can watch, its password, expiry or embedding changed |
| video.deleted | It was deleted; data carries only its id |
| test | You pressed Send a test |
Answer with any 2xx within 10 seconds. If your address does not, Reverie tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. After 20 failures in a row the address is switched off and Settings says so.
Checking a message really came from us
Every message carries Reverie-Signature: t=<seconds>,v1=<hex>. v1 is HMAC-SHA256 of t + "." + the raw body, keyed with the signing secret shown once when you added the address.
// Node.js
const crypto = require('crypto');
function fromReverie(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const want = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
return fresh && crypto.timingSafeEqual(Buffer.from(want), Buffer.from(v1));
}
Messages also carry Reverie-Event and Reverie-Delivery (unique per message — use it to ignore a repeat).
The API
- In Settings › Automations & API, name a key and press Create key.
- Copy it — it is shown once. Treat it like a password.
- Send it with every request.
curl https://api.reverie.video/api/v1/videos \ -H "Authorization: Bearer rv_your_key"
A key can hold any of three permissions: videos:read to list and fetch, videos:write to change, delete and upload, and hooks to add and remove webhook addresses. A Zapier connection only needs hooks and videos:read.
Endpoints
All under https://api.reverie.video/api. Bodies are JSON. The same list as a machine-readable file: openapi.json (OpenAPI 3.1).
Your plan, how much space is used, and what this key may do.
{ "plan": "studio", "storage": { "used_bytes": 1165839810, "quota_bytes": 53687091200 },
"scopes": ["videos:read", "videos:write", "hooks"] }Your videos, newest first, up to 100 a page. Pass the next you were given as after for the next page; null means that was the last. Add folder_id=<id> for one folder, or folder_id=none for videos in no folder.
{ "videos": [ { "id": "jdtasy3b44hg", "title": "…", "url": "…", … } ], "next": "fj1js0qtk8dg" }One video — the same fields as the webhook's data.
Change any of: title, visibility (link, password, private), password (6 characters or more; "" removes it), expires_at (a future ISO date, or null), embed (true / false) and folder_id (one of your folders, or null). Answers with the video.
curl -X PATCH https://api.reverie.video/api/v1/videos/jdtasy3b44hg \
-H "Authorization: Bearer rv_your_key" -H "Content-Type: application/json" \
-d '{"title": "Dashboard setup, part 1", "visibility": "link"}'Deletes the hosted video and its link. The copy on your computer is never touched.
A short-lived address for the file itself — six hours for an open link, thirty minutes for a protected one. Fetching it never counts as a view.
{ "download_url": "https://…", "expires_in": 21600 }The embed code, ready to paste.
{ "embed_url": "https://reverie.video/embed/jdtasy3b44hg", "html": "<iframe …></iframe>" }The same numbers the Collection shows: plays, unique viewers, how many finished, watch time, how far people got, and plays per day for the last 30 days. Viewers are anonymous.
{ "plays": 41, "unique_viewers": 33, "finished": 19, "finish_rate": 0.46,
"watch_seconds": 2210, "avg_reach": 0.71, "reached": [41, 39, 37, …], "days": [ … ] }The words of the captions you made in the Reverie editor, as txt, vtt, srt or json (each word with its time). Captions are made on your computer; a video without them answers no_transcript.
Your folders with how many videos each holds, or make one with {"name": "Tutorials"}. Move a video with PATCH /v1/videos/<id> and folder_id.
The same addresses as Settings, for tools that subscribe themselves. Send {"url": "https://…", "events": ["video.uploaded"]}; the answer carries the signing secret once.
Uploading from your own tools
Three steps. The space is checked before anything is sent, so an upload that would not fit is refused at once and never half-made.
# 1. Ask for room for the exact size
curl -X POST https://api.reverie.video/api/v1/uploads \
-H "Authorization: Bearer rv_your_key" -H "Content-Type: application/json" \
-d '{"bytes": 116583981, "content_type": "video/mp4"}'
# → { "upload_id": "…", "video_id": "…", "upload_url": "https://…", "headers": { … } }
# 2. Send the file to upload_url with exactly those headers, within 15 minutes
curl -X PUT "$UPLOAD_URL" -H "Content-Length: 116583981" -H "Content-Type: video/mp4" \
--data-binary @take.mp4
# 3. Make it a video
curl -X POST https://api.reverie.video/api/v1/uploads/$UPLOAD_ID/commit \
-H "Authorization: Bearer rv_your_key" -H "Content-Type: application/json" \
-d '{"title": "Dashboard setup, part 1"}'
The answer is the new video, with its share link, and your video.uploaded webhooks hear about it.
Safe retries
Send an Idempotency-Key header with any change (up to 64 letters, digits, -, _, . or :). If the connection drops and you send the same request with the same key, you get the first answer back and nothing happens twice. Keys are remembered for 24 hours.
Errors and limits
Every error is JSON with an error word you can match on.
| Status | Error | Means |
|---|---|---|
| 400 | nothing_to_change, password_too_short, bad_idempotency_key | Something in the request can't be used; the answer says what |
| 401 | api_key_required, bad_api_key, key_expired | No key, it was revoked, or it reached its expiry |
| 402 | not_on_plan | The account is not on Studio |
| 403 | read_only_key, missing_scope | This key isn't allowed to do that |
| 404 | not_found, no_transcript | No such video or folder on this account, or the video has no captions yet |
| 409 | embed_off, too_many_keys, too_many_hooks | Embedding is off for it, or you already have five |
| 409 | object_missing, idempotency_in_progress | The file wasn't sent before commit, or the first try of that request is still running |
| 422 | idempotency_key_reused | That Idempotency-Key was already used for a different request |
| 429 | rate_limited | More than 120 requests in a minute — wait for Retry-After |
| 507 | quota_exceeded | The upload doesn't fit in the space you have left |
Five keys and five webhook addresses per account. Questions: hello@reverie.video.
Use Reverie from Claude, Cursor and other agents
Reverie has an MCP server, so an AI assistant can find your videos, send you a link, change who can watch, tidy them into folders, read your view numbers and read a video's transcript. It uses the same key as the API, so a read only key gives the assistant read-only tools. Nothing it does records, edits or renders video.
https://api.reverie.video/mcp
Claude Code
claude mcp add --transport http reverie https://api.reverie.video/mcp \ --header "Authorization: Bearer rv_your_key"
Cursor
Add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"reverie": {
"url": "https://api.reverie.video/mcp",
"headers": { "Authorization": "Bearer rv_your_key" }
}
}
}
VS Code
Add this to .vscode/mcp.json:
{
"servers": {
"reverie": {
"type": "http",
"url": "https://api.reverie.video/mcp",
"headers": { "Authorization": "Bearer rv_your_key" }
}
}
}
Claude Desktop
In Settings › Developer › Edit Config:
{
"mcpServers": {
"reverie": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.reverie.video/mcp",
"--header", "Authorization: Bearer rv_your_key"]
}
}
}
Then ask: "Which of my Reverie videos got the most views this week?", "Make my newest video private" or "Summarise the transcript of the onboarding video." The assistant asks you before it deletes anything. Signing in to ChatGPT and claude.ai without pasting a key is coming next.
| Tool | What it does |
|---|---|
| list_videos, get_video | Finds your videos and everything about one |
| get_share_link, get_embed, get_download_link | The link to send, the embed code, a short-lived file address |
| get_video_stats, get_transcript | View numbers, and the words of captions you made |
| list_folders, get_account | Your folders, your plan and space |
| rename_video, set_privacy, move_video, create_folder | Changes, with a key that can change videos |
| delete_video | Deletes a hosted video, only after you say yes |
For other agents, llms.txt and llms-full.txt describe Reverie and this whole page in plain text.
Stream Deck and Shortcuts
Starting, stopping and switching layouts from a Stream Deck button or an Apple Shortcut comes with the Mac app.