# Push Data to Mindbody

### Option 1 - Form, via Workflow

First, navigate to your form list under **Forms & Pages > Forms** and click on the three little dots for any form. Then, select the 'Workflows' option. If you have Mindbody integrated with Gleantap, you'll see the option to 'Submit Lead to Mindbody.'&#x20;

![](https://s3-us-west-1.amazonaws.com/gleantapvirtual/3717/theme/images/1676395738_Screen%20Shot%202023-02-14%20at%2011.27.49%20AM.png)

If you've created a Gleantap Form and would like leads to be added to Mindbody, here are the steps to take. (Currently, Mindbody is the only system this works with, but ask your account manager if you want to have the team set it up for another service.)

### Option 2 - Form, via Redirect URL

You can have a form redirect to the below URL with the parameters to submit to MBO.

{% hint style="info" %}
**NOTE**

Before setting this up, confirm the required fields for the Studio by opening this URL ***with the studio’s site\_id***&#x20;

[https://api.gleantap.com/v2/mindbody/checkNewClientFields/***site\_id***](https://api.gleantap.com/v2/mindbody/checkNewClientFields/site_id)
{% endhint %}

First, navigate to your form list under **Forms & Pages > Forms** and select 'Redirect URL' under 'Configure.'

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FN4wWGLUDflIeP2rZGjoU%2Fspaces_aFKpjLzPT7iDAWD0tQXo_uploads_P5Sy0QmxBN96aIrHvlTL_Screenshot%202023-10-13%20at%2012.webp?alt=media&#x26;token=df4298ca-bce5-4d24-8a7b-c962247ff1f6" alt=""><figcaption></figcaption></figure>

Next, you'll enter the Redirect URL: [https://api.gleantap.com/v2/mindbody/pushClientToMBO/***site\_id***](https://api.gleantap.com/v2/mindbody/pushClientToMBO/site_id)

In the above URL, you need to replace the “site\_id” with the Site ID of the Studio in MBO. Integration should be active within the workroom for this to work.

The last step is to Map your Form Attributes. See ['Data Attributes to Pass (Payload)'](#data-attributes-to-pass-payload) below.&#x20;

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FL65tLoJ1g8Jq7ubLd2O1%2FScreenshot%202023-10-13%20at%2012.39.05%20PM%20(1).png?alt=media&#x26;token=6726e8e5-08d3-454a-a2e8-14255fd1c61f" alt=""><figcaption></figcaption></figure>

### **Option 3 - Flow, via Webhook**

First, navigate to your flow list under **Flows** and click on the three little dots to edit your flow. The following steps will be the same if your are creating a new flow.&#x20;

Click the + to add an Action, and select 'Other.'

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FEdloCPEGJrumT0Gz89qD%2Fspaces_aFKpjLzPT7iDAWD0tQXo_uploads_9u0YMIYeCSmG5bRUwgFn_Screenshot%202023-10-13%20at%2012.webp?alt=media&#x26;token=49d7ed1b-337a-46e1-bcd3-3f786f0ec91f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2Fcn3DySWQU6vlXk8hF4FZ%2Fspaces_aFKpjLzPT7iDAWD0tQXo_uploads_yrQnTSSaGOlaVuIjR6qE_Screenshot%202023-10-13%20at%2012.webp?alt=media&#x26;token=f122529a-7ff5-45d6-a302-2f12227f48e3" alt=""><figcaption></figcaption></figure>

Select 'Submit to Webhook' and enter the following information.&#x20;

{% hint style="info" %}
**NOTE**

Before setting this up, confirm the required fields for the Studio by opening this URL ***with the studio’s site\_id***&#x20;

[https://api.gleantap.com/v2/mindbody/checkNewClientFields/***site\_id***](https://api.gleantap.com/v2/mindbody/checkNewClientFields/site_id)
{% endhint %}

Webhook URL:\
[https://api.gleantap.com/v2/mindbody/pushClientToMBO/***site\_id***](https://api.gleantap.com/v2/mindbody/pushClientToMBO/site_id)

<figure><img src="https://312952119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFKpjLzPT7iDAWD0tQXo%2Fuploads%2FnOHZmVjFfpD8JRsC48IS%2FScreenshot%202023-10-13%20at%203.47.24%20PM.png?alt=media&#x26;token=2c80db7f-a7f4-405f-96ff-97b8cefb738b" alt=""><figcaption></figcaption></figure>

Enter the following information on the left column under 'Payload' and select the matching attribute from the menu on the right column.&#x20;

Click 'Save.'

### **Data Attributes to Pass (Payload):**

* first\_name
* last\_name
* email
* phone, *optional*
* address, *optional*
* city, *optional*
* state, *optional*
* postal, *optional*
* birthdate, *optional*
* email\_optin (true or false), *optional*
* text\_optin (true or false), *optional*
* redirect (URL to redirect after submission - *only needed for Forms, via Redirect URL*), *optional*
