{
  "openapi": "3.1.0",
  "info": {
    "title": "Reverie API",
    "version": "1.1.0",
    "description": "Your Reverie videos, links, folders, view numbers and transcripts, for your own tools and agents. Part of Studio. Make a key in Settings › Automations & API and send it as `Authorization: Bearer rv_your_key`. 120 requests a minute per key. Reverie only stores and serves what you made on your own computer: nothing here records, renders or transcodes video. An MCP server with the same keys is at https://api.reverie.video/mcp.",
    "contact": {
      "name": "Reverie",
      "email": "hello@reverie.video",
      "url": "https://reverie.video/developers"
    }
  },
  "externalDocs": {
    "url": "https://reverie.video/developers"
  },
  "servers": [
    {
      "url": "https://api.reverie.video/api"
    }
  ],
  "security": [
    {
      "key": []
    }
  ],
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "Videos"
    },
    {
      "name": "Folders"
    },
    {
      "name": "Uploads"
    },
    {
      "name": "Webhooks"
    }
  ],
  "paths": {
    "/v1/me": {
      "get": {
        "summary": "Your plan and storage",
        "description": "The plan, the space used and the space you have, and what this key may do.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Account"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "operationId": "yourPlanAndStorage"
      }
    },
    "/v1/videos": {
      "get": {
        "summary": "List videos",
        "description": "Your hosted videos, newest first, up to 100 a page.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next` from the previous page."
          },
          {
            "name": "folder_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Only this folder, or `none` for videos in no folder."
          }
        ],
        "operationId": "listVideos"
      }
    },
    "/v1/videos/{id}": {
      "get": {
        "summary": "Get a video",
        "description": "One video, the same fields as a webhook message's data.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Video"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          }
        ],
        "operationId": "getAVideo"
      },
      "patch": {
        "summary": "Change a video",
        "description": "Change its title, who can watch, its password, its link expiry, embedding or folder. Answers with the video.\n\nNeeds the `videos:write` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:write",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Video"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "400": {
            "description": "`nothing_to_change`, `password_too_short` or a bad value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoChange"
              }
            }
          }
        },
        "operationId": "changeAVideo"
      },
      "delete": {
        "summary": "Delete a video",
        "description": "Deletes the hosted video and its link for good. The copy on your computer is never touched.\n\nNeeds the `videos:write` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:write",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "operationId": "deleteAVideo"
      }
    },
    "/v1/videos/{id}/download": {
      "get": {
        "summary": "Download address",
        "description": "A short-lived address for the file: six hours for an open link, thirty minutes for a protected one. Not counted as a view.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "download_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "expires_in": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`not_ready`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          }
        ],
        "operationId": "downloadAddress"
      }
    },
    "/v1/videos/{id}/embed": {
      "get": {
        "summary": "Embed code",
        "description": "An iframe that plays the video on any page.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "embed_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "html": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`embed_off`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          }
        ],
        "operationId": "embedCode"
      }
    },
    "/v1/videos/{id}/stats": {
      "get": {
        "summary": "View numbers",
        "description": "Plays, unique viewers, finishes, watch time, how far people got and plays per day for 30 days. Viewers are anonymous.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Stats"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          }
        ],
        "operationId": "viewNumbers"
      }
    },
    "/v1/videos/{id}/transcript": {
      "get": {
        "summary": "Transcript",
        "description": "The words of the captions you made in the Reverie editor. Times are seconds into the recording. Reverie never makes captions on its servers; a video without captions answers `no_transcript`.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Videos"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transcript"
                }
              },
              "text/vtt": {
                "schema": {
                  "type": "string"
                }
              },
              "application/x-subrip": {
                "schema": {
                  "type": "string"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "`not_found` or `no_transcript`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9]{6,32}$"
            },
            "description": "The video id."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "vtt",
                "srt",
                "txt"
              ],
              "default": "json"
            }
          }
        ],
        "operationId": "transcript"
      }
    },
    "/v1/folders": {
      "get": {
        "summary": "List folders",
        "description": "Your folders, with how many videos each holds.\n\nNeeds the `videos:read` scope.",
        "tags": [
          "Folders"
        ],
        "x-scope": "videos:read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "folders": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Folder"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "operationId": "listFolders"
      },
      "post": {
        "summary": "Make a folder",
        "description": "Move a video into it with PATCH /v1/videos/{id} and folder_id.\n\nNeeds the `videos:write` scope.",
        "tags": [
          "Folders"
        ],
        "x-scope": "videos:write",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Folder"
                }
              }
            }
          },
          "400": {
            "description": "`bad_name`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`too_many_folders`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "operationId": "makeAFolder"
      }
    },
    "/v1/uploads": {
      "post": {
        "summary": "Start an upload",
        "description": "Reserves room for a file of exactly `bytes` and answers with an address to PUT it to. Refused before any byte moves when it would not fit (507 `quota_exceeded`). Then PUT the file and call commit.\n\nNeeds the `videos:write` scope.",
        "tags": [
          "Uploads"
        ],
        "x-scope": "videos:write",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            }
          },
          "507": {
            "description": "`quota_exceeded`: not enough space left.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "`object too large`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bytes": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "content_type": {
                    "type": "string",
                    "default": "video/mp4"
                  }
                },
                "required": [
                  "bytes"
                ]
              }
            }
          }
        },
        "operationId": "startAnUpload"
      }
    },
    "/v1/uploads/{upload_id}/commit": {
      "post": {
        "summary": "Finish an upload",
        "description": "Turns the uploaded file into a video with a share link. Safe to send twice. Tells your video.uploaded webhooks.\n\nNeeds the `videos:write` scope.",
        "tags": [
          "Uploads"
        ],
        "x-scope": "videos:write",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Video"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "`object_missing` (nothing was PUT yet), `reservation_expired` or `object_exceeds_reservation`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "folder_id": {
                    "type": "string"
                  },
                  "duration_ms": {
                    "type": "integer"
                  },
                  "width": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "operationId": "finishAnUpload"
      }
    },
    "/v1/hooks": {
      "get": {
        "summary": "List webhooks",
        "description": "The addresses that hear about your videos.\n\nNeeds the `hooks` scope.",
        "tags": [
          "Webhooks"
        ],
        "x-scope": "hooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hooks": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Hook"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "operationId": "listWebhooks"
      },
      "post": {
        "summary": "Subscribe a webhook",
        "description": "What Zapier, Make and n8n call to subscribe. An https address outside reverie.video. The answer carries the signing secret once.\n\nNeeds the `hooks` scope.",
        "tags": [
          "Webhooks"
        ],
        "x-scope": "hooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hook"
                }
              }
            }
          },
          "400": {
            "description": "`bad_url`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`too_many_hooks`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "events": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "video.uploaded",
                        "video.updated",
                        "video.deleted"
                      ]
                    }
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "operationId": "subscribeAWebhook"
      }
    },
    "/v1/hooks/{hook_id}": {
      "delete": {
        "summary": "Unsubscribe a webhook",
        "description": "Stops messages to that address.\n\nNeeds the `hooks` scope.",
        "tags": [
          "Webhooks"
        ],
        "x-scope": "hooks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/NotOnPlan"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "parameters": [
          {
            "name": "hook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
            },
            "description": "Send the same key when retrying a write: the first answer is replayed for 24 hours and the change happens once."
          }
        ],
        "operationId": "unsubscribeAWebhook"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "key": {
        "type": "http",
        "scheme": "bearer",
        "description": "A personal key, rv_…, made in Reverie Settings › Automations & API. Scopes: videos:read, videos:write, hooks."
      }
    },
    "schemas": {
      "Video": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "jdtasy3b44hg"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "example": "How to set up the dashboard"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "bytes": {
            "type": "integer",
            "example": 116583981
          },
          "duration_ms": {
            "type": [
              "integer",
              "null"
            ],
            "example": 80294
          },
          "width": {
            "type": [
              "integer",
              "null"
            ],
            "example": 2214
          },
          "height": {
            "type": [
              "integer",
              "null"
            ],
            "example": 1438
          },
          "views": {
            "type": "integer",
            "example": 0
          },
          "visibility": {
            "type": "string",
            "enum": [
              "link",
              "password",
              "private"
            ]
          },
          "password_protected": {
            "type": "boolean"
          },
          "link_expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://reverie.video/watch/jdtasy3b44hg"
          },
          "embed": {
            "type": "boolean",
            "description": "Whether the video may be embedded on other sites."
          },
          "embed_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": "https://reverie.video/embed/jdtasy3b44hg"
          },
          "source": {
            "type": "string",
            "enum": [
              "web",
              "mac",
              "windows",
              "extension"
            ]
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A short-lived address for its picture."
          },
          "folder_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "created_at",
          "bytes",
          "visibility",
          "url"
        ]
      },
      "VideoList": {
        "type": "object",
        "properties": {
          "videos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Video"
            }
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `after` for the next page; null on the last."
          }
        },
        "required": [
          "videos",
          "next"
        ]
      },
      "VideoChange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200
          },
          "visibility": {
            "type": "string",
            "enum": [
              "link",
              "password",
              "private"
            ]
          },
          "password": {
            "type": [
              "string",
              "null"
            ],
            "description": "6 characters or more. \"\" or null removes it."
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "A future date when the link stops working, or null for never."
          },
          "embed": {
            "type": "boolean"
          },
          "folder_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "One of your folders, or null for none."
          }
        }
      },
      "Me": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "example": "studio"
          },
          "storage": {
            "type": "object",
            "properties": {
              "used_bytes": {
                "type": "integer"
              },
              "quota_bytes": {
                "type": "integer",
                "example": 53687091200
              }
            }
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "videos:read",
                "videos:write",
                "hooks"
              ]
            }
          }
        }
      },
      "Folder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "count": {
            "type": "integer"
          }
        }
      },
      "Stats": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          },
          "plays": {
            "type": "integer"
          },
          "unique_viewers": {
            "type": "integer"
          },
          "finished": {
            "type": "integer"
          },
          "finish_rate": {
            "type": "number"
          },
          "watch_seconds": {
            "type": "integer"
          },
          "avg_watch_seconds": {
            "type": "integer"
          },
          "avg_reach": {
            "type": "number",
            "description": "How far into the video an average playback got, 0 to 1."
          },
          "last_viewed_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "reached": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "reached[i]: playbacks that got at least i/10 of the way in."
          },
          "days": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string"
                },
                "plays": {
                  "type": "integer"
                },
                "uniques": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "Transcript": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "cues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "number"
                },
                "end": {
                  "type": "number"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "words": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "t": {
                  "type": "number",
                  "description": "Seconds into the recording."
                },
                "w": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Upload": {
        "type": "object",
        "properties": {
          "upload_id": {
            "type": "string"
          },
          "video_id": {
            "type": "string"
          },
          "upload_url": {
            "type": "string",
            "format": "uri",
            "description": "PUT the file here, with exactly the headers below, within 15 minutes."
          },
          "method": {
            "type": "string",
            "enum": [
              "PUT"
            ]
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "Content-Length": "116583981",
              "Content-Type": "video/mp4"
            }
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Hook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "video.uploaded",
                "video.updated",
                "video.deleted"
              ]
            }
          },
          "created_at": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "last_status": {
            "type": [
              "integer",
              "null"
            ]
          },
          "last_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "failures": {
            "type": "integer"
          },
          "secret": {
            "type": "string",
            "description": "Only in the answer that created it. Signs every message."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "A word you can match on."
          }
        },
        "required": [
          "error"
        ]
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "`api_key_required`, `bad_api_key` or `key_expired`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotOnPlan": {
        "description": "`not_on_plan`: the account is not on Studio.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "`read_only_key` or `missing_scope`: this key may not do that.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "`not_found`: no such video or folder on this account.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "`rate_limited`: more than 120 requests in a minute. Wait for Retry-After.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}
