Sanity logosanity.ioAll Systems Operational© Sanity 2026
Change Site Theme
Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Studio quickstart
    • Build with AI
    • Content Lake
    • Functions
    • APIs and SDKs
    • Visual Editing
    • Blueprints
    • Platform management
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • App SDK
    • Content Agent
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
Functions
Overview

  • Introduction
  • Get started

    Create a Document Function
    Create a Media Library Asset Function
    Official recipes

  • Concepts

    Manage dependencies
    Local testing

  • Guides

    Configure @sanity/client
    Add environment variables
    Common patterns

  • Reference

    Handler reference
    CLI reference

FunctionsLast updated January 29, 2026

Create a Document Function

  • Article
  • Changelog
    New
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

January 29, 2026

Function system logs for runtime events

v2026-01-28
Functions

December 9, 2025

Configure Sanity MCP server with CLI, updated blueprint commands + improvements and bugfixes

v4.21.0
Sanity Studio

November 3, 2025

Array upload progress tracking, blueprints doctor command & more

v4.13.0
Sanity Studio

October 16, 2025

Enhanced recursion protection and increased rate limits

v2025-10-16
Functions

September 16, 2025

Delta GROQ CLI tests, Auto update channel for standalone studios and more

v4.9.0
Sanity Studio

August 20, 2025

Functions new document change events and filtering options!

v2025-08-20
Functions

August 6, 2025

Functions `projection` breaking change

v2025-08-06
Functions

July 29, 2025

Functions now supports full GROQ syntax

v2025-07-29
Functions

May 20, 2025

Types included for Functions and additional bugfixes and improvements

v3.89.0
Sanity Studio
End of list