Cloudflare D1 · Example Payload

D1 Create Database

DatabaseSQLiteServerlessEdge ComputingSQLCloudflareWorkers

D1 Create Database is an example object payload from Cloudflare D1, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summaryoperationIdrequestresponse

Example Payload

Raw ↑
{
  "summary": "Create a new D1 database",
  "operationId": "d1-create-database",
  "request": {
    "method": "POST",
    "url": "https://api.cloudflare.com/client/v4/accounts/{account_id}/d1/database",
    "headers": {
      "Authorization": "Bearer <api_token>",
      "Content-Type": "application/json"
    },
    "body": {
      "name": "my-production-db",
      "primary_location_hint": "weur",
      "read_replication": {
        "mode": "auto"
      }
    }
  },
  "response": {
    "status": 200,
    "body": {
      "success": true,
      "errors": [],
      "messages": [],
      "result": {
        "uuid": "7b162190-cb3e-4d7b-a862-9f5a69e36a62",
        "name": "my-production-db",
        "version": "production",
        "num_tables": 0,
        "file_size": 16384,
        "created_at": "2026-06-13T00:00:00Z",
        "read_replication": {
          "mode": "auto"
        }
      }
    }
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/d1-create-database"
All examples
curl "https://apis.io/api/v1/examples?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.