API Overview
API Overview
Section titled “API Overview”The Illustrata API provides endpoints for generating PDF illustrations for various annuity products.
Available Endpoints
Section titled “Available Endpoints”PDF Generation
Section titled “PDF Generation”| Method | Endpoint | Description |
|---|---|---|
POST | /api/pdf/DemoMYGA | Generate MYGA PDF illustration |
POST | /api/pdf/DemoFIA | Generate FIA PDF illustration |
System
Section titled “System”| Method | Endpoint | Description |
|---|---|---|
GET | /health | Check API health and service status |
Base URLs
Section titled “Base URLs”Production: https://api.illustrata.comDevelopment: http://localhost:3001Request Format
Section titled “Request Format”All POST requests must include:
Content-Type: application/jsonheader- Valid JSON body
- Authentication via API key
Response Format
Section titled “Response Format”All responses return JSON with this structure:
Success Response
Section titled “Success Response”{ "success": true, "message": "Operation successful", "data": { // Response data }}Error Response
Section titled “Error Response”{ "error": "Error type", "message": "Human-readable error message", "details": [ // Optional validation details ]}HTTP Status Codes
Section titled “HTTP Status Codes”| Code | Description |
|---|---|
200 | Success |
400 | Bad Request - Invalid input |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
503 | Service Unavailable |
Rate Limiting
Section titled “Rate Limiting”- Default: 100 requests per 15-minute window
- Headers included in response:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Requests remainingX-RateLimit-Reset: Time when limit resets
Versioning
Section titled “Versioning”The API currently uses URL path versioning. All endpoints are prefixed with /api/.
Future versions will be indicated in the path (e.g., /api/v2/).
Support
Section titled “Support”For API support, feature requests, or to report issues:
- Contact our support team
- Include your API key prefix (first 8 characters only)
- Provide request/response examples when reporting issues