Show examples in:
    Retrieve current signed-in user

    Query parameters

    include  Optional  string  Example: "role"

    Comma-separated list of relationship paths. A relationship path is a dot-separated list of relationship names. Allowed relationship paths: role.

    Examples

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