Source Code Bundles
COMING SOON - The application key APIs are under development, and will be available soon.
Application keys control access to your B2 account. You can get the master application key for your account from the B2 Cloud Storage Buckets page on the Backblaze web site.
The master key for your account has complete access. It's a good idea when deploying
a key, on a server or to an app, to create a key with fewer capabilities. You can use
It is fine to make a lot of application keys. If you are creating a cell phone app and want to make a key for each of your customers, that's fine. The current limit lets you create 100 million keys per account. (Talk to us if you need more.)
The API calls related to application keys are:
Using Application Keys
The sequence of actions to access B2 is:
Each application key grants access to different capabilities in B2. The authorization token you get when you use an application key is limited to the capabilities of the application key.
Managing Application Keys
When you create a new application key, the response contains the actual key string, which
You can assign a name to a new application key, but the name is only for your use. It is not possible to look up a key by name. There is no requirement that names are unique.
Application keys can have expiration times. Once a key expires, it ceases to exist.
Expired keys can no longer be used to generate auth tokens, and will no longer be listed by
COMING NOT QUITE SO SOON - The Backblaze web site will let you create and manage your application keys.
Each application key is associated with a set of capabilities, and each of those capabilities give you access to some of the B2 APIs. These are all of the capabilities, and their associated APIs:
An application key can be restricted to one bucket. All access to all other
buckets will be blocked, and the
Application keys that are restricted to a bucket can only access these capabilities:
Application keys can also be restricted to the files in a bucket matching a file name prefix. Listing files will only return matching files. Reading, writing, and deleteing are only allowed for matching files.