Source type

Sanity Source Configuration

Sanity sources receive GROQ-powered content webhooks with timestamped Sanity webhook signature verification.

SANITYPOST, PUT, PATCH, DELETEWebhook SecretContent and data
Sanity sends webhook traffic to a FastHook source, FastHook validates the provider contract, records the request, and routes accepted events through connections to destinations.SanityProviderPOST, PUT, PATCH, DELETESignedFastHookSource URLSANITYProvider credentialsignatureVerify before queue401 on auth failure405 on wrong methodAcceptedRequestverified: trueConnections route the accepted request to destinationsFilters, transformations, retries, replay, and destination signatures stay downstream from source verification.

Sanity configuration

Create a Sanity source, keep POST and PUT and PATCH and DELETE enabled, and provide the configured Webhook Secret values for provider signature. FastHook uses these settings to validate each Sanity delivery before it enters the routing workflow.

Source Type

SANITY

Allowed methods

POST, PUT, PATCH, DELETE

Authentication

Provider signature

Credential fields

Webhook Secret

Sanity source config
{
  "type": "SANITY",
  "config": {
    "auth_type": "PROVIDER_SIGNATURE",
    "auth": {
      "provider": "SANITY",
      "webhook_signing_secret": "provider-secret"
    },
    "allowed_http_methods": ["POST","PUT","PATCH","DELETE"]
  }
}

Sanity request contract

FastHook signs timestamp + '.' + raw body with HMAC-SHA256, normalizes base64url, and compares it to the v1 signature.

POSTPUTPATCHDELETE

Sanity headers

Preserve sanity-webhook-signature when sending Sanity test deliveries. FastHook evaluates this request context before accepting the payload, so missing or modified values remain visible as rejected requests instead of routed events.

sanity-webhook-signature

Contains t timestamp and v1 base64url HMAC signature.

Sanity setup

  1. Create a Sanity webhook with the FastHook Source URL.
  2. Paste the Sanity webhook secret into FastHook.
  3. Route by dataset, project, or mutation information.

Continue with Sanity