CMS

Sanity

Sanity is a headless CMS: your content lives as JSON documents in a dataset, queried with GROQ and edited in Sanity Studio.

Authentication

  • API token

Actions

Generic API request. Call any Sanity API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.

  • Create documentCreate a document in the connected Sanity dataset (POST data/mutate/{dataset} with a create mutation).
  • Create or replace documentCreate a document, or replace it entirely if the id already exists, in the connected Sanity dataset (POST data/mutate/{dataset} with a createOrReplace mutation).
  • Delete documentDestructivePermanently remove one document from the dataset by its id.
  • Get documentFetch one document's full content by its id, for when you already hold the id and do not need a GROQ Query.
  • Mutate (raw)DestructiveAdvanced: submit a raw list of Sanity mutations in one transaction (POST data/mutate/{dataset}).
  • Patch documentDestructiveUpdate fields on an existing Sanity document (POST data/mutate/{dataset} with a patch/set mutation).
  • Run GROQ queryRun a GROQ query against the connected Sanity dataset (GET data/query/{dataset}).

Triggers

  • New or updated documentStarts when a document is created or edited in the connected Sanity dataset.

Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.