Private Groups allow you to organize your Pinata content through the Pinata App, SDK, or API, giving you a clearer picture of what your files are being used for.
To create a group you can use the create method and passing in the name you want to give a group.
Copy
import { PinataSDK } from "pinata";const pinata = new PinataSDK({ pinataJwt: process.env.PINATA_JWT!, pinataGateway: "example-gateway.mypinata.cloud",});const group = await pinata.groups.public.create({ name: "My New Group",});