---
title: Integrations
description: One page per stack. Each repeats the minimal snippet and links to the copy-paste sample folder on GitHub.
---

Every integration targets the same endpoint, `POST https://api.contactusiq.com/s/{formPublicId}`, so the choice is about how the page is built, not about the API. All samples use the placeholder form id `au_xxxxxxx` and the Turnstile site key placeholder `0x4AAAAAAA_PLACEHOLDER`; replace both with the values on your form's Snippet screen.

| Stack | Guide | Sample folder | Shape of the integration |
| --- | --- | --- | --- |
| Plain HTML | [Plain HTML form](/integrations/html-form) | [`samples/html-form`](/samples/html-form/README.md) | A `form` with an `action` URL. No JavaScript required. |
| Any page | [JavaScript embed](/integrations/js-embed) | [`samples/js-embed`](/samples/js-embed/README.md) | One script tag and one `div`; fields and theme come from the dashboard. |
| Vanilla JS | [JSON fetch](/integrations/json-fetch) | [`samples/json-fetch`](/samples/json-fetch/README.md) | `fetch` with JSON, inline thank-you, handles 400 and 429. |
| React | [React](/integrations/react) | [`samples/react`](/samples/react/README.md) | A hooks-only component with Turnstile via the explicit API. |
| Next.js | [Next.js](/integrations/nextjs) | [`samples/nextjs`](/samples/nextjs/README.md) | App Router page plus client component; optional proxy route. |
| Astro | [Astro](/integrations/astro) | [`samples/astro`](/samples/astro/README.md) | A `.astro` page with the HTML form, or the embed with `is:inline`. |
| WordPress | [WordPress](/integrations/wordpress) | [`apps/wp-plugin`](/samples/wp-plugin/README.md) and [`samples/wordpress-shortcode`](/samples/wordpress-shortcode/README.md) | The plugin (block, shortcode, widget, Contact Form 7 adapter) or a one-file shortcode. |
| Webflow, Squarespace, Wix | [Site builders](/integrations/site-builders) | guide only | Custom-code embed of the HTML form or the script tag. |
| Any HTTP client | [curl](/integrations/curl) | [`samples/curl`](/samples/curl/README.md) | Form-encoded, JSON, multipart, idempotency key, honeypot negative test. |

## Choosing a flavour

- **Plain HTML form** when the site is static, you want zero JavaScript, or you want a redirect to your own thank-you page. Works with JavaScript disabled.
- **JavaScript embed** when you want the form's fields, labels and theme managed in the dashboard so changes appear without a deploy.
- **JSON fetch** (including the React and Next.js components) when the page is an app that should stay put and show an inline result. JSON posts from a browser are cross-origin, so the page must be served from a verified domain for the CORS preflight to succeed.

## What every integration needs

1. A verified domain in the workspace and a published form on it.
2. The form's public id, and the Turnstile site key if the page renders Turnstile itself.
3. An empty hidden `_honeypot` field (the embed and widget add their own).
4. To be served over HTTPS from the verified domain when testing. `localhost` and `file://` are never verified; a form can be set to allow any origin for development.
