In this example, you list the available integrations in your account.
import { Vercel } from '@vercel/sdk';
const vercel = new Vercel({ bearerToken: process.env.VERCEL_TOKEN,});
async function listAccountIntegrations() { try { const integrationsResponse = await vercel.integrations.getConfigurations({ view: 'account', });
integrationsResponse.forEach((config) => { console.log( `- ${config.slug}: ${ config.installationType ? `${config.installationType}` : `` }integration installed in ${config.projects?.join(' ')}`, ); }); } catch (error) { console.error( error instanceof Error ? `Error: ${error.message}` : String(error), ); }}
listAccountIntegrations();