# Infusion soft API

**URL:** <https://integration.keap.com/t/infusion-soft-api/48957>\
**Category:** API Q&A\
**Created:** [August 9, 2018, 1:15am UTC](https://integration.keap.com/t/infusion-soft-api/48957 "2018-08-09T01:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ojavi\_Hewitt](https://avatars.discourse-cdn.com/v4/letter/o/f08c70/32.png) [@Ojavi\_Hewitt](https://integration.keap.com/u/Ojavi_Hewitt)\
**Post date:** [August 9, 2018, 1:15am UTC](https://integration.keap.com/t/infusion-soft-api/48957/1 "2018-08-09T01:15:06Z")

</div>

New to Infusionsoft. Can someone please tell me if this can be achieved with Infusionsoft API. I would like to use the API to send dynamic emails. Scenario: Customer comes to my landing page, Fills out form, I add them as a contact,register opt-in email, Then my app would use the information the customer entered to perform some calculations nad automatically email a report to the customer. My problem is (from my limited understanding so far) the app is expecting a user to authorize it’s use by logging into an infusionsoft account. Is there a way to store and persist an access token?

---

<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:** [August 10, 2018, 3:56pm UTC](https://integration.keap.com/t/infusion-soft-api/48957/2 "2018-08-10T15:56:08Z")

</div>

Your application should be handling the OAuth flow for the user, and will receive the Refresh and Access tokens after a successful authentication attempt. You can persist these and refresh them on a scheduled basis indefinitely.

We actually just finished work on a way to queue emails containing arbitrary content through the REST API, and should have it available shortly.

---

<div class="post-metadata">

**Author:** ![Ojavi\_Hewitt](https://avatars.discourse-cdn.com/v4/letter/o/f08c70/32.png) [@Ojavi\_Hewitt](https://integration.keap.com/u/Ojavi_Hewitt)\
**Post date:** [August 12, 2018, 5:15am UTC](https://integration.keap.com/t/infusion-soft-api/48957/3 "2018-08-12T05:15:30Z")

</div>

Thank you. I got the Oauth flow working nicely. Storing my tokens in session and mysql DB. So far so good…
