API Documentation
Build powerful integrations with ExGenAI. Create, manage, and deploy landing pages programmatically.
Getting Started
Everything you need to start building with the ExGenAI API
API Key Authentication
Include your API key in the Authorization header
Authorization: Bearer YOUR_API_KEY
Rate Limiting
1000 requests per hour for free tier, 10,000 for pro
HTTPS Required
All API requests must be made over HTTPS
Base URL
https://api.exgenai.com/v1
API Endpoints
Complete reference for all available endpoints
POST
/api/pages
Create a new landing page
Request
{
"title": "My Landing Page",
"template": "modern-business",
"content": {
"headline": "Welcome to Our Product",
"description": "Transform your business today"
}
}
Response
{
"id": "page_123",
"title": "My Landing Page",
"url": "https://exgenai.com/p/page_123",
"status": "published",
"createdAt": "2024-01-15T10:30:00Z"
}
GET
/api/pages
List all landing pages
Response
{
"pages": [
{
"id": "page_123",
"title": "My Landing Page",
"status": "published",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"total": 1,
"page": 1
}
GET
/api/pages/{id}
Get a specific landing page
Response
{
"id": "page_123",
"title": "My Landing Page",
"content": {...},
"generatedHtml": "<!DOCTYPE html>...",
"status": "published",
"createdAt": "2024-01-15T10:30:00Z"
}
POST
/api/ai/generate
Generate content using AI
Request
{
"prompt": "Create a tech startup landing page",
"style": "modern",
"industry": "technology"
}
Response
{
"content": {
"headline": "Revolutionize Your Workflow",
"subheadline": "Cutting-edge solutions for modern teams",
"features": [...]
},
"generatedAt": "2024-01-15T10:30:00Z"
}
SDKs & Examples
Official SDKs and code examples to get you started quickly
JavaScript/Node.js
Official SDK for JavaScript and Node.js applications
npm install @exgenai/sdk
Example Usage
import { ExGenAI } from '@exgenai/sdk';
const client = new ExGenAI('your-api-key');
const page = await client.pages.create({
title: 'My Landing Page',
template: 'modern-business'
});
Python
Official Python SDK with async support
pip install exgenai
Example Usage
from exgenai import Client
client = Client('your-api-key')
page = client.pages.create(
title='My Landing Page',
template='modern-business'
)
cURL
Direct HTTP requests using cURL
Available on all systems
Example Usage
curl -X POST https://api.exgenai.com/v1/pages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "My Landing Page",
"template": "modern-business"
}'
Need API Support?
Our developer support team is here to help you integrate successfully.