# Users endpoint returns code of recovery question, not the text

**URL:** <https://devforum.okta.com/t/users-endpoint-returns-code-of-recovery-question-not-the-text/16035>\
**Category:** Questions\
**Created:** [September 10, 2021, 8:41am UTC](https://devforum.okta.com/t/users-endpoint-returns-code-of-recovery-question-not-the-text/16035 "2021-09-10T08:41:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duygu](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Duygu](https://devforum.okta.com/u/Duygu)\
**Post date:** [September 10, 2021, 8:41am UTC](https://devforum.okta.com/t/users-endpoint-returns-code-of-recovery-question-not-the-text/16035/1 "2021-09-10T08:41:04Z")

</div>

Hi,

For some users, users GET endpoint and authn/recovery/token endpoint returns code of the security question, not the displayed text.

For example:

Expected response: _“What is the food you least liked as a child?”_

Returned response: _“disliked\_food”_  
 ![image](https://global.discourse-cdn.com/oktadev/original/2X/2/2a10f113f9da1bed4348c225b5620fe7c5d97cd1.png)

Could you please advise what could be the reason?

Thank you.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [September 13, 2021, 3:06pm UTC](https://devforum.okta.com/t/users-endpoint-returns-code-of-recovery-question-not-the-text/16035/2 "2021-09-13T15:06:01Z")

</div>

The API will return the key for each security question, but not the full text of it. List of keys found here: [Factors | Okta Developer](https://developer.okta.com/docs/reference/api/factors/#built-in-question-keys)

---

<div class="post-metadata">

**Author:** ![Duygu](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@Duygu](https://devforum.okta.com/u/Duygu)\
**Post date:** [September 13, 2021, 3:21pm UTC](https://devforum.okta.com/t/users-endpoint-returns-code-of-recovery-question-not-the-text/16035/3 "2021-09-13T15:21:42Z")

</div>

Hi @andrea , thanks for reply.  
In this case there is an inconsistency here, as API returns full text for some users and key for some others. Is there a new update around that frequently?  
Also according to the [API documentation](https://developer.okta.com/docs/reference/api/users/#response-example-11), it returns full text

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 7:17pm UTC](https://devforum.okta.com/t/users-endpoint-returns-code-of-recovery-question-not-the-text/16035/4 "2024-02-08T19:17:18Z")

</div>


