# Enrich LinkedIn leads with MasLeads API

> Quick overview This workflow manually submits a LinkedIn profile to the MasLeads API for lead enrichment (for example, retrieving an email), polls the job status until completion, and then fetches the enrichment results or stops with a detailed error. How it works 1. Starts when you run the workflow manually. 2. Sets the input data (LinkedIn URL, the enrichment field to retrieve, and an external ID). 3. Calls the MasLeads API to check account usage and available balance. 4. Creates an enrichment job in MasLeads for the provided LinkedIn lead, using an idempotency key to avoid duplicate submissions. 5. Waits 30 seconds, checks the MasLeads job status, and repeats the wait-and-check loop while the job is still in progress. 6. If the job completes, requests the job results from MasLeads and returns the enriched lead data. 7. If the job is blocked or fails, stops the workflow and raises an error message with the status details. Setup 1. Create an HTTP Header Auth credential in n8n with you

- **Domain**: `n8n-workflow-19715.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Category**: data
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19715
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19715.n8n.io
- Documentation: https://n8n.io/workflows/19715
