AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction, Property } from '@activepieces/pieces-framework';
import { enrichlayerAuth } from '../auth';
import { enrichlayerApiCall } from '../common/client';
import { ENDPOINTS } from '../common/constants';
export const getDisposableEmailCheck = createAction({
name: 'get_disposable_email_check',
auth: enrichlayerAuth,
displayName: 'Check Disposable Email',
description:
'Check if an email address belongs to a disposable email service (0 credits)',
audience: 'both',
aiMetadata: {
description:
'Check whether an email address belongs to a disposable/temporary email provider. Read-only, free, and safe to retry. Use to validate or filter sign-up and lead emails before further enrichment; this only flags disposability and does not return profile data.',
idempotent: true,
},
props: {
email: Property.ShortText({
displayName: 'Email Address',
description:
'Email address to check (e.g., [email protected])',
required: true,
}),
},
async run(context) {
return await enrichlayerApiCall(
context.auth.secret_text as string,
ENDPOINTS.DISPOSABLE_EMAIL,
{
email: context.propsValue.email,
},
);
},
});