Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/netlify

src/list-accounts.js

13 lines · 450 B · JavaScript
import { listAccounts } from './netlify.js'

/**
 * List Netlify teams (accounts) the token can see.
 * @param {Object} [input]
 * @returns {Promise<{ items: Array<{ id: string, name: string | null, slug: string | null }> }>}
 * @example
 * import listAccounts from 'kody:@kody/netlify/list-accounts'
 * const { items } = await listAccounts()
 */
export default async function listAccountsEntrypoint(input = {}) {
	return await listAccounts(input)
}