Submit contact form
Handles website contact form submissions. Validates required fields, verifies a Turnstile token, stores data in Supabase, and sends confirmation and notification emails.
/api/v1/support/contactThe source export uses a local development server. Examples use the configured Dashio API origin.
Authentication
Authentication is not declared in this export. This does not imply anonymous access.
Understand authenticationPath parameters
None declared in this export.
Query parameters
None declared in this export.
Header parameters
None declared in this export.
Request body
application/json · Required
first_namestringRequiredminLength is 2
last_namestringRequiredminLength is 2
emailstring (email)RequiredNo field description supplied.
messagestringRequiredminLength is 10
agreedbooleanRequiredMust be true to indicate agreement with terms
tokenstringRequiredCloudflare Turnstile token
company_namestring | nullOptionalNo field description supplied.
position_namestring | nullOptionalNo field description supplied.
phone_numberstring | nullOptionalNo field description supplied.
user_idstring | nullOptionalNo field description supplied.
Responses
200
Contact form successfully submitted.
successbooleanOptionalNo field description supplied.
ExampletruemessagestringOptionalNo field description supplied.
Example"Contact form submitted successfully"
422
Validation failed or Turnstile token is missing/invalid.
statusCodenumberRequiredNo field description supplied.
Example422statusMessagestringRequiredNo field description supplied.
Example"Validation Failed"dataobjectRequiredNo field description supplied.
500
Internal server error during processing or email delivery.
No response body schema supplied.
Was this helpful?