# Getting 2FA devices with API

**URL:** <https://forum.keycloak.org/t/getting-2fa-devices-with-api/13331>\
**Category:** Miscellanaeous\
**Created:** [January 28, 2022, 11:34am UTC](https://forum.keycloak.org/t/getting-2fa-devices-with-api/13331 "2022-01-28T11:34:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blvall](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@blvall](https://forum.keycloak.org/u/blvall)\
**Post date:** [January 28, 2022, 11:34am UTC](https://forum.keycloak.org/t/getting-2fa-devices-with-api/13331/1 "2022-01-28T11:34:43Z")

</div>

Good morning,

I am developing an application securated with Keycloak. The user can configure 2 factor authentication to access their account, this configuration is made in the keycloak console. I need to get the devices registered in order to see it from the application interface.

I can see that the keycloak console, request the device information to the API with a GET call to the endpoint ‘/account/credentials’. But I cannot get the answer from the application interface (browser), because a CORS error is thrown. Is there any way to obtain those devices without getting this error?

Thank you
