b2_authorize_account
GET {{authUrl}}/b2api/v3/b2_authorize_account
Used to log in to the B2 API. Returns an authorization token that can be used for account-level operations, and a URL that should be used as the base URL for subsequent API calls.
You can use either the master application key or a normal application key.
NOTE: the account ID can be used in place of the master application key ID.
You'll find the master application key on the B2 Cloud Storage Buckets page on the web site. When using the master application key, use your master application key ID
and the application key
you got from the site.
Master Application Key: This is the first key you have access to, it is available on the web application. This key has all capabilities, access to all buckets, and has no file prefix restrictions or expiration.
Application Key(s) [non-master]: These are other keys created by you and can be limited to a bucket, with a specific file prefix and can expire.
Normal application keys come from the b2createkey call. When using one of them, the application key ID
and application key
are the ones returned when you created the key.
RESPONSES
status: OK
{"accountId":"0123456789ab","apiInfo":{"groupsApi":{"capabilities":["all"],"groupsApiUrl":"https://api004.backblazeb2.com","infoType":"groupsApi"},"storageApi":{"absoluteMinimumPartSize":5000000,"apiUrl":"https://api004.backblazeb2.com","bucketId":null,"bucketName":null,"capabilities":["shareFiles","readFileRetentions","readFileLegalHolds","bypassGovernance","readBucketReplications","listFiles","deleteKeys","writeBucketRetentions","writeBucketNotifications","deleteFiles","listAllBucketNames","writeBuckets","deleteBuckets","writeFiles","readBuckets","readFiles","writeFileRetentions","readBucketRetentions","listKeys","readBucketEncryption","writeFileLegalHolds","writeKeys","listBuckets","writeBucketEncryption","writeBucketReplications","readBucketNotifications"],"downloadUrl":"https://f004.backblazeb2.com","infoType":"storageApi","namePrefix":null,"recommendedPartSize":100000000,"s3ApiUrl":"https://s3.us-west-004.backblazeb2.com"}},"applicationKeyExpirationTimestamp":null,"authorizationToken":"5_004-abcdefgh-0123-4567-89ab-579438469781_5439246812468_12345678_123456_.abcdefghijklmnopqrstuvwxyz="}