Find role matches for a given companies like "CEO" or "CFO".
| Billable Operation | Provider | Billing Mode Docs | Connection Docs | Cost per operation Docs |
|---|---|---|---|---|
leadmagic-find-role | P LeadMagic | On Success | Managed, User | 1.00 credits |
const options = {
method: 'POST',
headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
body: JSON.stringify({
config: {environment: 'production'},
pipes: [
{
pipe_id: 'people:match:role:waterfall@1',
config: {providers: [{provider: 'leadmagic'}], roles: ['CEO']}
}
],
input: [{id: '1', company_website_url: 'https://acme.com'}]
})
};
fetch('https://api.pipe0.com/v1/pipes/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));