# Cannot create a flow vault connection as the permission is not in my token

**URL:** <https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889>\
**Category:** Get Help\
**Tags:** management-api, roles\
**Created:** [June 12, 2025, 11:41am UTC](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889 "2025-06-12T11:41:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidedwards](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidedwards/32/71029_2.png) [@davidedwards](https://community.auth0.com/u/davidedwards)\
**Post date:** [June 12, 2025, 11:41am UTC](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889/1 "2025-06-12T11:41:17Z")

</div>

So I am trying to use the management API to create a vault

POST /flows/vault/connections

However, the permission ‘create:flows\_vault\_connections’ is not in the access token so it fails!

How else can I create a vault as doing it via the Flow UI fails with a Bad Request - no real intuitive error message.

---

<div class="post-metadata">

**Author:** ![davidedwards](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidedwards/32/71029_2.png) [@davidedwards](https://community.auth0.com/u/davidedwards)\
**Post date:** [June 12, 2025, 11:45am UTC](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889/2 "2025-06-12T11:45:33Z")

</div>

Scopes not permissions 😃

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 12, 2025, 12:05pm UTC](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889/4 "2025-06-12T12:05:18Z")

</div>

Hi @davidedwards

Welcome to the Auth0 Community!

Thank you for posting your question. Can you share with me how you are getting the access token?

If you go to the APIs → Auth0 Management API → Machine to Machine Applications and click on API Explorer, you will be able to select the necessary permission (‘create:flows\_vault\_connections’) for your access token to be able to create a vault.

 ![Screenshot 2025-06-12 at 14.04.54](https://global.discourse-cdn.com/auth0/original/3X/2/7/27631638c429fbcf19319eca4cb8e8e2b57b89ac.jpeg)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![davidedwards](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidedwards/32/71029_2.png) [@davidedwards](https://community.auth0.com/u/davidedwards)\
**Post date:** [June 12, 2025, 12:26pm UTC](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889/5 "2025-06-12T12:26:21Z")

</div>

Fantastic - that has helped a lot!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 26, 2025, 12:26pm UTC](https://community.auth0.com/t/cannot-create-a-flow-vault-connection-as-the-permission-is-not-in-my-token/187889/6 "2025-06-26T12:26:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
