Sanity · Arazzo Workflow

Sanity Provision Dataset

Version 1.0.0

Create a dataset in a project, then list datasets to confirm it exists.

1 workflow 1 source API 1 provider
View Spec View on GitHub Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper PlatformArazzoWorkflows

Provider

sanity

Workflows

provision-dataset
Create a dataset and verify it through the project dataset list.
Creates a dataset in the target project with the supplied name and acl mode, then reads the full dataset list back to confirm the provisioning.
2 steps inputs: aclMode, apiToken, datasetName, projectId outputs: createdAclMode, createdName, datasets
1
createDataset
Create the dataset in the project with the requested name and access control mode.
2
listDatasets
List all datasets in the project to confirm the newly created dataset is present.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sanity Provision Dataset
  summary: Create a dataset in a project, then list datasets to confirm it exists.
  description: >-
    The dataset bootstrap pattern for a Sanity project. The workflow creates a
    new dataset with the requested access mode, then lists every dataset in the
    project so the caller can confirm the new dataset is present and inspect its
    acl mode. Every step spells out its request inline so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: projectsApi
  url: ../openapi/sanity-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: provision-dataset
  summary: Create a dataset and verify it through the project dataset list.
  description: >-
    Creates a dataset in the target project with the supplied name and acl
    mode, then reads the full dataset list back to confirm the provisioning.
  inputs:
    type: object
    required:
    - apiToken
    - projectId
    - datasetName
    properties:
      apiToken:
        type: string
        description: Sanity management API token used as a Bearer credential.
      projectId:
        type: string
        description: The project id the dataset is created within.
      datasetName:
        type: string
        description: Name for the new dataset (e.g. staging).
      aclMode:
        type: string
        description: Access control mode for the dataset (public or private).
  steps:
  - stepId: createDataset
    description: >-
      Create the dataset in the project with the requested name and access
      control mode.
    operationId: createDataset
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    requestBody:
      contentType: application/json
      payload:
        datasetName: $inputs.datasetName
        aclMode: $inputs.aclMode
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      createdName: $response.body#/name
      createdAclMode: $response.body#/aclMode
  - stepId: listDatasets
    description: >-
      List all datasets in the project to confirm the newly created dataset is
      present.
    operationId: listDatasets
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      datasets: $response.body
  outputs:
    createdName: $steps.createDataset.outputs.createdName
    createdAclMode: $steps.createDataset.outputs.createdAclMode
    datasets: $steps.listDatasets.outputs.datasets

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow 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.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sanity-provision-dataset-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.