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

Description

/user//products Description:
The /user/{userId}/products endpoint retrieves the products 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/products', {
  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