# Cloudflare Workers KV Integrations

Connect Workers KV to the tools that maintain your website. Publish a redirect table from Google Sheets, point to new R2 release files and expire temporary announcements automatically.

## Setup notes

- **Choose the namespace for each step** Connect with a Cloudflare account ID and a token with Workers KV Storage access. Editing a namespace or its keys requires Edit on the account. Analytics queries need Account Analytics Read.
- **Receive namespace events** Subscribe a Cloudflare Queue to namespace creation and deletion and attach the FastHook relay. These events describe changes to namespaces. Key writes in the templates start from Sheets, R2, a schedule or a private webhook.
- **Plan for propagation and recovery** Standard KV caches values across locations. Allow time for updates to reach readers. Back up an application prefix to R2 and verify the archive in a separate namespace before using it for recovery.

## Workflow templates

- [Cache Cloudinary upload references in Workers KV](https://www.fasthook.io/templates/cloudinary-uploads-to-workers-kv.md): Index each upload by asset ID, storing the public ID and resource type.
- [Cache new Zendesk ticket references in Workers KV](https://www.fasthook.io/templates/zendesk-new-tickets-to-workers-kv.md): Index each new ticket by ID with its status, priority and creation time.
- [Cache new Webflow CMS item references in Workers KV](https://www.fasthook.io/templates/webflow-new-cms-items-to-workers-kv.md): Index each new CMS item, including drafts, by collection and item ID.
- [Cache new Zoom meeting references in Workers KV](https://www.fasthook.io/templates/zoom-new-meetings-to-workers-kv.md): Store a JSON lookup entry for each new meeting.
- [Cache finished CloudConvert job references in Workers KV](https://www.fasthook.io/templates/cloudconvert-finished-jobs-to-workers-kv.md): Store the job ID, status and completion time for each finished conversion.
- [Cache new Intercom lead references in Workers KV](https://www.fasthook.io/templates/intercom-new-leads-to-workers-kv.md): Store a lead reference for each new Intercom lead using its workspace and lead IDs as the lookup key.
- [Index new Auth0 account references in Workers KV](https://www.fasthook.io/templates/auth0-new-users-to-workers-kv.md): Store a short-lived lookup record for each new account using the tenant and user IDs as the key.
- [Cache new Cal.com booking references in Workers KV](https://www.fasthook.io/templates/calcom-new-bookings-to-workers-kv.md): Index each new booking by UID in a selected namespace.
- [Cache new Pipedrive deal references in Workers KV](https://www.fasthook.io/templates/pipedrive-new-deals-to-workers-kv.md): Write a short-lived JSON lookup record for each new deal.
- [Index recent Canny feedback references in Workers KV](https://www.fasthook.io/templates/canny-new-feedback-to-workers-kv.md): Keep feedback references available for 24 hours.
- [Index new ActiveCampaign lists in Workers KV](https://www.fasthook.io/templates/activecampaign-new-lists-to-workers-kv.md): Keep list creation references available for 24 hours.
- [Record recent Cloudflare Queue deliveries in Workers KV](https://www.fasthook.io/templates/cloudflare-queues-deliveries-to-workers-kv.md): Index the delivery metadata for 24 hours using the delivery ID as the key.
- [Record recent Datadog monitor alerts in Workers KV](https://www.fasthook.io/templates/datadog-triggered-monitors-to-workers-kv.md): Index triggered monitor events by event ID for up to 24 hours.
- [Record recent monday.com items in Workers KV](https://www.fasthook.io/templates/monday-new-items-to-workers-kv.md): Index the references and name of each new item from the selected board in Workers KV for up to 24 hours.
- [Record recent Mailchimp signups in Workers KV](https://www.fasthook.io/templates/mailchimp-new-subscribers-to-workers-kv.md): Index new signups in the selected Workers KV namespace for up to 24 hours.
- [Cache new Zoho CRM contact batches in Cloudflare Workers KV](https://www.fasthook.io/templates/zoho-crm-contact-batches-to-workers-kv.md): Store each new Zoho CRM Contacts notification for 24 hours in a selected Workers KV namespace.
- [Keep recent Twilio errors in Cloudflare Workers KV](https://www.fasthook.io/templates/twilio-errors-to-workers-kv.md): Store each Twilio error for 24 hours in a selected Workers KV namespace.
- [Show a website banner until its expiry time](https://www.fasthook.io/templates/webhook-to-cloudflare-kv-expiring-banner.md): Receive announcement text and its expiry through a private webhook.
- [Publish website redirects from Google Sheets](https://www.fasthook.io/templates/google-sheets-redirects-to-cloudflare-kv.md): Publish a checked table of same-site redirects in one KV write.
- [Announce a new R2 release file in Slack](https://www.fasthook.io/templates/cloudflare-r2-release-pointer-to-kv-and-slack.md): Record the object key from an R2 upload in KV and let your release channel know which file arrived.
- [Back up a group of KV keys to R2](https://www.fasthook.io/templates/cloudflare-kv-prefix-backups-to-r2.md): Export a selected prefix with binary values, metadata and absolute expiry times.

## Triggers

2 Instant

- **A KV namespace was created** (Instant) — Start a workflow when Cloudflare creates a namespace in the connected account.
- **A KV namespace was deleted** (Instant) — Start a workflow when Cloudflare removes a namespace. The notification includes its last name and identifier.

## Actions

- **Analyze KV operations** — Compare reads, writes, deletes and lists over the selected time period.
- **Analyze KV storage** — Track stored bytes and key counts across your namespaces.
- **Back up keys by prefix** — Export matching keys, binary values, metadata and absolute expiry times to a JSON file for restoration.
- **Create a KV namespace** — Create a named collection for your application’s keys and values.
- **Delete a batch of keys** — Remove the named keys in one request and inspect any unsuccessful keys.
- **Delete a namespace and its keys** — Permanently remove the selected namespace and all values stored in it.
- **Delete keys with the legacy API** — Use the older bulk deletion endpoint for existing integrations. For new workflows use Delete a batch of keys.
- **Delete one key** — Remove the selected key, its stored value and its metadata.
- **Explore KV analytics columns** — Look up the columns, types and filters available for KV request analytics.
- **Get namespace details** — Look up the name, mode and identifier of one KV namespace.
- **List keys by prefix** — Browse key names, expiration times and metadata. Use the returned cursor to read the next page.
- **List KV namespaces** — Find the namespaces in your account and page through their names and identifiers.
- **Publish verified redirect rules** — Check every source and destination before replacing the active redirect table in a single write. A conflicting row leaves the previous table available.
- **Query KV requests with SQL** — Explore KV request activity using a time-bounded SQL query.
- **Read a batch of values** — Look up up to 100 keys together, optionally returning metadata with each value.
- **Read a stored value** — Retrieve one key as text or as a file that preserves the original bytes.
- **Read key metadata** — Retrieve the JSON metadata attached to one key without downloading its value.
- **Rename a KV namespace** — Change the display name of a namespace while keeping its identifier and keys.
- **Store a value with an optional expiry** — Write text or binary data under one key. Optionally attach JSON metadata or set an expiration time.
- **Write a batch of keys** — Store multiple values in one request, with per-key metadata, encoding and expiration.
