/user/
Description:
The /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
curl --request GET \
--url https://server26-dot-royalti-project.uc.r.appspot.com/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": "user2@royalti.io",
"ipi": "1234567890",
"externalId": "123",
"TenantUser": {
"TenantId": 2,
"nickName": "iEmmanuel104",
"userType": [
"Artist"
]
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
User ID
success
The response is of type object
.
curl --request GET \
--url https://server26-dot-royalti-project.uc.r.appspot.com/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": "user2@royalti.io",
"ipi": "1234567890",
"externalId": "123",
"TenantUser": {
"TenantId": 2,
"nickName": "iEmmanuel104",
"userType": [
"Artist"
]
}
}