# API connector's "access\_type=offline" - what does it do?

**URL:** <https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191>\
**Category:** APIs\
**Created:** [September 3, 2018, 3:14pm UTC](https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191 "2018-09-03T15:14:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [September 3, 2018, 3:14pm UTC](https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191/1 "2018-09-03T15:14:19Z")

</div>

What does the API connector’s `access_type=offline` do? I understand the technical concept 1, but I am trying to understand what the **API Connector’s** setting does. Can I use that to **build API workflows** with it?

* * *

Some **context** :

I am trying to connect to **Zoho CRM’s v2 API**. I am able to connect to it when I using a front-end application.

Now I’m trying to build API workflows with it. Something to the tune of:

1. Bubble app receives an external trigger
2. **gets** info from Zoho
3. checks Bubble database
4. **updates** Zoho

Is that possible? Can the “super-admin” who runs the APIs use the token I used to first authenticate the API Connector? Or would I have to build something similar to what @pierreantoine built 2, **save** that token somewhere, and then **refresh** the token with each workflow run?

* * *

1 - Thanks to @anon39705632’s reply on this thread: [Google Login keep asking for "Have offline access" permission](http://forum.bubble.io/t/google-login-keep-asking-for-have-offline-access-permission/9374) ; which links to this Stackoverflow post (that I hope is correct): [https://stackoverflow.com/questions/30637984/what-does-offline-access-in-oauth-mean](https://stackoverflow.com/questions/30637984/what-does-offline-access-in-oauth-mean)

2 - [OAuth2 User-Agent Flow token extraction](http://forum.bubble.io/t/oauth2-user-agent-flow-token-extraction/30916)

---

<div class="post-metadata">

**Author:** ![lottemint.md](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lottemint.md/32/26549_2.png) [@lottemint.md](https://forum.bubble.io/u/lottemint.md)\
**Post date:** [September 3, 2018, 6:14pm UTC](https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191/2 "2018-09-03T18:14:50Z")

</div>

Hi,  
Those tokens are saving to a user’s hidden authentication field which can be used only by the user.  
To use them, you need to log in as a user and run your API endpoints.  
You need to create an API endpoint which will log in a user - in a response you’ll receive an authorization token. That token you need to use as an authentication in the header for the other API endpoints.

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [September 4, 2018, 2:47am UTC](https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191/3 "2018-09-04T02:47:31Z")

</div>

It works, thanks!

I wonder about the security implications of this method.

---

<div class="post-metadata">

**Author:** ![lottemint.md](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lottemint.md/32/26549_2.png) [@lottemint.md](https://forum.bubble.io/u/lottemint.md)\
**Post date:** [September 4, 2018, 3:06am UTC](https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191/4 "2018-09-04T03:06:41Z")

</div>

Do not forget to configure privacy rules for your fields. It is very important. Also, you can encrypt that values.

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [September 4, 2018, 3:11am UTC](https://forum.bubble.io/t/api-connectors-access-type-offline-what-does-it-do/37191/5 "2018-09-04T03:11:30Z")

</div>

Privacy rules in Bubble I’m familiar with.

What do you mean about encrypting? How could I do it?

I’m currently testing with just the username and password hardcoded like this:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/d/ed5791f0f92d40f2006f3ed49064b0a4f61808fb.png)

The next step will be to create a Thing in the database to store that info.
