> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/further-reading/faqs/how-can-i-look-up-a-specific-users-data.md).

# How can I look up a specific user's data?

This is done by making a call to:

{% hint style="warning" %}
**POST https\://\[env].smileidentity.com/api/v2/partner/enrollee/info**

**Where `[env]` is either "test" or "prod"**\
\&#xNAN;**“test”** (test environment) - "<https://test.smileidentity.com/api/v2/partner/enrollee/info"\\>
\&#xNAN;**“prod”** (production environment) - "<https://prod.smileidentity.com/api/v2/partner/enrollee/info>"
{% endhint %}

With a JSON body shown below:

```json
{
  "environment": "<test | production>",
  "partner_id": "<Put your partner ID here>",
  "signature": "<Put signature here>",
  "timestamp": "<Put the timestamp here>",
  "user_id": "<Put User ID here>"
}
```

Example response:

```json
{
  "enrolled_user": {
    "allow_new_enroll": false,
    "complete": true,
    "deleted": false,
    "inactive": false,
    "is_fraudulent": false,
    "pending": false,
    "provisional": false
  },
  "history": [
    {
      "created_at": "2019-07-12T18:13:50.586Z",
      "partner_params": {
        "job_id": "1180ad5b-e2fa-4a26-b3c2-de3872b4a438",
        "user_id": "49435266-4d92-45fc-93ec-935628f79d84",
        "job_type": 2
      },
      "job_id": "0000008081",
      "result_code": "1220",
      "result_message": "Authenticated",
      "id_check": null
    },
    {
      "created_at": "2019-07-12T18:13:50.586Z",
      "partner_params": {
        "job_id": "3905ad5b-e2fa-4a26-b3c2-de3872b5bce5",
        "user_id": "49435266-4d92-45fc-93ec-935628f79d84",
        "job_type": 5
      },
      "job_id": "0000008080",
      "result_code": "1012",
      "result_message": "ID Number Validated",
      "id_check": {
        "name": "SOME PERSON",
        "id_number": "12345678901",
        "country": "NG",
        "id_type": "BVN",
        "dob": "1996-01-02",
        "expiration_date": "Not Available",
        "photo": "base64 string",
        "address": "Not Available",
        "gender": "Male",
        "phone_number": "Not Available",
        "result_code": "1012",
        "result_text": "ID Number Validated",
        "full_data": {
          // json content varies by id type and country
        }
      }
    },
    {
      "created_at": "2019-07-10T18:13:33.011Z",
      "partner_params": {
        "job_id": "0f4b0017-6eba-4135-98b0-0f24dc6db0ab",
        "user_id": "49435266-4d92-45fc-93ec-935628f79d84",
        "job_type": 4
      },
      "job_id": "0000008079",
      "result_code": "0840",
      "result_message": "Enroll User",
      "id_check": null
    }
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://legacy-docs.usesmileid.com/further-reading/faqs/how-can-i-look-up-a-specific-users-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
