Dm channels

List dm channels

Returns a paginated list of DM channels for the currently authenticated user, sorted by most recently active.

Required permissions:

  • dms:read
get/dm_channels

Query parameters

afterstring

Returns the elements in the list that come after the specified cursor.

beforestring

Returns the elements in the list that come before the specified cursor.

firstinteger

Returns the first n elements from the list.

Example:42
lastinteger

Returns the last n elements from the list.

Example:42
account_idstring

The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company.

Example:biz_xxxxxxxxxxxxxx

Response

A successful response

Example response

{
  "data": [
    {
      "created_at": "123.45",
      "last_message_at": "2023-12-01T05:00:00.401Z",
      "name": "Project Alpha Team"
    }
  ]
}

Changes

Changed in 1 of the 74 revisions of this API.11

    • ●

      deleted the query request parameter company_id

      request-parameter-removed

    • ○

      added the new optional query request parameter account_id

      new-optional-request-parameter

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

Of the 74 revisions, 1 has no diff computed.