Skip to main content
GET
/
labels
/
{labelId}
/
access
List Label Access
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/{labelId}/access \
  --header 'Authorization: Bearer <token>'
{
  "status": "<string>",
  "data": [
    {
      "TenantId": 123,
      "LabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "TenantUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "role": "admin",
      "permissions": [
        "<string>"
      ],
      "TenantUser": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "firstName": "<string>",
        "lastName": "<string>",
        "role": "owner",
        "permissions": {},
        "User": {
          "email": "jsmith@example.com",
          "profilePicture": "<string>"
        }
      }
    }
  ],
  "pagination": {
    "totalItems": 123,
    "totalPages": 123,
    "currentPage": 123,
    "filteredItems": 123
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/labels/example-id/access', {
  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

labelId
string<uuid>
required

Query Parameters

page
integer
default:1
limit
integer
default:20

Response

Success

status
string
data
object[]
pagination
object