Request Format
All API requests should:Use POST Method
All enrichment endpoints use HTTP POST requests with JSON body.
Include Headers
Set
Content-Type: application/json and X-API-Key headers.Send JSON Body
Request parameters go in the JSON body, not query string.
Handle Responses
Parse JSON responses and check the
status field.Base URL
All API requests should be made to
https://api.leadmagic.io.Rate Limits
Rate limits are subject to change. Need higher throughput? Custom rate limits are available on enterprise plans — contact us.
Every response includes rate limit headers:
Error Handling
LeadMagic uses RFC 9457 Problem Details for standardized error responses:Example Error Response
Example Error Response
Every error includes a
request_id for debugging, suggested action to resolve, and link to relevant docs.Security
Next Steps
Developer Experience
Comprehensive guide to headers, analytics, error handling, and best practices.
Authentication Details
Learn more about API authentication and security.
Analytics API
Monitor your usage with real-time dashboards and detailed metrics.
Email Validation
Start validating emails with our most popular endpoint.