Skip to main content

Access the Videas API (developers)

The Videas teamFeb 25, 202611 min read

To call the Videas API: open Settings → API Access, create a key by ticking what it may do and choosing its expiry, then authenticate your server’s requests with the Authorization: Bearer <your-key> header. The public API reads your organization’s library — the media, the workspaces they are filed in, how far their processing has got —, feeds it — files sent or fetched from a link, videos hosted on YouTube, Vimeo or Dailymotion —, edits its media, and publishes them on the organization’s channels. Enough to feed Videas from an LMS, a CMS or your production pipeline, and to keep your media and your channels in step with your catalogue.

You need to be an owner or an administrator of the organization to create a key, and to have basic REST knowledge (HTTP methods, headers, JSON) and an HTTP client (curl, Postman, Insomnia…). The developer documentation then details every call.

Step 1: Open key management

API keys belong to the organization, not to the person who creates them: a key keeps working when that person leaves the team, and everything it reaches belongs to that one organization.

From your Settings, open the API Access page (API keys page). It lists the organization’s keys — empty on your first visit, with No API keys.

Important: create one key per integration — one for the CMS sync, one for the LMS import. You can then revoke one without interrupting the others, and the Last used column tells you which ones are still in use.

Step 2: Create a key

Click Create a key: the Create an API key dialog opens with three fields — a name, an expiry, and what the key may do.

Key name

Give it a name that says what the key is for, so that it can be recognized in the list. Examples:

  • HubSpot CRM sync
  • LMS import - nightly script
  • Production pipeline - master delivery

Expiration

Choose when the key should stop working:

  • No expiration: the key stays active until you revoke it
  • 30 / 60 / 90 days: for a temporary integration (testing, one-off migration, short assignment)
  • 1 year: a reasonable compromise for a long-term integration

Best practice: prefer a set expiry over No expiration, even for a long-term integration. Renewing your key every year is a rotation that limits the impact of a leak nobody noticed.

What the key may do

The key opens the API with the permissions you tick, and no other:

Permission What it allows When the dialog opens
Read the library through the API List and count the media, the collections, the workspaces, their folders and the custom fields, read one media item with its tags and its fields ticked
Add files and folders to the library through the API Add a file — sent or fetched from a link —, follow its upload or give it up, and make folders to file the media in unticked
Edit the library through the API Change a media item already there: its words, its folder, its tags, its custom fields and its thumbnail. Moving a media item into a shared folder makes it visible through that folder’s link unticked
Import videos from other platforms With the permission to add files beside it, add a video hosted on YouTube, Vimeo or Dailymotion unticked
Read the channels through the API Read the organization’s channels, their categories and what they publish ticked
Publish on the channels through the API Publish media on the channels, schedule them, file them, change who they are for or archive them unticked
Read the playback sessions through the API Read the organization’s playback sessions: who watched which media item, when and how much ticked

The ones that read are ticked when the dialog opens, the ones that write are not: a key that changes your library or your channels is always created on purpose. None implies another — a key that publishes cannot edit a media item unless it carries that permission too —, and a key with no permission opens nothing.

Three of them depend on what the organization uses: the two channel permissions open nothing until it publishes a channel, and importing videos from other platforms opens nothing until Videas turns on videos hosted elsewhere for it. A key may carry them beforehand: it works with no change the day the organization has the feature.

Principle of least privilege: tick only what the integration needs. A dashboard that reads your catalog has no business adding files or publishing on your channels. That way you limit the damage if the key ever leaks.

Confirm with Create the key.

Step 3: Copy the key

The Key created dialog then shows the key’s full value, which starts with ak_, once only, with the warning “Copy the key now: it is shown this once and cannot be read again.”

Click Copy the key and store it immediately in a secrets manager or in your server’s configuration. If you close the dialog without copying it, you will not be able to retrieve it: revoke that key and create a new one.

Bad practice to avoid at all costs: never paste a key into a Slack message, an email, a Git commit or a shared document, and never put it in a web page or in an app you ship to your users. Store it exclusively in:

  • A secrets manager (1Password, Bitwarden, AWS Secrets Manager, Doppler…)
  • An environment variable your server reads at startup
  • An uncommitted .env file (added to .gitignore)

Step 4: Make your first call

The Videas API answers at:

https://api.videas.com/v1

Authentication uses the Authorization: Bearer <your-key> header. A key is used from a server: the API sends no CORS headers, so no web page can call it.

Example: list your media

curl https://api.videas.com/v1/assets \
  -H "Authorization: Bearer $VIDEAS_API_KEY"

The response is JSON: a page of media (data) and the cursor of the next page (next).

Python example

import os

import requests

response = requests.get(
    "https://api.videas.com/v1/assets",
    headers={"Authorization": f"Bearer {os.environ['VIDEAS_API_KEY']}"},
)
response.raise_for_status()
assets = response.json()["data"]

JavaScript example (Node.js)

const response = await fetch('https://api.videas.com/v1/assets', {
  headers: {
    Authorization: `Bearer ${process.env.VIDEAS_API_KEY}`,
  },
})
const { data: assets } = await response.json()

If the response is 401 Unauthorized, check: the Bearer prefix, the absence of a stray space, the validity of the key (neither revoked nor expired). A 403 Forbidden means the key is valid but does not carry the permission the call requires.

Step 5: Track the organization’s keys

In the list, each key shows:

  • Name: what it is for
  • Prefix: the first characters of the key, to identify it without exposing its value
  • Permissions: what the key may do
  • Created and Created by: when, and by whom
  • Last used: useful for spotting dormant keys
  • Expires: the expiry date, or Never

Review this screen every quarter as part of good access hygiene.

Step 6: Revoke a key

If a key is compromised, is no longer used, or needs renewing:

  1. In the list, find the key concerned
  2. Click Revoke
  3. Confirm with Revoke the key

⚠️ This cannot be undone: anything using the key stops authenticating at once, and its calls fail with 401. If the application using it has no fallback, create its replacement before you revoke.

API documentation

The Videas developer documentation describes everything the API does:

Security best practices

Storage

  • Never commit a key to a Git repository (use .env + .gitignore)
  • Use a secrets manager for shared environments (CI/CD, production)
  • Read keys from environment variables at startup, and never send them to a browser

Rotation

  • Set an expiry on every key (90 days for everyday use, 1 year at most for long-term integrations)
  • Put a documented renewal procedure in place (who, when, how)

Monitoring

  • Review the key list every quarter: revoke the inactive ones (a Last used column that no longer moves)
  • Check that each key carries only the permissions its integration needs
  • Document what each active key is for — at the very least in its name

Compromise

  • If you suspect a key has leaked (accidental commit, shared by mistake, exposed log file…): revoke it immediately, create a new key, update the applications that use it

Who can create an API key?

The owners and administrators of the organization. Other members have no access to this page: a key acts for the whole organization, so it is created with the rights that go with that.

Can one API key be shared between several tools?

Better not. A key belongs to the organization, and several tools can technically use it — but one key per integration lets you revoke one tool’s access without breaking the others, and tells you, through its last use, which one is still active. A shared key, by contrast, makes revocation impossible without interrupting everybody.

I closed the window without copying my key — what now?

Replace it. The full value is shown only once, at creation — the warning says so — and Videas does not keep it in clear text. There is therefore no way to recover it.

Revoke the now-unusable key and create a new one. The list afterwards only shows its prefix, the first few characters, which identify it without exposing the value.

Where should an API key be stored?

In a secrets manager (1Password, Bitwarden, AWS Secrets Manager, Doppler), in an environment variable read at startup, or in a .env file added to .gitignore — always on a server.

Never in a Slack message, an email, a Git commit, a shared document or a web page. The accidental commit is by far the most frequent leak, and the most lasting: a key pushed once stays in the repository history even after the file is deleted.

Should I set an expiry on my keys?

Yes, even for a long-term integration. The No expiration option exists, but a key that never dies is a key nobody remembers — and one whose silent leak stays exploitable indefinitely.

Count on 90 days for everyday use and one year at most for lasting integrations. Periodic renewal is what limits the impact of a compromise you did not detect.

What should I do if a key leaks?

Revoke it immediately, then create its replacement and update the applications that used it. Revocation is instant and irreversible: every call fails at once with a 401.

For a production integration with no fallback, the reverse order is safer: create the new key first, deploy it, then revoke the old one.

What do 401 and 403 responses mean?

401 Unauthorized: authentication was not accepted. Three causes, to check in this order: a missing Bearer prefix in the header, a stray space in the copied value, a revoked or expired key.

403 Forbidden: the key is valid but does not carry the permission the call requires — a key that can only read the library cannot add a file to it, for instance. Create a key with the permission you need.

In short

  • API keys belong to the organization; owners and administrators create them from Settings > API Access
  • Set a name, an expiry and what the key may do, among seven permissions: read the library, feed it, edit its media, import videos from other platforms, read the channels, publish on them, read the playback sessions
  • The key’s value (ak_…) is shown only once, at creation — copy it immediately
  • The API answers at https://api.videas.com/v1, authenticated with Authorization: Bearer <your-key>, and is called from a server
  • The developer documentation describes every call
  • Apply the principle of least privilege to permissions and renew your keys regularly
  • If a key is compromised, revoke it immediately and create a new one

Screenshots were taken on Videas Academy, an example channel built for this help center. It belongs to a fictional customer, not to Videas: your own channel carries your name, your branding and your prices.