Skip to main content

Changelog

Everything added, changed, fixed, deprecated or removed on the Videas public API.

The Videas public API now files the library it fills: a key makes folders, puts what it adds straight into one, and moves an asset to another folder of its workspace. No permission joins the eight, and nothing that was already under /v1 changes — but for the parent_id of what a hidden folder holds.

Added

  • A folder made: POST /v1/folders makes a folder in a workspace’s tree, at its root or under another folder, with assets.library.upload; GET /v1/folders/{folder_id} reads one, with assets.library.read. Two folders may have the same name, and the request is not idempotent: look a folder up in its workspace’s listing before making it — the guide.
  • What a key adds, filed: POST /v1/uploads and POST /v1/assets take parent_id, the folder of workspace_id the new asset lands directly in. Without it, the asset lands at the workspace’s root, as before.
  • An asset moved: PATCH /v1/assets/{asset_id} takes parent_id, the folder of its workspace the asset moves to — null for its root —, with assets.library.edit. Sending the parent_id it already reads with moves nothing, a move leaves updated_at as it is, and an asset never changes workspace here.
  • One rule for every parent_id: it names a folder that GET /v1/workspaces/{workspace_id}/folders lists for the workspace concerned, or it is a 404 and nothing is created or moved.

Changed

  • What a hidden folder holds reads as at the root: a folder hidden in Videas is in no listing, so an asset or a folder filed in it now reads parent_id: null, and ?parent=root lists it.

Keys already created gain these writes as they are: every key carrying assets.library.upload makes folders, and every key carrying assets.library.edit moves assets. Filing an asset in a folder shared by a link — on its upload, its import or a move — makes it visible to whoever holds the link, and moving it out stops that: the guide says what to agree on before an integration files anything.

The Videas public API now gives a page builder what it needs to embed the library: an asset’s or a collection’s embed, the folders a workspace files its assets in, and a listing narrowed by status, folder and words. One permission joins the seven, and nothing that was already under /v1 changes.

Added

  • An asset’s embed: POST /v1/assets/{asset_id}/embed answers the asset’s default embed — the id the loader script takes, and the addresses of its page and of the script —, creating it, public and active, when the asset has none yet; POST /v1/collections/{collection_id}/embed does the same for a collection. The call is idempotent, and the organization keeps its say over the embed from Videas — the guide.
  • A new permission, assets.library.embed, unticked when a key is created: an embed opens an asset to every visitor of a page, which a key made to read the library must not be able to do.
  • A workspace’s folders: GET /v1/workspaces/{workspace_id}/folders and its count list them flat, each with parent_id, the folder it sits in, so the tree is rebuilt from one walk — Read the library.
  • What reading gains: every asset carries parent_id, the folder of its workspace it sits directly in; GET /v1/assets and its count take status, parent — a folder’s id, or root — and search, the words the library’s search box in Videas finds; a collection carries subtype, the kind of asset it was made to collect.

Keys already created keep the permissions they carried: for an integration to embed, create it a key that carries assets.library.embed beside assets.library.read. A key and a first call describes all eight.

The Videas public API no longer only reads the library and adds files to it: it adds videos hosted elsewhere, edits what the library holds and publishes its videos on the organization’s channels. Four permissions join the first two, and nothing that was already under /v1 changes.

Added

  • A video hosted elsewhere: POST /v1/assets adds a YouTube, Vimeo or Dailymotion video to the library, with no file to send. It asks for assets.library.upload and assets.third_party_video.import, and opens nothing until Videas turns on videos hosted elsewhere for the organization — the guide.
  • An asset edited, with assets.library.edit: PATCH /v1/assets/{asset_id} changes its words — name, description, summary, copyright notice, language, reference, SEO texts; PUT /v1/assets/{asset_id}/tags sets its tags by their words; PATCH /v1/assets/{asset_id}/custom-fields writes its values of the organization’s custom fields, which GET /v1/custom-fields lists; PUT /v1/assets/{asset_id}/thumbnail sets its thumbnail, sent as it is — the guide.
  • What reading gains: every asset carries thumbnail_url, the stable, anonymous address of its thumbnail, to put as it is in an <img>, and third_party, the player of a video hosted elsewhere; GET /v1/assets/{asset_id} also answers its summary, its copyright notice, its SEO texts and its custom fields.
  • A publication on a channel: GET /v1/channels and GET /v1/categories read the organization’s channels and their categories, GET /v1/publications what they publish (websites.catalogue.read). POST /v1/publications publishes a ready asset on a channel — as a draft, now or at a date to come —, and PATCH /v1/publications/{publication_id} changes its status, its date, its address, its filing in the categories, whether the channel lists it, or who it is for (websites.catalogue.publish). A publication is archived rather than deleted, and categories are created and ordered in Videas — the guide.
  • Four permissions: assets.library.edit, assets.third_party_video.import, websites.catalogue.read and websites.catalogue.publish, beside assets.library.read and assets.library.upload. None implies another; when a key is created, the ones that read are ticked and the ones that write are not.

Keys already created keep the permissions they carried: for an integration to edit or publish, create it a key that carries the permission it needs. A key and a first call describes all six.

The Videas public API answers at https://api.videas.com/v1. A key created in your organization’s settings reads its library and adds files to it, from your own server.

Added

  • API keys that belong to the organization, ak_…, sent as Authorization: Bearer, with two permissions to choose from: read the library, add files to it.
  • Reading the library: GET /v1/assets and GET /v1/workspaces, paged with a cursor, the assets filtered by type, workspace_id and external_ref; a count beside each list; and GET /v1/assets/{asset_id}, one asset with its tags.
  • Adding a file: POST /v1/uploads creates the asset at once. The file is sent whole in one PUT or resumably with tus 1.0 — from your server or straight from a browser — or fetched from an http or https link. GET and DELETE /v1/uploads/{upload_id} follow an upload or give it up.
  • The contract: an OpenAPI 3.1 document generated from the code, rendered in the API reference and downloadable.

Start with a key and a first call.