Backblaze · JSON Structure

B2 Native Api Create Key Request Structure

CreateKeyRequest schema from Backblaze B2 Native API

Type: object Properties: 6 Required: 3
Cloud StorageObject StorageStorageBackup

CreateKeyRequest is a JSON Structure definition published by Backblaze, describing 6 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

accountId capabilities keyName validDurationInSeconds bucketId namePrefix

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-structure/b2-native-api-create-key-request-structure.json",
  "name": "CreateKeyRequest",
  "description": "CreateKeyRequest schema from Backblaze B2 Native API",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "example": "abc123def456"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of capabilities for the key"
    },
    "keyName": {
      "type": "string",
      "description": "A name for the key (letters, numbers, hyphens)",
      "example": "my-app-key"
    },
    "validDurationInSeconds": {
      "type": "int32",
      "description": "Duration before key expires"
    },
    "bucketId": {
      "type": "string",
      "description": "Restrict key to this bucket"
    },
    "namePrefix": {
      "type": "string",
      "description": "Restrict key to files with this prefix"
    }
  },
  "required": [
    "accountId",
    "capabilities",
    "keyName"
  ]
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 JSON Structure
curl "https://apis.io/api/v1/json-structures/b2-native-api-create-key-request-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

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

Get an API key

Free tier, no email required.

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