Get Channel Role Accesses: /channel-role-access/ (GET)

Purpose:

This endpoint retrieves all channel-role access entries. If a channel_id is provided, it filters the entries to only those associated with the specified channel.

Input:

  • Headers:
    • Client-Secret: (Optional) A header to authenticate the request.
    • Authorization: The JWT token of the user.
  • Query Parameters:
    • channel_id: (Optional, Uuid) The id of the channel.

Output (200):

[
  {
    "id": "4655789b-2ded-4ce9-abc1-793924d1b3a8",
    "channel_id": "81729521-bdf3-48ce-8da4-d9ced3b1ceb0",
    "role_id": "e6abbfdd-4db4-496d-a5e5-39642892c22f",
    "deleted": false
  },
  {
    "id": "a9c3a522-183f-46a2-8c0b-6deb22d41db4",
    "channel_id": "e13fa078-7bfe-4b06-82bd-1cfb329413d6",
    "role_id": "a641df31-52a1-43f6-acd4-53f91b46975f",
    "deleted": false
  }
]