Backblaze · Arazzo Workflow

Backblaze Authorize and Provision Bucket

Version 1.0.0

Authorize the account, then create a new private bucket using the returned account context.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Cloud StorageObject StorageStorageBackupArazzoWorkflows

Provider

backblaze

Workflows

authorize-and-provision-bucket
Authorize the account and create a private bucket.
Logs in to the B2 API to obtain the account context and authorization token, then creates a new private bucket owned by that account.
2 steps inputs: bucketName, bucketType outputs: accountId, bucketId, bucketName
1
authorize
Log in to the B2 API. Returns the accountId, the cluster apiUrl, and the authorization token used to authenticate all subsequent calls.
2
createBucket
Create a new bucket owned by the authorized account. The bucket name must be globally unique across all of Backblaze B2.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Backblaze Authorize and Provision Bucket
  summary: Authorize the account, then create a new private bucket using the returned account context.
  description: >-
    The canonical Backblaze entry-point flow. It first calls
    b2_authorize_account, which returns the accountId, the cluster-specific
    apiUrl, and an authorization token that every subsequent call depends on.
    Those values are captured as step outputs and threaded into a create-bucket
    call so a brand-new private bucket is provisioned in a single chained run.
    Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: authorizationApi
  url: ../openapi/backblaze-authorization-api-openapi.yml
  type: openapi
- name: bucketsApi
  url: ../openapi/backblaze-buckets-api-openapi.yml
  type: openapi
workflows:
- workflowId: authorize-and-provision-bucket
  summary: Authorize the account and create a private bucket.
  description: >-
    Logs in to the B2 API to obtain the account context and authorization
    token, then creates a new private bucket owned by that account.
  inputs:
    type: object
    required:
    - bucketName
    properties:
      bucketName:
        type: string
        description: Globally unique name for the new bucket.
      bucketType:
        type: string
        description: Privacy setting for the bucket (allPublic or allPrivate).
  steps:
  - stepId: authorize
    description: >-
      Log in to the B2 API. Returns the accountId, the cluster apiUrl, and the
      authorization token used to authenticate all subsequent calls.
    operationId: authorizeAccount
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      accountId: $response.body#/accountId
      authorizationToken: $response.body#/authorizationToken
      apiUrl: $response.body#/apiInfo/storageApi/apiUrl
  - stepId: createBucket
    description: >-
      Create a new bucket owned by the authorized account. The bucket name must
      be globally unique across all of Backblaze B2.
    operationId: createBucket
    requestBody:
      contentType: application/json
      payload:
        accountId: $steps.authorize.outputs.accountId
        bucketName: $inputs.bucketName
        bucketType: $inputs.bucketType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      bucketId: $response.body#/bucketId
      bucketName: $response.body#/bucketName
      bucketType: $response.body#/bucketType
  outputs:
    accountId: $steps.authorize.outputs.accountId
    bucketId: $steps.createBucket.outputs.bucketId
    bucketName: $steps.createBucket.outputs.bucketName

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/backblaze-authorize-and-provision-bucket-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.