# API connection from web application to Infusionsoft

**URL:** <https://integration.keap.com/t/api-connection-from-web-application-to-infusionsoft/43278>\
**Category:** API Q&A\
**Created:** [June 12, 2018, 6:32am UTC](https://integration.keap.com/t/api-connection-from-web-application-to-infusionsoft/43278 "2018-06-12T06:32:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilanjana\_Mitra](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/nilanjana_mitra/32/12052_2.png) [@Nilanjana\_Mitra](https://integration.keap.com/u/Nilanjana_Mitra)\
**Post date:** [June 12, 2018, 6:32am UTC](https://integration.keap.com/t/api-connection-from-web-application-to-infusionsoft/43278/1 "2018-06-12T06:32:18Z")

</div>

I am using Laravel 5.4 for our web application.I am trying to create a new contact in our infusionsoft account through a php/html form of our web application with the help of infusionsoft API. I have installed infusionsoft/php-sdk using composer from [GitHub - infusionsoft/infusionsoft-php: PHP client library for the Infusionsoft API.](https://github.com/infusionsoft/infusionsoft-php) and configured app.php, .env variebles as mentioned (with client ID & client secret).

Now I want to know what should be the redirect url and exact code to establish an authenticated connection with Infusionsoft to create a new contact after POST data of web form.

Totally struck here. Please help.

Thanks  
Nilanjana

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [June 12, 2018, 5:09pm UTC](https://integration.keap.com/t/api-connection-from-web-application-to-infusionsoft/43278/2 "2018-06-12T17:09:54Z")

</div>

The redirect URL will need to be a resource located on a public-facing web service that can collect and store the refresh/access tokens POSTed by the API upon authentication.
