Cloudflare D1 · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Cloudflare D1 API
13 actions
13 updates
phrasing
extends
openapi/cloudflare-d1-d1-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Cloudflare D1's API. It is a proposal applied on top of the contract, not a document Cloudflare D1 publishes.
What the actions change
x-apievangelist-phrasing
Targets 13
$.info
$.paths['/accounts/{account_id}/d1/database'].get
$.paths['/accounts/{account_id}/d1/database'].post
$.paths['/accounts/{account_id}/d1/database/{database_id}'].get
$.paths['/accounts/{account_id}/d1/database/{database_id}'].put
$.paths['/accounts/{account_id}/d1/database/{database_id}'].delete
$.paths['/accounts/{account_id}/d1/database/{database_id}'].patch
$.paths['/accounts/{account_id}/d1/database/{database_id}/export'].post
$.paths['/accounts/{account_id}/d1/database/{database_id}/import'].post
$.paths['/accounts/{account_id}/d1/database/{database_id}/query'].post
$.paths['/accounts/{account_id}/d1/database/{database_id}/raw'].post
$.paths['/accounts/{account_id}/d1/database/{database_id}/time_travel/bookmark'].get
$.paths['/accounts/{account_id}/d1/database/{database_id}/time_travel/restore'].post
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Cloudflare D1 API
version: 1.0.0
extends: openapi/cloudflare-d1-d1-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-20'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 12
- target: $.paths['/accounts/{account_id}/d1/database'].get
update:
x-apievangelist-phrasing:
intent: List D1 databases in an account
effect: read
questions:
- Which D1 databases exist in my account?
- Can I find a D1 database by name?
instructions:
- text: List D1 databases in account {account_id}.
slots:
account_id: path.account_id
- text: Find the D1 database named {name} in account {account_id}.
slots:
name: query.name
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database'].post
update:
x-apievangelist-phrasing:
intent: Create a D1 database
effect: write
questions:
- How do I create a new D1 database?
- Can I choose the primary location for a new D1 database?
instructions:
- text: Create a D1 database named {name} in account {account_id}.
slots:
name: requestBody.name
account_id: path.account_id
- text: Create D1 database {name} in account {account_id} with primary location hint {primary_location_hint}.
slots:
name: requestBody.name
account_id: path.account_id
primary_location_hint: requestBody.primary_location_hint
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}'].get
update:
x-apievangelist-phrasing:
intent: Get a D1 database
effect: read
questions:
- What are the details of one D1 database?
- Can I fetch specific fields of a D1 database?
instructions:
- text: Get D1 database {database_id} in account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Show fields {fields} of D1 database {database_id} in account {account_id}.
slots:
fields: query.fields
database_id: path.database_id
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}'].put
update:
x-apievangelist-phrasing:
intent: Replace a D1 database's read replication
effect: write
questions:
- How do I change a D1 database's read replication settings?
- Can I overwrite the whole read replication configuration of a D1 database?
instructions:
- text: Replace the read replication of D1 database {database_id} in account {account_id} with {read_replication}.
slots:
database_id: path.database_id
account_id: path.account_id
read_replication: requestBody.read_replication
- text: Set D1 database {database_id} in account {account_id} to read replication {read_replication}.
slots:
database_id: path.database_id
account_id: path.account_id
read_replication: requestBody.read_replication
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a D1 database
effect: destructive
questions:
- How do I delete a D1 database?
- Can I permanently remove a D1 database from my account?
instructions:
- text: Delete D1 database {database_id} in account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Permanently remove D1 database {database_id} from account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}'].patch
update:
x-apievangelist-phrasing:
intent: Partially update a D1 database
effect: write
questions:
- Can I change only the read replication of a D1 database?
- Is there a partial update for D1 databases?
instructions:
- text: Partially update D1 database {database_id} in account {account_id} with read replication {read_replication}.
slots:
database_id: path.database_id
account_id: path.account_id
read_replication: requestBody.read_replication
- text: Patch D1 database {database_id} in account {account_id} so it reads from {read_replication}.
slots:
database_id: path.database_id
account_id: path.account_id
read_replication: requestBody.read_replication
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}/export'].post
update:
x-apievangelist-phrasing:
intent: Export a D1 database as SQL
effect: read
questions:
- How do I export my D1 database to SQL?
- How long does a D1 database export take?
instructions:
- text: Export D1 database {database_id} in account {account_id} as SQL.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Start a SQL export of D1 database {database_id} in account {account_id} in format {output_format}.
slots:
database_id: path.database_id
account_id: path.account_id
output_format: requestBody.output_format
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}/import'].post
update:
x-apievangelist-phrasing:
intent: Import SQL into a D1 database
effect: write
questions:
- How do I load an SQL file into my D1 database?
- Does importing block the D1 database while it runs?
instructions:
- text: Generate an upload URL for importing SQL into D1 database {database_id} in account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Start importing an SQL file into D1 database {database_id} in account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}/query'].post
update:
x-apievangelist-phrasing:
intent: Query a D1 database
effect: read
questions:
- How do I run a SQL query against my D1 database?
- Can I fetch query results as objects?
instructions:
- text: Query D1 database {database_id} in account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Run a SQL query on D1 database {database_id} in account {account_id} and return results as objects.
slots:
database_id: path.database_id
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}/raw'].post
update:
x-apievangelist-phrasing:
intent: Query a D1 database and return rows as arrays
effect: read
questions:
- Is there a faster way to get D1 query results as arrays?
- Can I get raw row arrays instead of objects from a D1 query?
instructions:
- text: Run a raw query on D1 database {database_id} in account {account_id} returning rows as arrays.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Fetch D1 database {database_id} row arrays in account {account_id} without object conversion.
slots:
database_id: path.database_id
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}/time_travel/bookmark'].get
update:
x-apievangelist-phrasing:
intent: Get a D1 database bookmark
effect: read
questions:
- What is the current bookmark of my D1 database?
- Can I get a D1 database bookmark for a past timestamp?
instructions:
- text: Get the current bookmark of D1 database {database_id} in account {account_id}.
slots:
database_id: path.database_id
account_id: path.account_id
- text: Get the D1 database {database_id} bookmark at or before {timestamp} in account {account_id}.
slots:
database_id: path.database_id
timestamp: query.timestamp
account_id: path.account_id
method: generated
generated: '2026-11-20'
- target: $.paths['/accounts/{account_id}/d1/database/{database_id}/time_travel/restore'].post
update:
x-apievangelist-phrasing:
intent: Restore a D1 database to a bookmark or timestamp
effect: destructive
questions:
- How do I restore a D1 database to a previous point in time?
- Can I roll back a D1 database using a bookmark?
instructions:
- text: Restore D1 database {database_id} in account {account_id} to bookmark {bookmark}.
slots:
database_id: path.database_id
account_id: path.account_id
bookmark: query.bookmark
- text: Roll back D1 database {database_id} in account {account_id} to {timestamp}.
slots:
database_id: path.database_id
account_id: path.account_id
timestamp: query.timestamp
method: generated
generated: '2026-11-20'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay 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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/cloudflare-d1-d1-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.