v8

OpenAPI 3.1.02026-08-033623795.0 MB
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 nullable

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

beforestring nullable

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

firstinteger nullable

Returns the first n elements from the list.

Example:42
lastinteger nullable

Returns the last n elements from the list.

Example:42
company_idstring nullable

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