Skip to main content
Developer Portal

Build with the PromptReports.ai API

Integrate AI-powered report generation into your applications. Access templates, create reports, and export to multiple formats programmatically.

Fast & Reliable

Low-latency API responses with 99.9% uptime. Built on modern infrastructure to handle high-volume requests.

Secure by Design

API key authentication with customizable permissions. Rate limiting and request logging for security.

RESTful JSON API

Simple REST API with JSON responses. Works with any programming language or HTTP client.

Quick Start

1

Get your API key

Create an API key from your developer settings. Keep it secure - you'll need it for all API requests.

2

Make your first request

Test your API key by listing available templates:

curl -X GET "https://promptreports.ai/api/v1/templates" \
  -H "Authorization: Bearer pr_live_your_api_key_here"
3

Create a report

Use a template ID to create a new report:

curl -X POST "https://promptreports.ai/api/v1/reports" \
  -H "Authorization: Bearer pr_live_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "template_id_here",
    "inputs": {
      "company_name": "Acme Corp",
      "industry": "Technology"
    }
  }'

Code Examples

Integrate with your favorite programming language

Python
import requests

API_KEY = "pr_live_your_key"
BASE_URL = "https://promptreports.ai/api/v1"

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

# List templates
response = requests.get(
    f"{BASE_URL}/templates",
    headers=headers
)
templates = response.json()["data"]["templates"]

# Create a report
report = requests.post(
    f"{BASE_URL}/reports",
    headers=headers,
    json={
        "templateId": templates[0]["id"],
        "inputs": {"company": "Acme"}
    }
).json()
Node.js
const API_KEY = 'pr_live_your_key';
const BASE_URL = 'https://promptreports.ai/api/v1';

const headers = {
  'Authorization': `Bearer ${API_KEY}`,
  'Content-Type': 'application/json'
};

// List templates
const templates = await fetch(
  `${BASE_URL}/templates`,
  { headers }
).then(r => r.json());

// Create a report
const report = await fetch(
  `${BASE_URL}/reports`,
  {
    method: 'POST',
    headers,
    body: JSON.stringify({
      templateId: templates.data.templates[0].id,
      inputs: { company: 'Acme' }
    })
  }
).then(r => r.json());

API Endpoints

GET/api/v1/templates
List available templates
GET/api/v1/reports
List your reports
POST/api/v1/reports
Create a new report
GET/api/v1/reports/:id
Get report details
POST/api/v1/reports/:id/export
Export report to PDF/DOCX/etc

Ready to get started?

Create your API key and start building with PromptReports.ai today.

Create API Key