import Moonbase from '@moonbaseai/sdk';
const client = new Moonbase({
apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted
});
const unsubscribe = await client.unsubscribes.create({ email: 'yoda@moonbase.ai' });
console.log(unsubscribe.created_at);