n8n-nodes-leadmagic
Version:
n8n community node for LeadMagic - B2B data enrichment, email finder, company intelligence, and lead generation API integration
39 lines (38 loc) • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LeadMagicApi = void 0;
class LeadMagicApi {
constructor() {
this.name = 'leadMagicApi';
this.displayName = 'LeadMagic API';
this.documentationUrl = 'https://leadmagic.mintlify.app/api-reference/introduction';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Your LeadMagic API key. Get it from your LeadMagic dashboard.',
required: true,
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'X-API-Key': '={{$credentials.apiKey}}',
'Content-Type': 'application/json',
},
},
};
this.test = {
request: {
baseURL: 'https://api.leadmagic.io',
url: '/credits',
method: 'POST',
},
};
}
}
exports.LeadMagicApi = LeadMagicApi;