{"section":"faq","requestedLocale":"en","requestedSlug":"why-doesnt-authentication-with-appkey-and-apptoken-work","locale":"en","slug":"why-doesnt-authentication-with-appkey-and-apptoken-work","path":"docs/en/faq/identity/why-doesnt-authentication-with-appkey-and-apptoken-work.md","branch":"main","content":"At VTEX, authentications of [APIs](https://developers.vtex.com/vtex-developer-docs/docs/getting-started-list-of-rest-apis) are handled by [appKey and appToken](https://developers.vtex.com/vtex-developer-docs/docs/getting-started-authentication). There are however several scenarios in which an integration could fail due to errors related to these authentication keys. The following information will help you solve some of the common appKey and appToken authentication issues:\n\n## AppKey and AppToken association\n\nConfiguring a [role](/en/docs/tutorials/roles) having different access levels on the platform is possible when accessing __Roles__, within the [Account settings](/en/docs/tutorials/account-settings-overview) menu.\n\nWhen created, no pair of appKey and appToken is linked to a role. It's necessary to __link both keys to a desired role__.\n\nOne of the reasons for integration errors can be a lack of association of the created keys with the role. Another possible error is the link of the appKey and appToken to a profile that, although being registered, does not have enough access to perform that specific task on the platform.\n\n> ℹ️ Only the [Sponsor user](/en/docs/tutorials/what-is-the-sponsor-user) has the necessary permission to edit the keys, meaning to create the appKey and appToken used in integrations with a store.\n\n## Mistyping\n\nBoth keys should be filled out in their respective fields, without spacing and by respecting the __case sensitivity__. One small error while typing can impede the well-functioning of an integration.\n\nCheck for possible errors by accessing __Account Management__ and __[Users](/en/docs/tutorials/managing-admin-users)__.\n\n> ℹ️ The appToken cannot be recovered, once it has been created and displayed to the user."}