Use Case: Adding Users through Zapier

Using Softr API and Zapier to add user accounts.

Option 1: Using Zapier's Softr app

Let's see how you can use the API to add users via Zapier. In this example, we are going to sync a Softr App with Google Sheets using Zapier's Softr app (this is solely for demonstration purposes, and we don't recommend storing user data on Google Sheets or similar sources). Let's proceed.

Step 1: Setting the Trigger

First of all, we're going to create a spreadsheets with Name, Email, and Password columns to store user data.

Users sheets
Users sheets

Further on, we'll create a Zap on Zapier and set the trigger for each new row creation in our Google sheet. See below.

Setting the trigger
Setting the trigger

Next, we'll test the trigger and proceed to configuring the Action to define what's going to happen when the initial event is triggered.

Step 2: Configuring the Action

In the Action search bar enter "softr" and select the Softr action.

Locating the Softr app
Locating the Softr app

Next, we are going to select the Action Event. In our case, we need to choose "Create a user."

Choosing the Create User action event
Choosing the Create User action event

Further on, we need to link our Softr account (by entering the API key, we generated previously), then add the Application domain, map the Email, Name, and Password fields. We can also set to generate a Magic Link, but we are going to set it to False in our case. See below.

Connecting account and domain and mapping fields
Connecting account and domain and mapping fields

That's it. Now, as soon as you activate your Zap, all the new users added to your spreadsheet, will be added to your selected Softr app as well.

Option 2: Using custom webhook

In this use case, we are going to add users to a Softr app using Zapier's Custom Webhook instead of the Zapier Softr app. So, the first step (Setting the Trigger) is going to be similar to that of Option 1.

Users data
Users data

So, let's start with Step 2, where we are going to set up the Action.

Step 2: Configuring the Action

In the Action search bar enter "webhook" and select Webhooks by Zapier (please note that this is a paid feature).

Selecting “Webhooks by Zapier”
Selecting “Webhooks by Zapier”

In the following screen, we need to select POST as the Action event since we need to create a user using the POST request as described above.

In the next screen, we need to fill in all the necessary details based on the create user endpoint. Thus, we need to set the URL to "https://studio-api.softr.io/v1/api/users", set the Payload Type to "json", and map the data as shown below.

URL, Payload Type, and Data Mapping
URL, Payload Type, and Data Mapping

The following configs can be left intact, and we just need to add the headers using our API key and domain as shown below.

Headers configured
Headers configured

Step 3: Testing the Action

That's it. Now, we just need to hit Continue and test the action. As you can see below, as soon as we do the test, the user we had added earlier on Google Sheets is added to our Softr app. So, as soon as you make sure it's working correctly, you can turn on the Zap to start the automation.

Testing the action
Testing the action

Deleting a User

The delete request can be implemented in a similar way through a custom webhook.

Zapier templates for Softr

Zapier offers a number of ready-made templates for Softr (the list is available here) that let you select from a variety of use cases and get started easily. So, let’s see what kind of templates are available

Zapier templates for Softr
Zapier templates for Softr

Database/spreadsheet templates

Most of the templates involve spreadsheet or database tools such as Google Sheets, Airtable, or Coda. Those work the following way: every time a new record/row is added to the database, a new user is automatically created on Softr based on that record/row.

Form templates

This category involves form builder platforms such as Google Form, Jotform, and TypeForm. The templates create a new Softr user for each new form submission. Let’s say you’ve built an online community with Softr, and there are several community moderators. Using one of these templates, you can provide a way for your moderators to add new users directly from the app user interface instead of giving them access to your Softr app’s studio.

Stripe template

This template connects Stripe to your Softr app, creating a new Softr user for each new Stripe customer you get. Let’s say you have an online shop that processes payments using Stripe, and you’ve also created a Softr application for your shop customers to interact with one another and also get access to perks. Using this template, you can automatically sync all your customers along with their details with your Softr-built app.

Webhook template

This template just connects Softr with a Zapier webhook, which lets you receive data from any service even if it’s not available in Zapier.

Did this answer your question?
😞
😐
🤩

Last updated on December 6, 2022