Sorry, no results found for "".
Returns an array of resource objects of type access_token
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const accessTokens = await client.accessTokens.list();7 8 for (const accessToken of accessTokens) {9 // Check the 'Returned output' tab for the result ☝️10 console.log(accessToken);11 }12}13 14run();
1{2 id: "312",3 name: "Read-only API token",4 hardcoded_type: "",5 can_access_cda: true,6 can_access_cda_preview: true,7 can_access_cma: true,8 role: { type: "role", id: "34" },9}