Skip to content

Quick Start

Get up and running with the Illustrata API in just a few minutes.

Before you begin, make sure you have:

  • An API key (contact support to obtain one)
  • A tool for making HTTP requests (cURL, Postman, or your programming language of choice)

First, verify the API is accessible:

Terminal window
curl https://api.illustrata.com/health

You should receive a response like:

{
"status": "ok"
}

To retrieve illustration data in JSON format:

Terminal window
curl -X POST https://api.illustrata.com/api/pdf/DemoMYGA \
-H "Authorization: Bearer ill_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"printIllustration": "no",
"annuiyInputData": {
"Product": "Demo MYGA",
"initamt": 100000,
"State": "CA"
}
}'

To receive a PDF file directly:

Terminal window
curl -X POST https://api.illustrata.com/api/pdf/DemoMYGA \
-H "Authorization: Bearer ill_your_api_key_here" \
-H "Content-Type: application/json" \
-o illustration.pdf \
-d '{
"printIllustration": "yes",
"annuiyInputData": {
"Product": "Demo MYGA",
"initamt": 100000,
"State": "CA"
}
}'

When printIllustration: "no" (JSON Response)

Section titled “When printIllustration: "no" (JSON Response)”

The API returns illustration data in JSON format that can be processed programmatically.

When printIllustration: "yes" (PDF Response)

Section titled “When printIllustration: "yes" (PDF Response)”

The API returns a PDF file directly with headers:

  • Content-Type: application/pdf
  • Content-Disposition: inline; filename=illustration_[timestamp].pdf

Here’s a complete example using Node.js:

const axios = require("axios");
const fs = require("fs");
async function generateIllustration() {
try {
// Option 1: Get JSON data
const jsonResponse = await axios.post(
"https://api.illustrata.com/api/pdf/DemoMYGA",
{
printIllustration: "no",
annuiyInputData: {
Product: "Demo MYGA",
initamt: 100000,
State: "CA",
},
},
{
headers: {
Authorization: `Bearer ${process.env.ILLUSTRATA_API_KEY}`,
"Content-Type": "application/json",
},
},
);
console.log("Illustration data:", jsonResponse.data);
// Option 2: Get PDF directly
const pdfResponse = await axios.post(
"https://api.illustrata.com/api/pdf/DemoMYGA",
{
printIllustration: "yes",
annuiyInputData: {
Product: "Demo MYGA",
initamt: 100000,
State: "CA",
},
},
{
headers: {
Authorization: `Bearer ${process.env.ILLUSTRATA_API_KEY}`,
"Content-Type": "application/json",
},
responseType: "arraybuffer",
},
);
// Save PDF to file
fs.writeFileSync("illustration.pdf", pdfResponse.data);
console.log("PDF saved as illustration.pdf");
} catch (error) {
console.error("Error:", error.response?.data || error.message);
}
}
generateIllustration();
  • Verify your API key starts with ill_
  • Check if the key is active (not expired or revoked)
  • Ensure you’re using the correct header name
  • Check that initamt meets minimum requirements
  • Verify State is a valid US state code
  • Ensure printIllustration is exactly "yes" or "no"
  • Default: 100 requests per 15 minutes
  • If exceeded, wait or contact support for higher limits

Now that you’ve made your first API call:

  • Check our API Reference for detailed endpoint documentation
  • Contact support for API key issues
  • Report bugs or request features through our support channel