Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Public info

Retrieve public site info

Returns

Returns a resource object of type public_info

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const publicInfo = await client.publicInfo.find();
// Check the 'Returned output' tab for the result ☝️
console.log(publicInfo);
}
run();
{
id: "412",
name: "My Awesome Website",
theme: {
primary_color: { red: 128, green: 128, blue: 128, alpha: 128 },
light_color: { red: 128, green: 128, blue: 128, alpha: 128 },
accent_color: { red: 128, green: 128, blue: 128, alpha: 128 },
dark_color: { red: 128, green: 128, blue: 128, alpha: 128 },
},
sso_saml_init_url: "https://sso.datocms.com/XXX/saml/init",
logo_url: "https://www.datocms-assets.com/XXX/logo.svg",
white_label: true,
custom_i18n_messages_template_url: "",
extras: {
blocks_depth: 3,
blocks_per_item: 150,
maximum_single_upload_bytes: 1073741824,
},
}