Skip to main content

Introduction

The FastForms API enables you to programmatically generate forms, manage submissions, and export response data. All endpoints use standard HTTP methods and return JSON responses.

Base URL

Authentication

Most endpoints require authentication using Clerk session cookies. Requests must be made from an authenticated browser session or with valid Clerk session tokens. Protected Endpoints:
  • POST /forms/generate - Requires authentication
  • GET /getAllForms - Requires authentication
  • DELETE /forms/[id] - Requires authentication (must own the form)
  • PATCH /forms/[id] - Requires authentication (must own the form)
  • GET /forms/[id]/responses - Requires authentication (must own the form)
  • GET /forms/[id]/export - Requires authentication (must own the form)
Public Endpoints:
  • GET /forms/[id] - No authentication required (can use ID or slug)
  • POST /forms/submit - No authentication required

Available Endpoints

Error Response Format

All errors follow a consistent JSON structure:

Common HTTP Status Codes

  • 200 - Success
  • 201 - Created successfully
  • 400 - Bad request (validation error)
  • 401 - Unauthorized (authentication required)
  • 404 - Resource not found
  • 500 - Internal server error

Quick Example

Generate a form using AI:
Response:

Next Steps

Generate Forms

Learn how to create forms with AI

Manage Forms

Get, update, and delete your forms

Submit Responses

Handle form submissions

Export Data

Export responses as CSV