latestOpenAPI 3.1.02026-08-193894215.9 MB

23dfbe1a0d1f

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
company_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"
    }
  ]
}