# BlokForms Quickstart

BlokForms is an EU-hosted form platform with conditional logic, EU payments (Mollie & Stripe), PDF generation, e-signatures (BlokForms Sign), multi-step approval workflows, appointment slot booking, native integrations, and a 32-tool MCP server for AI agents. A permanent Free tier (up to 5 forms, 250 submissions/month) is available, and all Pro (€19/month) and Business (€49/month) features are currently free during Early Access.

## Production Endpoints

| Service | Base URL | Purpose |
| --- | --- | --- |
| Website & Docs | `https://blokforms.com` | Marketing site, templates, docs, `/llms.txt`, `/skill/SKILL.md` |
| Admin Studio | `https://app.blokforms.com` | Visual form studio, submissions inbox, analytics, team settings |
| Management API & MCP | `https://api.blokforms.com` | REST API (`/api/v1/*`), OpenAPI 3.1 (`/api/v1/openapi.json`), MCP (`/mcp`) |
| Public Edge Delivery | `https://cdn.blokforms.com` | Hosted forms (`/f/:id`), `embed.js`, submissions, uploads, slots, approvals, signing |

## 1. Create a Workspace & Form

1. Sign in at `https://app.blokforms.com` with email OTP (no passwords to manage).
2. Create a **Project** (add your website origins under *Allowed origins*, e.g. `https://yoursite.eu`).
3. Click **New form** and choose one of **16 templates**, start from blank, or describe what you need in **Generate with AI** (EN, NL, DE, FR, or ES).
4. Click **Save** in Form Studio to publish instantly to the Cloudflare edge cache.

## 2. Embed or Share Your Form

### Option A: Zero-dependency script embed (any HTML site)

```html
<div data-blokform="frm_YOUR_FORM_ID" data-theme="light" data-locale="en"></div>
<script src="https://cdn.blokforms.com/embed.js" async></script>
```

### Option B: React & Next.js SDK

```bash
npm install @blokforms/react
```

```tsx
import { BlokForm } from "@blokforms/react";

export function ContactForm() {
  return (
    <BlokForm
      formId="frm_YOUR_FORM_ID"
      baseUrl="https://cdn.blokforms.com"
      onSuccess={({ submissionId, message }) => {
        console.log("Recorded:", submissionId, message);
      }}
    />
  );
}
```

### Option C: Direct EU-Hosted Link

Share `https://cdn.blokforms.com/f/YOUR_ORG/YOUR_PROJECT/YOUR_FORM` or download an SVG/PNG QR code from the **Share** tab in Studio.

## 3. Connect an AI Agent (MCP)

Create a Personal Access Token (`bf_pat_...`) under **Workspace settings -> Developers & API**, then connect Claude Code, Cursor, Codex, or Antigravity:

```bash
claude mcp add --transport http blokforms https://api.blokforms.com/mcp \
  --header "Authorization: Bearer bf_pat_YOUR_TOKEN"
```

See the [AI Agents & MCP Server](/docs/mcp) guide for all 32 tools and safe agent workflows.
