Documentation Index
Fetch the complete documentation index at: https://docs.incentives.leap.energy/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide covers key concepts, workflows, and best practices for working with the Leap API. For detailed endpoint specifications, see the individual API reference pages.Authentication
All API requests require authentication via thex-api-key header:
Best Practices
Performance Optimization
- Pagination: Use appropriate
limitvalues for search endpoints (default: 50, max: 100) - Cache reference data: Store customer IDs and reference IDs locally to avoid repeated lookups
- Poll efficiently: Use reasonable intervals when monitoring application status changes
Error Handling
Common HTTP status codes:- 400 Bad Request: Missing required fields, invalid parameters, or validation errors
- 401 Unauthorized: Missing or invalid
x-api-keyheader - 403 Forbidden: API key valid but lacks permission (e.g., IP restrictions)
- 404 Not Found: Resource doesn’t exist
- 500 Internal Server Error: Server-side error (contact support if persistent)
error or message field describing the issue, plus a requestId for support inquiries.
Testing & Validation
- Test with test keys: Always develop against test environment first
- Validate data: Test your integration with various scenarios before going live
Security Considerations
- Never commit API keys: Use environment variables and secret management
- Rotate keys regularly: Generate new keys periodically and revoke old ones
- Use HTTPS only: All API requests must use HTTPS
- Validate input: Always validate user input before sending to the API
API Guides
For detailed information on working with specific APIs, see:- Incentives API Guide - Calculate incentives and create applications
- Applications API Guide - Query and monitor applications
Support & Resources
- API Reference: Detailed endpoint specifications in the API Reference section
- OpenAPI Spec: Download the full OpenAPI specification for use with API tools
- Support: Contact support@leap.energy with your
requestIdfor troubleshooting