# Can we access masked secret keys via the Jira DC Java or REST APIs for use in Scriptrunner?

**URL:** <https://community.developer.atlassian.com/t/can-we-access-masked-secret-keys-via-the-jira-dc-java-or-rest-apis-for-use-in-scriptrunner/77498>\
**Category:** Jira Data Center\
**Tags:** java-api, scriptrunner, rest-api\
**Created:** [February 20, 2024, 9:34pm UTC](https://community.developer.atlassian.com/t/can-we-access-masked-secret-keys-via-the-jira-dc-java-or-rest-apis-for-use-in-scriptrunner/77498 "2024-02-20T21:34:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BryanGuffey2](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/bryanguffey2/32/50053_2.png) [@BryanGuffey2](https://community.developer.atlassian.com/u/BryanGuffey2)\
**Post date:** [February 20, 2024, 9:34pm UTC](https://community.developer.atlassian.com/t/can-we-access-masked-secret-keys-via-the-jira-dc-java-or-rest-apis-for-use-in-scriptrunner/77498/1 "2024-02-20T21:34:05Z")

</div>

Hi - is there a way to access masked secret keys (added in [Jira Automation 9.0](https://confluence.atlassian.com/automation0900/create-and-edit-masked-secret-keys-for-automation-rules-1358463146.html)) via the REST or Java APIs? We moved to Confluence Cloud, which broke OAuth with impersonation, so I’m in the process of transitioning some Scriptrunner workflows to Automation, but could use an interim step of being able to access secrets from within Jira instead of having to use an external secrets manager.

---

<div class="post-metadata">

**Author:** ![ChristopherChilds](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@ChristopherChilds](https://community.developer.atlassian.com/u/ChristopherChilds)\
**Post date:** [November 22, 2024, 8:20am UTC](https://community.developer.atlassian.com/t/can-we-access-masked-secret-keys-via-the-jira-dc-java-or-rest-apis-for-use-in-scriptrunner/77498/2 "2024-11-22T08:20:29Z")

</div>

Hi Bryan,

Were you able to think of a solution for this?
