Show examples in:
Retrieve the site

Query parameters

include  Optional  string  Example: "item_types,item_types.fields"

Comma-separated list of relationship paths. A relationship path is a dot-separated list of relationship names. Allowed relationship paths: item_types, item_types.fields, item_types.fieldsets, item_types.singleton_item, account.

Returns

Returns a site resource object.

Examples

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