API Documentation

RESTful API for programmatic document generation

Coming Soon

We're building a powerful API for document generation. Soon you'll be able to:

  • Generate documents programmatically via REST API
  • Integrate document generation into your applications
  • Use webhooks for asynchronous processing
  • Access templates and customize branding
  • Manage documents and retrieve generated files

API Endpoint (Preview)

                    https://api.cleardocs.cc/v1
                

Example Request (Preview)

                    curl -X POST https://api.cleardocs.cc/v1/invoices \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": {
      "name": "Your Company",
      "email": "billing@company.com"
    },
    "to": {
      "name": "Client Name",
      "email": "client@email.com"
    },
    "items": [
      {
        "description": "Web Development",
        "quantity": 10,
        "price": 100.00
      }
    ],
    "template": "modern",
    "format": "pdf"
  }'
                

Response Example (Preview)

                    {
  "id": "inv_abc123",
  "status": "generated",
  "pdf_url": "https://cdn.cleardocs.cc/invoices/abc123.pdf",
  "created_at": "2025-01-15T10:30:00Z"
}
                

📚 OpenAPI Spec

Full OpenAPI 3.0 specification with interactive documentation

🔐 Authentication

Secure API key and OAuth 2.0 authentication

⚡ Rate Limits

Generous rate limits with burst capacity for production use

📊 Usage Analytics

Track API usage, monitor performance, and view analytics