User Lookup

Prev Next

Look up a user by user UID.

request

GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/user/{userId}
Item type Required Explanation Remark
projectId String O ProjectId in GamePot SDK
userId String O UserId of GamePot SDK

Request header

Header name Required Explanation
x-api-key O Authentication key issued by GamePot
accept-language X Language used

answer

Field name type Explanation
status Int Result (1: Success )
id String User ID
deleted Boolean Whether to delete the member (true: delete, false: normal )
store_id String Store accessed when creating account (google ...)
country String User country code (based on ISO 3166-1)
remoteip String User IP
adid String Advertising id
device String Device type (android, ios)
network String User access network (WI-FI ...)
version String Client version information
model String User device model name
token String Push token
push Boolean Whether to accept push (true: agree, false: disagree)
night Boolean Night push consent (true: agree, false: disagree)
ad Boolean Ads push consent (true: agree, false: disagree)
memo String Member notes
device_id String Member Device ID
createdAt String Date the member was created
updatedAt String Date the member information was modified
loginedAt String Last access date
deletedAt String Date the member was deleted

example

Request example

curl --request GET \
--url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/user/h43ea8e8-xxxx-xxxx-xxxx-531a46d25eef \
--header 'accept-language: ko' \
--header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'

Example response

```http
{
  "status": 1,
  "result":{
    "id":"XXXXXXXX",
    "deleted":false,
    "store_id":"one",
    "country":"KR",
    "remoteip":"xxx.xxx.xxx.xxxx",
    "nickname":null,
    "adid":"XXXXXX-XXXX-XXXX-XXXX-XXXXXX",
    "device":"android",
    "network":"WIFI",
    "version":"11",
    "model":"SM-G977N",
    "token":"XXXXXXXX",
    "push":true,
    "push_date":{
        "on":"2023-04-21T11:22:55+09:00",
        "off":null
    },
    "night":true,
    "night_date":{
        "on":"2023-04-21T11:22:55+09:00",
        "off":"2023-04-20T11:22:58+09:00"
    },
    "ad":true,
    "memo":null,
    "device_id":"XXXXX-XXXXX-XXXXX",
    "agree":{
        "termsofuse":"Y",
        "termsofuseAt":"2023-04-21T11:22:55+09:00",
        "privacypolicy":"Y",
        "privacypolicyAt":"2023-04-21T11:22:55+09:00"
    },
    "verify":{
        "key":null,
        "updatedAt":null
    },
    "adult":null,
    "gdpr":{
        "status":4,
        "email_verified":null,
        "checked_story_category_ids":[
        "gdpr_term",
        "gdpr_privacy",
        "gdpr_push_normal",
        "gdpr_push_night"
        ]
    },
    "createdAt":"2023-04-21T11:22:55+09:00",
    "updatedAt":"2023-04-21T11:22:55+09:00",
    "loginedAt":"2023-04-21T11:22:55+09:00",
    "deletedAt":null
 }
}

## Error code<a name="Errorcode"></a>



Common error code that occurs when requesting Gamepot Open API.

| parameter | Explanation |
| :--- | :--- |
| status  | Error code  (1: Refer to Error code in case of success or failure \) |
| message | Error details |

| Error code | Explanation |
| :---: | :--- |
| -1 | If you used a key that is not on the dashboard |
| -2 | The key of the dashboard and the key of the header are different. |
| -3 | When using a key deleted from the dashboard |
| -4 | The dashboard used unused keys. |
| -5 | If the key has expired |
| -6 | If there is no project ID |

{
"status": -6,
"message": "projectId was wrong."
}