Get Channels: /channel/ (GET)
Purpose:
This endpoint retrieves a list of channels that the authenticated user has access to view.
Input:
- Headers:
- Client-Secret: (Optional) A header to authenticate the request.
- Authorization: The JWT token of the user.
Output (200):
[
{
"id": "1b1238b3-3628-4b0a-b19a-f98e9f79ab89",
"name": "General",
"description": "General discussion",
"deleted": false
},
{
"id": "8edaeee7-19a8-4ce5-a5cc-96fb2ea91aec",
"name": "Random",
"description": "Random discussion",
"deleted": false
}
]