# Dynamic API and SECRET KEY in Ionic app

**URL:** <https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133>\
**Category:** Ionic\
**Created:** [April 14, 2020, 3:52pm UTC](https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133 "2020-04-14T15:52:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fitcloud](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@fitcloud](https://devforum.zoom.us/u/fitcloud)\
**Post date:** [April 14, 2020, 3:52pm UTC](https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133/1 "2020-04-14T15:52:16Z")

</div>

**Description**  
Hello,  
We are developing an application in ionic that the api key and secret key are dynamic.

We want to initialize the Zoom SDK in a view, but we receive this error:

**[Error]: Failed due to illegal SDK Key or Secret.**

I use this keys in web sdk and work perfect.

I use the next code.

```
  activeZoom(idmeeting, password) {
    console.log('api_key', this.api_key)
    console.log('secret_key', this.secret_key)
    this.zoomService.initialize(this.api_key, this.secret_key)
  .then((success: any) => this.joinMeeting(idmeeting, password))
  .catch((error: any) => console.log(error));
  }

```

We use Ionic 5, angular 9 and the latest Zoom SDK

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 15, 2020, 12:33am UTC](https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133/2 "2020-04-15T00:33:58Z")

</div>

Hi [fitcloud](https://devforum.zoom.us/u/fitcloud),

Thanks for using Zoom SDK. The Ionic SDK is based on Android SDK and iOS SDK so it is expecting an SDK key&secret rather than API key & secret. Please have a try with the SDK key & secret.

Thanks!

---

<div class="post-metadata">

**Author:** ![fitcloud](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@fitcloud](https://devforum.zoom.us/u/fitcloud)\
**Post date:** [April 15, 2020, 9:02am UTC](https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133/3 "2020-04-15T09:02:59Z")

</div>

HI,  
This is the problem thanks for the help.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 16, 2020, 4:41am UTC](https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133/4 "2020-04-16T04:41:22Z")

</div>

Glad to be helpful. Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:30pm UTC](https://devforum.zoom.us/t/dynamic-api-and-secret-key-in-ionic-app/13133/5 "2020-08-21T20:30:38Z")

</div>

Closed on August 21, 2020, 8:30pm UTC


