Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > OAuth application

List all authorized applications

Warning: Experimental API

Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

Returns

Returns an array of resource objects of type oauth_application

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const oauthApplications = await client.oauthApplications.list();
for (const oauthApplication of oauthApplications) {
// Check the 'Returned output' tab for the result ☝️
console.log(oauthApplication);
}
}
run();
{
id: "312",
name: "Netlify OAuth application",
created_at: "2018-11-20 12:06:49.803166",
site_access_mode: "all",
read_sites_permission_cap: "unrestricted",
mcp_client: null,
granted_sites: [{ type: "site", id: "155" }],
}