Skip to main content
GET
/
user
/
{id}
/
assets
Get User Assets
curl --request GET \
  --url https://api.royalti.io/user/{id}/assets \
  --header 'Authorization: Bearer <token>'
[
  {}
]
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/user//assets Description:
The /user/{userId}/assets endpoint retrieves the assets associated with a specific user identified by their unique userId.
Method:
GET
Path Parameter:
ParameterTypeDescription
userIdstringThe unique identifier of the user.

Code Examples

const response = await fetch('https://api.royalti.io/user/example-id/assets', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

User ID

Response

Success