Skip to content

/v1/submit

We currently have one endpoint for submitting forms. /v1/submit, which requires a POST request. This endpoints accepts application/json, application/x-www-form-urlencoded and multipart/form-data content types. The endpoint will return a JSON response or a redirect if specified. The endpoint will also send an email to the email(s) specified in the access_key field. The email will contain the data submitted, minus the access_key field and any other fields specified that should not be sent in the email. The endpoint accepts the following parameters:

access_key (required)

type: string | string[]

The access key(s) for the email(s) you want to send to. This field is required.

subject

type: string | undefined

The email subject. Prefill using hidden or JSON. If not specified, the email subject will be Notification from website.

redirect

type: string | undefined

The redirect URL. Prefill using hidden or JSON. Should only be used without JS.

botcheck

type: string | undefined

hidden. To prevent spam.

Responses

2xx

{
"statusCode": "number",
"success": true,
"body": {
"data": {
{/* Data submitted, minus access_key and other data fields */}
},
"message": "Email sent"
}
}

4xx

{
"statusCode": "number",
"success": false,
"body": {
"data": {
{/* Data submitted, minus access_key and other data fields */}
},
"message": "string"
}
}

5xx

{
"statusCode": "number",
"success": false,
"body": {
"data": {
{/* Data submitted, minus access_key and other data fields */}
},
"message": "string"
}
}