# How to access Jira's API immediately after app installs?

**URL:** <https://community.developer.atlassian.com/t/how-to-access-jiras-api-immediately-after-app-installs/34541>\
**Category:** Jira Cloud\
**Tags:** ac-express, jira-cloud\
**Created:** [December 24, 2019, 4:44am UTC](https://community.developer.atlassian.com/t/how-to-access-jiras-api-immediately-after-app-installs/34541 "2019-12-24T04:44:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RhysDiab](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/rhysdiab/32/38004_2.png) [@RhysDiab](https://community.developer.atlassian.com/u/RhysDiab)\
**Post date:** [December 24, 2019, 4:44am UTC](https://community.developer.atlassian.com/t/how-to-access-jiras-api-immediately-after-app-installs/34541/1 "2019-12-24T04:44:53Z")

</div>

I’m trying to access Jira’s API to add some properties to issues immediately after the app installs.

At the moment I’m using the lifecycle hook `host_settings_saved` and waiting 5 seconds after that before accessing the API (accessing the API immediately leads to a status 400 error).

However, I’m finding that a portion of new evaluators are falling through the cracks. ie The properties are not added and I’m receiving a status 400 error.

I’ve also tried the lifecycle hook `webhook_auth_verification_successful` but this doesn’t appear to get called at all when I test it locally.

Is there any way to consistently access the API immediately after the app installs?

Seems like a silly question but it’s causing dramas for some new customers.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![azhdanov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/azhdanov/32/35795_2.png) [@azhdanov](https://community.developer.atlassian.com/u/azhdanov)\
**Post date:** [December 25, 2019, 1:06pm UTC](https://community.developer.atlassian.com/t/how-to-access-jiras-api-immediately-after-app-installs/34541/2 "2019-12-25T13:06:42Z")

</div>

Hi Rhys,

I think it was asked already, but can’t find proper link, so accessing Jira’s API on connect\_addon\_enabled event works for us with no problems, using nodejs atlassian-connect-express, e.g.:

`addon.on('connect_addon_enabled', function (event, body, req) {`

Note, you may need to add connect\_addon\_enabled webhook in atlassian-connect.json:

```auto
        "webhooks": [{
            "event": "connect_addon_enabled",
            "url": "/enabled"
        }]

```

Hope it helps.

Thank you.

---

<div class="post-metadata">

**Author:** ![RhysDiab](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/rhysdiab/32/38004_2.png) [@RhysDiab](https://community.developer.atlassian.com/u/RhysDiab)\
**Post date:** [December 26, 2019, 10:30pm UTC](https://community.developer.atlassian.com/t/how-to-access-jiras-api-immediately-after-app-installs/34541/3 "2019-12-26T22:30:12Z")

</div>

Thanks @azhdanov this is exactly what I was looking for. Much appreciated.
