Developer API

Integrate the ESIS Generator directly into your own systems with our simple REST API.

API Endpoint

Method

POST

URL

/api/generate-esis
Authentication
The API uses API Keys to authenticate requests. Include your API key in the Authorization header as a Bearer token.

Headers

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Request Body
The request body must be a JSON object with the following structure. All fields are required.
{
  "customerName": "John Doe",
  "customerAddress": "123 Test Street, Testville, 12345",
  "creditorName": "Test Bank PLC",
  "validityDate": "31-12-2024",
  "loanAmount": 200000,
  "loanTerm": 240,
  "interestRateType": "Fixed",
  "interestRate": 4.5,
  "propertyAddress": "456 Property Avenue, Propertown, 67890",
  "propertyValue": 250000,
  "oneOffCosts": 500,
  "monthlyCosts": 10,
  "language": "en"}
Success Response
On success, the API will return a 200 OK status with a JSON object containing the generated ESIS text in Markdown format.
{
  "esisText": "This document was produced for John Doe...\n\n# 1. Lender\n..."
}
Sample cURL Request
curl -X POST 'https://www.esis.pro/api/generate-esis' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
  "customerName": "John Doe",
  "customerAddress": "123 Test Street, Testville, 12345",
  "creditorName": "Test Bank PLC",
  "validityDate": "31-12-2024",
  "loanAmount": 200000,
  "loanTerm": 240,
  "interestRateType": "Fixed",
  "interestRate": 4.5,
  "propertyAddress": "456 Property Avenue, Propertown, 67890",
  "propertyValue": 250000,
  "oneOffCosts": 500,
  "monthlyCosts": 10,
  "language": "en"}'