CodeFreeForm API

Simple, secure contact form backend for your website or application

Key Features

Secure Authentication

Verification key system with optional domain restrictions to keep your forms secure.

File Uploads

Support for up to 10 files per submission, with a 10MB limit per file.

Webhook Integration

Real-time webhooks to integrate with your custom workflows and automation.

CORS Enabled

Full CORS support for seamless integration from any domain.

Email Delivery

Automatic email delivery with customizable recipients and HTML templates.

Rate Limiting

Built-in rate limiting to prevent abuse and spam submissions.

Quick Start

New to the API? Follow our Getting Started Guide for detailed instructions.

1. Get a Verification Key

Request a verification key by providing your email:

curl -X POST https://codefreeform.com/ \
  -H "Content-Type: application/json" \
  -d '{"email": "your-email@example.com"}'

2. Submit a Contact Form

Use your verification key to submit contact form data:

curl -X POST https://codefreeform.com/api/contact-api/ \
  -H "Content-Type: application/json" \
  -d '{
    "access_key": "YOUR_KEY",
    "email": "sender@example.com",
    "message": "Hello from the API!",
    "subject": "Test Message"
  }'

3. Integrate with Your Application

Check out our code examples for JavaScript, Python, and more!

API Overview

Base Endpoint
POST /api/contact-api/
Rate Limit
1 request per 3 seconds per IP
Supported Features
  • JSON & Form Data
  • File Uploads (10 max, 10MB each)
  • Custom Fields
  • Email Notifications
  • Webhook Integration
  • Custom Redirect URLs
  • Domain Restrictions
  • CORS Support

Next Steps

Getting Started

Learn how to integrate the API into your application with our step-by-step guide.

Read Guide
Code Examples

Explore practical examples in JavaScript, Python, jQuery, and more.

View Examples