Skip to main content

Documentation Index

Fetch the complete documentation index at: https://pinata-fix--redirect--docs-to--quickstart.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The file vectors feature is still in beta. Please contact the team at team@pinata.cloud if you have any issues.
Vectorize an existing file (must be part of a group)

Usage

import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example.mypinata.cloud",
});

const update = await pinata.files.private
  .vectorize("52681e41-86f4-407b-8f79-33a7e7e5df68")

Returns

type VectorizeFileResponse = {
	status: boolean;
};

Parameters

fileId

  • Type: string
ID of the target file to vectorize
const update = await pinata.files.private
  .vectorize("52681e41-86f4-407b-8f79-33a7e7e5df68")