Connect MySQL to HTTP Request (GET/POST) with LeadsBridge
![](https://leadsbridge.com/wp-content/themes/leadsbridge/img/integration-logos/logo69.png)
![](https://leadsbridge.com/wp-content/themes/leadsbridge/img/integration-logos/logo69.png)
In this article, you'll learn how to set up the bridge and connect MySQL to My CRM Example using LeadsBridge.
How to set up your bridge step-by-step tutorial
Before you start
- Head over to the left sidebar and click on the Create new Bridge green button
- You'll be taken to the first step of the bridge creation
Step 1: Choose the apps you want to connect
- Choose MySQL as the source for your bridge
- Choose HTTP Request (GET/POST) as the destination for your bridge
- Click on the Continue button
- At this point you can choose a name for your bridge (this will only be visible inside LeadsBridge and you can also edit it later)
Step 2: Configure your MySQL with HTTP Request (GET/POST)
Step 2.A: Setup your MySQL integration
- Click on Connect MySQL
- Click on Create new integration to connect your MySQL (or select an existing one from the dropdown if you already connected it)
- A popup wil be opened where you can authorize the MySQL integration
- Fill Database host, Database name, Username, Password, Charset field to connect MySQL with LeadsBridge
- Click on the Authorize button
- You can choose a name for this MySQL and LeadsBridge integration (you can also edit it later)
- Once done, click on Continue button and you will get back to the bridge experience where you could choose additional integration settings
- Now that your MySQL is connected, you can continue with the set-up of your bridge
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/app_config_396.png)
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/app_config_396.png)
Step 2.B: Setup your HTTP Request (GET/POST) integration
- Click on Connect HTTP Request (GET/POST)
- Click on Create new integration to connect your HTTP Request (GET/POST) (or select an existing one from the dropdown if you already connected it)
- A popup wil be opened where you can authorize the HTTP Request (GET/POST) integration
- Fill URL field to connect HTTP Request (GET/POST) with LeadsBridge
- Click on the Authorize button
- You can choose a name for this HTTP Request (GET/POST) and LeadsBridge integration (you can also edit it later)
- Once done, click on Continue button and you will get back to the bridge experience where you could choose additional integration settings
- Now that your HTTP Request (GET/POST) is connected, you can continue with the set-up of your bridge
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/app_config_69.png)
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/app_config_69.png)
Step 2.C: Configuration details for HTTP Request (GET/POST)
How to get URL
- URL - mandatory: where the system you'd like to send information to is located.
- Method - mandatory: the request method your system may receive as the indication of the desired action to be performed.
POST
is the default value. It's used to send data to a server to create/update a resource and it's one of the most common HTTP methods. If you're unsure about what you should select, leave it as is.
- Content Type - mandatory: is used to indicate the media type of the resource. Works as the content type description for the message body.
application/x-www-form-urlencoded
is the most common encoding type. Use this as long as you're not using any JSON or XML language on the request body.
- Success pattern - optional: the message your system replies with once the request was received successfully.
- Failure pattern - optional: an error message your system sends when there's an issue with the request.
- Skip encoding parameters in URL - optional: if enabled prevent the encoding of special characters in the URL parameters
Other Info
- Body - mandatory: the message Body is where all the data is set to eventually form the HTTP Request that will be sent to insert each lead into your system.
- Body syntax should be write as follows:[code]"field_id": "value″[/code]"field_id" is the unique identifier of the field inside your CRM/platform; "value" can be static (number or text that will be the same for every lead synced) or dynamic.
- To create dynamic values just enter the field name between the double
@@
symbols, that will results in a @@field_name@@ syntax. The field name can be whatever you'd like, it will help you recognize the field inside the bridge settings later.
Dynamic fields will be displayed on the Fields Matching step of the bridge, where you will be able to match them with lead's information. - That said, if we have a full_name field on our platform to store the lead's full name, we should use the following syntax:
[code]full_name: @@FullName@@[/code]Please check HTTP common questions for code examples.
![](https://s3-us-west-2.amazonaws.com/website-leadsbridge/app/HTTP_REQUEST_auth_details_screenshot_1_20190201_171605.png)
![](https://s3-us-west-2.amazonaws.com/website-leadsbridge/app/HTTP_REQUEST_auth_details_screenshot_1_20190201_171605.png)
Step 2.D: Email Receipt (Optional)
You may choose to receive an email receipt for each incoming lead.
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/EmailReceipt.png)
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/EmailReceipt.png)
- Type the address(es) where you'd like to receive the receipt
- You may also modify the Subject line of the email
Step 3: Fields Mapping
Here you'll be able to map your MySQL information with your HTTP Request (GET/POST) fields.
- You will have HTTP Request (GET/POST) fields on the left. Match the information you wish to pass align from MySQL
- Based on HTTP Request (GET/POST) functionality, some fields might be required; if this is the case, you can identify those fields with a * (star), so be sure to map all them
- You can also use the functions to customize information like reformatting dates and times or modifying text, phone numbers and so on.
- You may leave blank the box of a field's information you don't want to send through. Clicking on the Show unmapped fields button you will have visibility on all the available fields still not mapped
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/NBEE_FieldsMapping.png)
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/NBEE_FieldsMapping.png)
Step 3.A: Leads Filter (Optional)
If you'd like you could add a filter for incoming leads. This filter will sync only leads that meet the configured conditions
- Click on the link Add Filter for Incoming Leads on the top left
- A popup wil be opened where you can configure the filter
- You can define a series of condition to filter the leads. The lead will be synced only when all the conditions will be met
- Once finished, click the Save Changes button to switch back to the Fields Mapping to continue with the bridge configuration
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/NBEE_Filter.png)
![](https://website-leadsbridge.s3.us-west-2.amazonaws.com/documentation_screenshots/NBEE_Filter.png)
Step 4: Save and Publish
- Click on the Save and publish button
Congratulations! Now your bridge is up and running
Do you need help?
Here some additional resources:
- MySQL documentation page and common questions
- HTTP Request (GET/POST) documentation page and common questions
- LeadsBridge KNOWLEDGE BASE
- Contact support from your account clicking on the top right Support button