Form Builder API
POST /services/forms/v1/forms/edit Auth

Edit Form

Request Body Required

FieldTypeRequiredDescriptionExample
title string
max: 255
Yes Contact Form
submit_title string
max: 255
Yes Send Message
redirect_after_submit string|null
max: 255
No https://example.com/thank-you
notify_owner boolean|null No true
confirmation_emails string|null No admin@example.com,info@example.com
owner_submission_subject string|null
max: 255
No New form submission received
owner_submission_template_type string|null
default, raw
No default
owner_submission_raw_template string|null No <h1>New Submission</h1>
owner_submission_important string|null
max: 255
No Please respond within 24 hours
owner_submission_text string|null No A new submission has been received.
notify_user boolean|null No false
user_confirmation_emails string|null No email
submission_subject string|null
max: 255
No Thank you for your submission
submission_template_type string|null
default, raw
No default
submission_raw_template string|null No <h1>Thank You</h1>
submission_important string|null
max: 255
No We will get back to you within 48 hours
submission_text string|null No Thank you for contacting us.
webhook_enabled boolean|null No false
webhook_url string (uri)
max: 255
Yes https://hooks.example.com/form-submissions
id integer Yes 42

Responses

500
200
404
422
401
403
429
Internal server error
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data string[]
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Unauthenticated — missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Forbidden — insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
Retry-After integer Seconds until the rate limit resets 60
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
curl -X POST "https://api.wemasy.nl/api/services/forms/v1/forms/edit" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Contact Form",
    "submit_title": "Send Message",
    "redirect_after_submit": "https://example.com/thank-you",
    "notify_owner": true,
    "confirmation_emails": "admin@example.com,info@example.com",
    "owner_submission_subject": "New form submission received",
    "owner_submission_template_type": "default",
    "owner_submission_raw_template": "

New Submission

", "owner_submission_important": "Please respond within 24 hours", "owner_submission_text": "A new submission has been received.", "notify_user": false, "user_confirmation_emails": "email", "submission_subject": "Thank you for your submission", "submission_template_type": "default", "submission_raw_template": "

Thank You

", "submission_important": "We will get back to you within 48 hours", "submission_text": "Thank you for contacting us.", "webhook_enabled": false, "webhook_url": "https://hooks.example.com/form-submissions", "id": 42 }'
fetch('https://api.wemasy.nl/api/services/forms/v1/forms/edit', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "title": "Contact Form",
    "submit_title": "Send Message",
    "redirect_after_submit": "https://example.com/thank-you",
    "notify_owner": true,
    "confirmation_emails": "admin@example.com,info@example.com",
    "owner_submission_subject": "New form submission received",
    "owner_submission_template_type": "default",
    "owner_submission_raw_template": "

New Submission

", "owner_submission_important": "Please respond within 24 hours", "owner_submission_text": "A new submission has been received.", "notify_user": false, "user_confirmation_emails": "email", "submission_subject": "Thank you for your submission", "submission_template_type": "default", "submission_raw_template": "

Thank You

", "submission_important": "We will get back to you within 48 hours", "submission_text": "Thank you for contacting us.", "webhook_enabled": false, "webhook_url": "https://hooks.example.com/form-submissions", "id": 42 })}) .then(r => r.json()) .then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
    ->accept('application/json')
    ->post('https://api.wemasy.nl/api/services/forms/v1/forms/edit', {
    "title": "Contact Form",
    "submit_title": "Send Message",
    "redirect_after_submit": "https://example.com/thank-you",
    "notify_owner": true,
    "confirmation_emails": "admin@example.com,info@example.com",
    "owner_submission_subject": "New form submission received",
    "owner_submission_template_type": "default",
    "owner_submission_raw_template": "

New Submission

", "owner_submission_important": "Please respond within 24 hours", "owner_submission_text": "A new submission has been received.", "notify_user": false, "user_confirmation_emails": "email", "submission_subject": "Thank you for your submission", "submission_template_type": "default", "submission_raw_template": "

Thank You

", "submission_important": "We will get back to you within 48 hours", "submission_text": "Thank you for contacting us.", "webhook_enabled": false, "webhook_url": "https://hooks.example.com/form-submissions", "id": 42 }); $data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "title": "Contact Form",
    "submit_title": "Send Message",
    "redirect_after_submit": "https://example.com/thank-you",
    "notify_owner": true,
    "confirmation_emails": "admin@example.com,info@example.com",
    "owner_submission_subject": "New form submission received",
    "owner_submission_template_type": "default",
    "owner_submission_raw_template": "

New Submission

", "owner_submission_important": "Please respond within 24 hours", "owner_submission_text": "A new submission has been received.", "notify_user": false, "user_confirmation_emails": "email", "submission_subject": "Thank you for your submission", "submission_template_type": "default", "submission_raw_template": "

Thank You

", "submission_important": "We will get back to you within 48 hours", "submission_text": "Thank you for contacting us.", "webhook_enabled": false, "webhook_url": "https://hooks.example.com/form-submissions", "id": 42 } r = requests.post("https://api.wemasy.nl/api/services/forms/v1/forms/edit", headers=headers, json=data) print(r.json())
Response Example
{
    "error": false,
    "message": "string",
    "data": []
}

Try It
Request Body Required

Export