Support channels

Retrieve support channel

Changed on

Retrieves the details of an existing support channel.

Required permissions:

  • support_chat:read
get/support_channels/{id}

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/support_channels/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

The unique identifier of the support channel to retrieve.

Response

A successful response

account_idstring nullable required

The unique identifier of the account associated with this channel. Null if this is not a support or account-scoped conversation.

company_idstring nullable required

The unique identifier of the account associated with this channel. Null if this is not a support or account-scoped conversation.

custom_namestring nullable required

A custom display name assigned to this channel by the user. Null if no custom name has been set.

idstring required

The unique identifier for the entity

last_message_atstring date-time nullable required

The timestamp when the most recent message was sent in this channel. Null if no messages have been sent.

needs_replyboolean nullable required

Whether the customer sent the latest message and the linked support ticket is unresolved. Null if not a support chat.

participatedboolean nullable required

Whether the authenticated user has joined this channel as a participant. Null when the caller is not a user, or when listing support channels without include_participated.

resolved_atstring date-time nullable required

The timestamp when the linked support ticket was marked as resolved. Null if unresolved or not a support chat.

unreadboolean nullable required

Whether this channel has a message from someone else that the authenticated user has not viewed yet. Null when the caller is not a user, or when listing support channels without include_last_message.

Example response

{
  "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 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

      added the required property to the response with the status