Skip to main content
This guide covers request format, rate limits, and error handling for the LeadMagic API. If you haven’t made your first call yet, start with the Quickstart.

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:
See our Developer Experience guide for complete header documentation and monitoring best practices.

Error Handling

LeadMagic uses RFC 9457 Problem Details for standardized error responses:
Every error includes a request_id for debugging, suggested action to resolve, and link to relevant docs.

Security

See the Authentication guide for API key security best practices, including environment variables, server-side usage, and key rotation.

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.