List support channels
Changed onLists support channels between an account's team and its customers, most recently active first by default. Pass open=true to find channels awaiting a support response.
Required permissions:
- support_chat:read
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/support_channels
- Auth: HTTP bearer
Query parameters
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
The perspective to filter support channels by.
Whether to filter by open or resolved support channels. Set to true to only return channels awaiting a response, or false for resolved channels.
Only return support channels opened by this customer.
Set to true to only return channels the authenticated user has joined as a participant. Requires a user.
Set to true to return last_message and unread on each channel. Both are null otherwise, which keeps large lists fast.
Set to true to return participated on each channel. It is null otherwise, which keeps large lists fast.
The direction of the sort.
Sort options for message channels
The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to.
Response
A successful response
Example response
{
"data": [
{
"custom_name": "Project Alpha Team",
"customer_user": {
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42"
},
"last_message": {
"attachments": [
{
"content_type": "image/jpeg",
"filename": "document.pdf"
}
],
"content": "Hey, are you available for a **quick call**?",
"created_at": "2023-12-01T05:00:00.401Z"
},
"last_message_at": "2023-12-01T05:00:00.401Z",
"resolved_at": "2023-12-01T05:00:00.401Z"
}
]
}Changes
- info
added the new optional
queryrequest parametercustomer_user_id - info
added the new optional
queryrequest parameterinclude_last_message - info
added the new optional
queryrequest parameterinclude_participated - info
added the new optional
queryrequest parameterparticipated - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- info
- info
added the required property
//to the response with the status
- info