Request a Cloud Email programmatically Ultra Only

Cloud Emails are a feature of Ultra subscription that allows you to generate real private disposable email addresses. You can read more about them here.

If you want to programmatically request a new email address with a custom prefix from your generators, you can use the following code:

let prefix = 'fd.';
let domain = 'fakedata.email';

// this will be a Promise
return fakeData.getUltraSubscriptionObject.getFakerUltraDefines().emailAddress.callback(prefix, domain);
let prefix = 'fd.';
let domain = 'fakedata.email';

return await fakeData.ultra.generators.email(prefix, domain);

Note: In the above example, variables prefix and domain are optional. If ignored, they will default to that you have set in the Cloud Settings page.

The domain name must be one of your available domains as listed in the Cloud Settings page. If an invalid domain is used, it will fallback to fakedata.email.