> ## Documentation Index
> Fetch the complete documentation index at: https://docs.softr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Case: Adding Users through Zapier

> Using Softr API and Zapier to add user accounts.

<Tabs>
  <Tab title="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.

    <Steps>
      <Step title="Configuring the Action">
        In the Action search bar enter "softr" and select the Softr action.

        <Frame caption="Locating the Softr app">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image1.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=00b92b8b48ab7bf904aadc1878438b87" alt="Locating the Softr app" width="2056" height="946" data-path="softr-api/images/use-case-adding-users-through-zapier/image1.png" />
        </Frame>

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

        <Frame caption="Choosing the Create User action event">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image2.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=ca832ae480d93c85b4574bc026687011" alt="Choosing the Create User action event" width="2188" height="1234" data-path="softr-api/images/use-case-adding-users-through-zapier/image2.png" />
        </Frame>

        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](/add-and-manage-users/pxnkp9H3qyEVMF6XUceqnj/add-or-import-users-manually/g5R1bGnBTFJ3sWLR8Mgdng), but we are going to set it to **False** in our case. See below.

        <Frame caption="Connecting account and domain and mapping fields">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image3.gif?s=6d217266b356631dbb03281287748754" alt="Connecting account and domain and mapping fields" width="2880" height="1420" data-path="softr-api/images/use-case-adding-users-through-zapier/image3.gif" />
        </Frame>

        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.
      </Step>
    </Steps>
  </Tab>

  <Tab title="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**.

    <Frame caption="Users data">
      <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image4.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=9fef133860703b58cf78020c43a42248" alt="Users data" width="1344" height="758" data-path="softr-api/images/use-case-adding-users-through-zapier/image4.png" />
    </Frame>

    <Steps>
      <Step title="Setting the Trigger">
        First of all, we're going to create a spreadsheets with **Name**, **Email**, and **Password** columns to store user data.

        <Frame caption="Users sheets">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image5.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=d601aa5367203de3a6422845215be0da" alt="Users sheets" width="1110" height="514" data-path="softr-api/images/use-case-adding-users-through-zapier/image5.png" />
        </Frame>

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

        <Frame caption="Setting the trigger">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image6.gif?s=cc1cbcd73ad8804baf67b1212e84c1f8" alt="Setting the trigger" width="1436" height="703" data-path="softr-api/images/use-case-adding-users-through-zapier/image6.gif" />
        </Frame>

        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>

      <Step title="Configuring the Action">
        In the Action search bar enter "webhook" and select **Webhooks by Zapier** (please note that this is a **paid** feature).

        <Frame caption="Selecting “Webhooks by Zapier”">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image7.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=de4faa2c6791fa8b05fd2c0c098d5e1b" alt="Selecting “Webhooks by Zapier”" width="2070" height="998" data-path="softr-api/images/use-case-adding-users-through-zapier/image7.png" />
        </Frame>

        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](/softr-api/tTFQ5vSAUozj5MsKixMH8C/api-setup-and-endpoints/j1PrTZxt7pv3iZCnZ5Fp19). Thus, we need to set the **URL** to "[https://studio-api.softr.io/v1/api/users](https://studio-api.softr.io/v1/api/users)", set the **Payload Type** to "json", and map the **data** as shown below.

        <Frame caption="URL, Payload Type, and Data Mapping">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image8.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=4da45b773cc863773b4e995948fc8367" alt="URL, Payload Type, and Data Mapping" width="1874" height="1186" data-path="softr-api/images/use-case-adding-users-through-zapier/image8.png" />
        </Frame>

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

        <Frame caption="Headers configured">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image9.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=d1c2c48c14e486128fb43ea497e29213" alt="Headers configured" width="1892" height="988" data-path="softr-api/images/use-case-adding-users-through-zapier/image9.png" />
        </Frame>
      </Step>

      <Step title="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.

        <Frame caption="Testing the action">
          <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image10.gif?s=e843ce6799d0792dc603a92b3ece940c" alt="Testing the action" width="1437" height="704" data-path="softr-api/images/use-case-adding-users-through-zapier/image10.gif" />
        </Frame>
      </Step>
    </Steps>
  </Tab>
</Tabs>

## **Deleting a User**

The [delete request](/softr-api/tTFQ5vSAUozj5MsKixMH8C/api-setup-and-endpoints/j1PrTZxt7pv3iZCnZ5Fp19) 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](https://zapier.com/apps/softr/integrations)) that let you select from a variety of use cases and get started easily. So, let’s see what kind of templates are available

<Frame caption="Zapier templates for Softr">
  <img src="https://mintcdn.com/softr-2b8a27e1/-JsdyX1th5sWoqTC/softr-api/images/use-case-adding-users-through-zapier/image11.png?fit=max&auto=format&n=-JsdyX1th5sWoqTC&q=85&s=8eae845a4e389251c2a8a43095f432cd" alt="Zapier templates for Softr" width="2652" height="1226" data-path="softr-api/images/use-case-adding-users-through-zapier/image11.png" />
</Frame>

### 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](/5315870b0eb4473fb49dd13c97635d67).

### Stripe template

This template connects [Stripe](/integrations/etS18kJqm1fuD58KCsjC3z/stripe-checkout/iBomMEucRZtM2y6HuutYVC) 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](https://zapier.com/features/webhooks), which lets you receive data from any service even if it’s not available in Zapier.
