For the complete documentation index, see llms.txt. This page is also available as Markdown.

Submissions API

Read your form submissions programmatically — including metadata like user IP address — and create submissions straight from your own backend. This is a REST API, separate from the public form endpoint your HTML form posts to.

The Submissions API is a PRO feature. Create and manage API keys from your dashboard.

Base URL

https://api.web3forms.com/v1

Authentication

Every request must include a Bearer token in the Authorization header. Your API key looks like w3f_live_….

curl https://api.web3forms.com/v1/forms \
  -H "Authorization: Bearer w3f_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Managing keys

Go to Dashboard → Account → API Keys:

  • Create a key — give it a label (e.g. "Production backend") and pick its permissions. The full key is shown once.

  • Revoke a key — takes effect immediately; any request using it returns 401.

  • You can hold up to 10 active keys at a time.

A key is scoped to your account and works for any form you own.

Permissions

Permission
Grants

Read submissions

GET /forms, GET /submissions, GET /submissions/{id}. Always enabled.

Create submissions

POST /submissions. Opt-in when you create the key.

Keys are read-only unless you tick Create submissions. A key without that permission gets 403 on POST /submissions.

Rate limits

Read requests are limited to 1,000 requests/hour per API key. Creating submissions uses the same per-form hourly submission limit as regular form submissions.

The API also has a shared safety throttle of 20 requests/second (burst 50) across all customers. This is not a per-account allowance.

Exceeding a limit returns 429 with a Retry-After header (in seconds). Wait for that duration before retrying.


List forms

GET https://api.web3forms.com/v1/forms

Returns all forms you own.

Response


List submissions

GET https://api.web3forms.com/v1/submissions

Returns submissions for a form, newest first.

Query Parameters

Name
Type
Description

form_id*

string

The form to fetch submissions for.

limit

integer

Page size. Default 50, min 1, max 100.

cursor

string

Pagination cursor from a previous response.

Example

Response

Pagination

When has_more is true, pass next_cursor back as the cursor parameter to fetch the next page. Repeat until has_more is false.


Get a submission

GET https://api.web3forms.com/v1/submissions/{id}

Returns a single submission by its id.

Example

Response


Create a submission

POST https://api.web3forms.com/v1/submissions

Submits a form from your own server. The submission is processed exactly like one sent from a browser: it's stored, your notification email and autoresponder go out, and your integrations run.

Requires a Secret API key with the WRITE permission.

Use this when the data never passes through a browser — a server-side form handler, a CRM sync, a queue worker, an AI agent. For normal HTML forms, keep posting to the regular endpoint with public access key.

Body Parameters

Name
Type
Description

form_id*

string

The form to submit to. Must be a form you own.

fields*

object

Your form fields as name/value pairs. At least 1, at most 100.

subject

string

Overrides the notification email subject.

from_name

string

Overrides the sender name.

replyto

string

Reply-To address for the notification email.

cc

string

CC address.

bcc

string

BCC address.

preheader

string

Email preheader text.

metadata

object

Attribution for the original submitter: ip, user_agent, site_url. See Passing the real submitter.

attachments

array

Files to attach. See Attachments.

Example

Response

201 Created

Use that id with Get a submission to read the stored record back.

Form fields go in fields

Everything the person filled in belongs inside fields. Email options like subject sit at the top level of the request, next to form_id.

Passing the real submitter

If the data started with a real visitor — say your server validates a form before forwarding it — pass their details in metadata so your dashboard, spam check and notification email show the visitor instead of your server:

All three are optional. Omit them and the submission is attributed to your server.

Attachments

Send files as base64. Each needs a filename and content; content_type is optional.

Up to 10 files, 5 MB total (measured after decoding). Files are stored and linked from the notification email, the same as a browser upload.

What's checked, and what isn't

Because the API key already proves you own the form, the browser-oriented guards don't apply:

Not applied
Why

Captcha

A server has no captcha token. Works even on forms that require one for browsers.

Domain / referer restrictions

There's no referring page to check.

Per-IP rate limit

All your calls come from one server. The per-form limit still applies.

Everything else is unchanged: submissions count toward your monthly quota, spam filtering still runs, and your form's per-hour rate limit still applies.


Errors

Errors return a non-2xx status and a JSON body:

Status
Code
Meaning

400

bad_request

Missing or invalid parameter (e.g. no form_id, a reserved field name)

400

submission_rejected

The submission was refused — see message (quota reached, plan limit, empty data)

401

unauthorized

Missing, malformed, or revoked key

403

forbidden

Key not authorized for that form, or missing a required permission

404

not_found

Form or submission doesn't exist (or isn't yours)

429

rate_limit_exceeded

Too many requests — retry after the header value

500

server_error

Something went wrong on our end

submission_rejected carries the reason straight through, so show or log the message:

Last updated