Answers/How do I get form data into my own database?

How do I get form data into my own database?

Updated March 2026

Two ways: webhooks or polling.

Webhooks are real-time. Every submission triggers a POST to your endpoint. Your server receives the data and inserts it into your database. This is the most common pattern.

Polling is simpler. Call GET /api/forms/{id}/submissions periodically. Filter by date range to get new entries. Insert them into your database. A cron job every minute or every 5 minutes works.

CSV export is the manual option. GET /api/forms/{id}/export returns a CSV. Import into Postgres, MySQL, or whatever. Good for one-time migrations, not for ongoing sync.

For webhooks: your endpoint receives JSON with all field data, a submission ID, and a timestamp. Parse it, map to your schema, insert. Verify the HMAC signature to make sure it is actually from Sutrena.

For high volume: webhooks are better because you get each submission as it happens. Polling with a 1-minute interval means up to 60 seconds of delay.

A third option: automations. Create an automation with a form_submission trigger and a fetch step that POSTs submission data to your API endpoint. Unlike webhooks, automations support conditional logic -- only sync submissions that match specific field values, create page entries before syncing, or chain multiple steps together.

The submissions also stay in Sutrena. You do not have to choose. Use your database for your app logic and Sutrena for data collection and webhooks.

Ready to build?

Get a trial API key instantly — no signup required.

Get form data into your database — Sutrena | Sutrena