Keeping your API tokens safe

Your Livid API token works like a key to your account. Here's how to store it safely, and what to do if one leaks.

Anyone who has your API token can do whatever that token is allowed to do, without needing your email. Treat it like a password.

Do

  • Store tokens on a server you control, for example in an environment variable or a secrets manager
  • Give each token only the permissions it needs. Read, Write and Delete are separate, so an upload tool doesn't need Delete, for example.
  • Use a separate token for each tool or integration, so you can revoke one without breaking the others
  • Set an expiry date on tokens you only need for a while, like a one-off migration
  • Review your tokens regularly and revoke any you no longer use
  • Revoke tokens when someone leaves your team. Tokens keep working after the person who made them leaves

Don't

  • Put a token in website code, browser JavaScript or a mobile app
  • Commit a token to a code repository, especially a public one
  • Share a token in email, chat or a support ticket
  • Give a token to a tool or contractor you don't trust

👉 Anything done with your token counts as done by your account, whether you authorized it or not.

Building an app for web or mobile?

Your app should never talk to Livid directly with your token. Instead, have it call your own server, and let your server call Livid with the token. Anyone who opens a web or mobile app can dig out a token hidden inside it.

This applies even if you're using an AI tool to build your app. If it suggests putting the token in your app's code, don't.

Password-protected videos

API answers include the password of any password-protected video. Keep those answers on your server too, and don't show them to people who shouldn't see the password.

If a token leaks

  1. Go to Settings   > API tokens   and revoke the token. It stops working straight away
  2. Generate a new token and update your tool to use it
  3. Check your library for anything unexpected
  4. If something looks wrong, email support@livid.com

Giving a token to someone else's tool

If you give a token to a plugin, app, agency or contractor, they can act on your account within that token's permissions. You're responsible for what they do with it, and we can't support tools we didn't build. Only share tokens with people you trust, and revoke them when the work is done.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us