Show examples in:
List all API tokens

Returns

Returns an array of access_token resource objects.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const accessTokens = await client.accessTokens.list();
accessTokens.forEach((accessToken) => {
console.log(accessToken);
});
}
run();