Panther Hook Docs
Getting started

Connect with FastAPI

Forward validated server-side form data from a FastAPI endpoint.

Requirements

Install FastAPI, httpx and email-validator (required for EmailStr). Create a server route and configure PANTHER_HOOK_TOKEN as a deployment secret.

Protected ingestion uses POST /api/v1/forms/:formId/submissions with Authorization: Bearer and submissions:create scope.

Configure and test

Step 1: Copy credentials or form key

Create a scoped workspace token in API Tokens and store it in the server or hosting platform secret store.

Step 2: Add the request

Validate incoming fields and add rate limiting to your own public endpoint. Never pass the bearer token back to the browser.

Step 3: Send a test

Use test: true in the JSON request or run the form setup test tool.

Step 4: Verify and launch

Open Submissions and filter by Test to verify captured field values. Configure enabled destinations and inspect Deliveries separately.

Example

This FastAPI example uses standard HTTP. Panther Hook does not require a framework-specific SDK; replace all placeholder identifiers with real form values.

Python

Troubleshoot

  • Unexpected 4xx: check endpoint, scope or allowed origin and required fields.
  • 429: respect rate limits and avoid unbounded retries.
  • Accepted lead but missing notification: inspect the relevant destination and spam classification separately.
Troubleshooting guide
Didn't find the answer? Contact support. For endpoint descriptions, see the API reference.