Forms
Create a signup form
Create a new signup form, including its confirmation sender and welcome email if you send them. After creation, the embed snippet at /api/forms/{id}/submit (HTML) or /api/forms/{id}/embed.js (JavaScript widget) can be used on third-party sites. Request keys are snake_case; the older camelCase keys are still accepted. Requires the form:write scope.
post/v1/forms
Request
- Base URL: https://smtpfa.st/api
- URL: https://smtpfa.st/api/v1/forms
- Auth: HTTP bearer
Request body
Example request
{
"name": "Newsletter signup",
"fields": [
"email",
"first_name"
],
"button_text": "Subscribe",
"button_color": "#10b981",
"success_message": "Thanks for subscribing!",
"double_opt_in": true,
"captcha_provider": "turnstile",
"block_disposable_emails": true,
"active": true,
"confirmation_email_from": "Acme <hello@acme.com>"
}Response
Form created
Example response
{
"object": "signup_form",
"id": "clx_form123",
"name": "Newsletter signup",
"fields": [
"email",
"first_name"
],
"button_text": "Subscribe",
"button_color": "#10b981",
"success_message": "Thanks for subscribing!",
"double_opt_in": true,
"captcha_provider": "turnstile",
"block_disposable_emails": true,
"active": true,
"confirmation_email_from": "Acme <hello@acme.com>"
}Changes
No recorded changes to this operation across all 1 revision of this API.