capabilities.work

Discover Project Datasets

A 3-step recipe with Sanity. We can help you get access.

Recipe · 3 steps

Discover Project Datasets

with Sanity

Enumerate projects and drill into one project's details and datasets.

  1. List every project the token can access and capture the id of the first project for drill-down.
  2. Read the details of the first accessible project.
  3. List the datasets that belong to the chosen project.
What you'll need to have ready
  • apiToken: Sanity management API token used as a Bearer credential.
For your developer

Arazzo workflow sanity:discover-project-datasets, 3 operations: listProjects → getProject → listDatasets. Specs on APIs.io.