Create marketing form
documentedCreate a new marketing form.
POST /marketing/v3/formsMarketingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.hubapi.com/marketing/v3/forms/" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-d '{
"formType": "hubspot",
"name": "{{$name}}",
"fieldGroups": [
{
"groupType": "default_group",
"fields": [
{
"name": "email",
"label": "Email",
"fieldType": "email",
"required": true,
"placeholder": "{{$email_placeholder}}",
"defaultValue": "{{$email_default}}"
}
]
}
],
"archived": false,
"configuration": {
"embedType": "V3",
"postSubmitAction": {
"type": "redirect_url",
"value": "{{$post_submit_url}}"
}
}
}'