The Formstack API facilitates the automation of form creation and submission processes, enhancing data collection and integration. With Pipedream's serverless platform, you can trigger workflows on form submissions, manipulate and route form data to various endpoints, and seamlessly connect Formstack with other apps to streamline tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
formstack: {
type: "app",
app: "formstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.formstack.com/api/v2/form.json`,
headers: {
Authorization: `Bearer ${this.formstack.$auth.oauth_access_token}`,
},
})
},
})
Dynamic CRM Lead Entry: Automatically create leads in Salesforce whenever a form is submitted on Formstack. Use data from the form to populate the lead details, ensuring that potential customer information is immediately captured and ready for follow-up by the sales team.
Custom Email Notifications: Craft and send personalized email notifications using SendGrid when a Formstack submission occurs. Tailor the content based on the submission data to provide respondents with relevant information, confirmation messages, or next-step instructions.
Support Ticket Creation: Integrate Formstack submissions into a Zendesk support system. When a customer submits a feedback or support form, a new ticket is generated in Zendesk, with all the pertinent information from the form directly mapped to the ticket fields, streamlining your support workflow.
Emit new event for each new form submission. See docs here
Create a new submission for the specified form. See docs here
Formstack uses OAuth authentication. When you connect your Formstack account, Pipedream will open a popup window where you can sign into Formstack and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Formstack API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://www.formstack.com/api/v2/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
response_type=code
&
state={{oauth.state}}
POST
https://www.formstack.com/api/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://www.formstack.com/api/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}