curl --request GET \
--url https://api.royalti.io/user/{id} \
--header 'Authorization: Bearer <token>'{
"fullName": "user2 Royalti",
"phone": "+1234567890",
"country": "Nigeria",
"message": "Welcome to Royalti!",
"sendEmail": true,
"redirect_url": "https://app.royalti.io/welcome",
"id": "b56fe67e-d1b9-4a04-9a13-c0a53be8da49",
"firstName": "user2",
"lastName": "Royalti",
"email": "[email protected]",
"ipi": "1234567890",
"externalId": "123",
"TenantUser": {
"TenantId": 2,
"nickName": "iEmmanuel104",
"userType": [
"Artist"
]
},
"invite": {
"id": "e2d9b1ff-1db1-4c6f-86de-65c13716fd4d",
"status": "invited",
"date": "2024-06-10T12:00:00.000Z"
}
}/user/
curl --request GET \
--url https://api.royalti.io/user/{id} \
--header 'Authorization: Bearer <token>'{
"fullName": "user2 Royalti",
"phone": "+1234567890",
"country": "Nigeria",
"message": "Welcome to Royalti!",
"sendEmail": true,
"redirect_url": "https://app.royalti.io/welcome",
"id": "b56fe67e-d1b9-4a04-9a13-c0a53be8da49",
"firstName": "user2",
"lastName": "Royalti",
"email": "[email protected]",
"ipi": "1234567890",
"externalId": "123",
"TenantUser": {
"TenantId": 2,
"nickName": "iEmmanuel104",
"userType": [
"Artist"
]
},
"invite": {
"id": "e2d9b1ff-1db1-4c6f-86de-65c13716fd4d",
"status": "invited",
"date": "2024-06-10T12:00:00.000Z"
}
}/user/{userId} endpoint allows users to retrieve the details of a specific user identified by their unique userId.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| userId | string | The unique identifier of the user. |
See Examples below for response
const response = await fetch('https://api.royalti.io/user/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
User ID