Backblaze · Schema

CreateKeyRequest

CreateKeyRequest schema from Backblaze B2 Native API

Cloud StorageObject StorageStorageBackup

Properties

Name Type Description
accountId string
capabilities array List of capabilities for the key
keyName string A name for the key (letters, numbers, hyphens)
validDurationInSeconds integer Duration before key expires
bucketId string Restrict key to this bucket
namePrefix string Restrict key to files with this prefix
View JSON Schema on GitHub

JSON Schema

b2-native-api-create-key-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-schema/b2-native-api-create-key-request-schema.json",
  "title": "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": "integer",
      "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 Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 Schema
curl "https://apis.io/api/v1/json-schemas/b2-native-api-create-key-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.