Captcha.adOpen dashboard →
Early access

Build your first integration.

All API keys and widget interactions are sandbox-only. A receipt always reports securityVerified: false and billable: false. Never use it to grant access to a protected form or account.

1. Set up your account and first placement

Create and verify your account. Select the Publisher role, add a website, then create a placement. Developer tools will show a working sandbox embed for that placement. The Advertiser role lets you create campaigns and upload private creative assets.

2. Create a scoped key

Developer tools → Create sandbox key. Read lets you view saved campaigns, placements, and integrations. Write creates drafts, uploads creatives, and requests pilot review. Sandbox starts and completes test interactions. Keys expire after 90 days and are shown once. Store them on your server; never embed them in a public page.

curl https://captcha.ad/api/v1/workspace \
  -H 'Authorization: Bearer YOUR_SANDBOX_KEY'

3. Use the API

Endpoint Purpose Scope
GET /api/v1/workspace Saved items, test events, and key metadata read
POST /api/v1/records Create a draft write
PATCH /api/v1/records/:id Edit a draft and reset review status write
POST /api/v1/campaigns/:id/creatives One JPG, PNG, WebP, or GIF per request; 3 MB maximum. Campaigns require 3–6 images for pilot review. write
POST /api/v1/records/:id/request-pilot Request human review write
POST /api/v1/sandbox/start Start a two-minute test interaction sandbox
POST /api/v1/sandbox/complete Redeem the single-use test token sandbox
DELETE /api/v1/creatives/:idRemove an owned creative and return its campaign to draftwrite
POST /api/v1/campaigns/:id/previewPreview the next image; pass the returned rotation object on the next request. Uses all images once before reshuffling. Sandbox only.write

A draft body has a kind and data:

{
  "kind": "campaign",
  "data": {
    "name": "Launch campaign",
    "brand": "Example brand",
    "headline": "Make your next move.",
    "destination": "https://example.com",
    "budgetCents": 50000
  }
}

Other draft types: site (name, url, provider), placement (name, siteId, format), and integration (name, url, mode). Sites support existing, turnstile, hcaptcha, recaptcha, or hosted preferences. Placements support button or slide. The sandbox renders a keyboard-accessible button or range interaction. Provider preferences are saved for pilot planning.

Send { "placementId": "…" } to start and { "token": "…" } to complete. Invalid requests return 400, unauthenticated requests 401, permissions failures 403, expired/replayed interactions 400/409, and rate limits 429. Limits: 120 requests per key per minute, plus shared abuse protection.

4. Embed the sandbox

Copy your personalized snippet from Developer tools. The SDK mounts an isolated iframe and checks the source and origin of completion messages. The placement ID is public; API keys stay private. This sandbox can be embedded on any site for testing. Production delivery will require approved domains and server-side provider verification.

Always preserve your existing verification provider and fallback. The sample interaction is never a replacement for its security decision.

5. Connect an MCP client

The repository provides a local stdio MCP server. Install the application dependencies, set a scoped key in your client's secure environment settings, and use this configuration with an absolute path to your checkout:

{
  "mcpServers": {
    "captchad": {
      "command": "node",
      "args": ["/absolute/path/to/captchad/mcp/server.mjs"],
      "env": {
        "CAPTCHAD_API_URL": "https://captcha.ad",
        "CAPTCHAD_API_KEY": "YOUR_SANDBOX_KEY"
      }
    }
  }
}

Tools: get_workspace, create_draft, update_draft, upload_creative, request_pilot, start_sandbox, complete_sandbox. Requesting a pilot may notify the operator; it never activates spend. A public remote OAuth MCP endpoint is not part of this release.

Production integration boundary

Provider adapters, live ad selection, verified billable event accounting, budget drawdown, settlements, and payouts remain disabled. Human pilot review is a planning step, not production approval. The hosted experience will still need a real verification provider before it can protect traffic.