API Keys

With an API key, a program can use the Centova Cast API on behalf of your account, without your password. For example, a billing system or a script can use an API key to create accounts or to start streams. Each key has its own permissions and an optional expiry date.

To open the API Keys page, click API keys under the Account menu icon in the navigation menu. Every staff account can open this page. The page shows only the keys of your own account.

This manual does not describe the API itself.

Key List

The list has these columns:

  • Key
    Shows the start of the key, for example cck-abcd1234.... The start of the key identifies it. Centova Cast never shows the full key again after it creates the key.

  • Description
    Shows the description of the key. Below the description, the column shows the permissions of the key.

  • Created
    Shows the date on which you created the key.

  • Expires
    Shows the date on which the key stops working, or Never.

Note: On narrow screens, the control panel does not show the Created column. On very narrow screens, it also does not show the Key and Expires columns.

To show only the keys that contain a keyword, type the keyword in the search box on the toolbar.

Creating a Key

To create an API key:

  1. Click New key on the toolbar, or press the Insert key. The editor opens.
  2. Type a description, and set the expiry date and the permissions.
  3. Click Save. The API key dialog opens and shows the new key.
  4. Click the clipboard icon, or click the key, to copy the key to the clipboard.
  5. Paste the key into the program that will use it, or into a safe place.
  6. Click Close.

IMPORTANT: Copy the key before you close the dialog. Centova Cast shows the full key only one time. You cannot show it again or recover it. If you lose the key, delete it and create a new key.

CAUTION: Keep the key as secret as your password. Each person or program that has the key can use your account with the permissions of the key.

The editor has these fields:

  • Description
    Specifies a description of the key, for your reference. Use it to remember which program uses the key. The default is New API key. This field is required.

  • Expires
    Specifies the date on which the key stops working. If this field is empty, the key works until you delete it, and the list shows Never. You cannot set a date in the past.

  • Permissions
    Specifies what the key can do. The options are:

    • Full access
      The key has all of the permissions of your account. If your permissions change, the permissions of the key change too.

    • The permission list
      If you clear the Full access box, a list field shows. Select each permission that the key must have. If you select no permission, the key can do nothing. The list shows the permissions in groups. Type a part of a name to search the list.

    The permission list is the same as the list of staff permissions. It also contains the permission Manage own profile and settings, with which the key can read and change the profile of your own account. For the meaning of the other permissions, see the Staff Management section.

A key can never do more than your account can do. A staff member can give a key only the permissions that the staff account has. If your account loses a permission, each key of your account also loses it.

Example: A monitoring script must read the metrics of your server, and nothing more. Create a key with the description Monitoring script. Set Expires to the end of the year. Clear Full access and select only View metrics. If the key is stolen, the thief can only read metrics, and only until the end of the year.

Editing and Deleting Keys

To edit a key, click its row in the list. You can change the description, the expiry date and the permissions. You cannot see or change the key itself. Click Save to save the changes.

To delete keys:

  1. Select one or more keys in the list.
  2. Click Delete on the toolbar, or press the Delete key.
  3. Click Yes in the confirmation dialog.

A deleted key stops working immediately.