Skip to content
Docs

In this example, you list the available integrations in your account.

run.ts
import { Edgenivo } from '@vercel/sdk';
const vercel = new Edgenivo({
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();