(OLD) Get user details by client id
Important:
Request headers are required. See API basics introduction for more information.
Get user details by client id
Endpoint
GET /user?client_id={client_id}
Returns the user
details for a given client_id
associated with the given App (set by the X-API-KEY).
Parameters
Query parameters
Query parameter | Description |
---|---|
client_id | The client_id supplied when first creating the user associated with this app (ex. client_id_1 ). |
Response
You will receive the user details including the following fields:
Response fields | Type | Description | Condition |
---|---|---|---|
uid | String | The user UID. | Mandatory |
client_id | String | The unique ID by which you identify this user in your system. | Mandatory |
created_at | String (Timestamp) | The timestamp of the user creation. | Mandatory |
email | String (Email) | The user email. | Can be null |
wallet_address | String | The user wallet address. | Can be null |
Response example
{
"success": true,
"data": {
"uid": "816379099131",
"client_id": "client_id_1",
"created_at": "2023-08-10T14:07:14.494142Z",
"email": "[email protected]",
"wallet_address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
Note:
Considering that user wallet creation is asynchronous, the
wallet_address
will be empty until it is created. See Create User for more information.
Example
The following example gets the user details for client_id your-user-id-2.
# API_KEY is your api key
# TOKEN is the access token generated with your api key secret
curl -i \
-X GET \
-H "Content-Type: application/json" \
-H "X-Api-Key: API_KEY" \
-H "Authorization: Bearer TOKEN" \
"https://api.getoriginal.com/v1/user?client_id=your-user-id-2"
Updated 5 months ago