Developers
REST API
Read submissions and manage forms from your own code with an API token. The full reference is an OpenAPI document.
Besides the public submit endpoint, Lazyform has a REST API for your own code: list and read submissions, delete them, and create and manage forms. It's the same API the dashboard uses, so everything you can do there you can do here.
Authentication
Create an API token in the dashboard (Settings, then API tokens) and send it as a bearer token:
curl https://api.lazyform.dev/api/v1/forms \
-H "Authorization: Bearer YOUR_API_TOKEN"An API token can read your submissions. Keep it on your server and never put it in a web page. The access key is the only Lazyform secret that's meant to be public.
Reference
The complete, always up-to-date reference is an OpenAPI document:
Load it into Postman, Insomnia or any OpenAPI viewer, or generate a typed client from it.
Errors
Errors use the same shape as the submit endpoint, with a stable code:
{ "success": false, "error": { "code": "not_found", "message": "We couldn't find that." } }| Status | Code | Meaning |
|---|---|---|
| 400 | validation_failed |
Some fields need fixing; error.details.issues lists each one |
| 400 | invalid_cursor |
The cursor isn't one from the previous page |
| 400 | verification_code_required, verification_code_invalid |
Telegram, SMS and WhatsApp need the one-time code that proves the chat or number is yours (error.details.field names the field) |
| 400 | telegram_not_started |
The Telegram code hasn't been used in Telegram yet |
| 401 | unauthorized |
No token and no dashboard session |
| 401 | invalid_token |
The token is wrong or was revoked |
| 402 | plan_required |
This needs a higher plan |
| 402 | limit_reached |
A plan limit is reached (integrations or recipients per form, linked emails, seats, retention) |
| 402 | free_workspace_limit |
You already own a free workspace; upgrade one to make another |
| 403 | forbidden |
The token can't access this |
| 403 | person_required |
Only a signed-in person can do this, not an API token |
| 404 | not_found |
No such form or submission |
| 409 | already_linked, already_member, … |
The change conflicts with what's already there; the code says which conflict |
| 409 | delivery_in_progress |
That delivery is being sent right now; resend it once it's finished |
| 429 | rate_limited |
Too many integration tests, texted codes, code tries or Telegram connects in a short time; wait a minute |
| 429 | code_sent_recently |
A code was just sent to this number; wait a minute |
| 429 | code_daily_limit |
This number, or this workspace, got as many codes as allowed in 24 hours |
| 429 | resend_too_soon |
An email was just sent; error.details.retryAfter says how many seconds to wait |
| 502 | code_not_sent |
The text message with the code couldn't be sent; check the number and try again |
Plans
The API is open on every plan, Free included. Plan limits and plan-only features apply exactly as in the dashboard. See pricing.
Prefer no code?
- Push each submission to your own URL instead of polling: webhooks.
- Let an AI assistant manage your forms: MCP server.