---
title: "List text and announcement channels for the connected Discord server"
method: GET
path: "/api/social-accounts/discord/channels"
tags: ["Accounts"]
---

# List text and announcement channels for the connected Discord server

`GET /api/social-accounts/discord/channels`

## Request

- Base URL: `https://api.dunsocial.com`
- URL: `https://api.dunsocial.com/api/social-accounts/discord/channels`
- Auth: HTTP bearer

## Query parameters

- `socialAccountId` string

## Headers

- `X-Workspace-Id` string, required

## Response `200`

Channels

- object
  - `success` true, required
  - `data` DiscordChannels
    - `channels` DiscordChannel[], required
      - `id` string, required
      - `name` string, required
      - `type` 'text' | 'announcement', required
      - `parentId` string
      - `position` integer
      - `nsfw` boolean
    - `guildId` string, required
    - `source` 'live' | 'cache'

## Other responses

- `401`: Missing or invalid bearer token
- `402`: Workspace is not on a paid plan
- `403`: Wrong workspace, missing scope, or role
- `404`: Resource not found

---

[API](https://skmtc.dev/dunsocial/apis/dunsocial-api.md) · [All operations](https://skmtc.dev/dunsocial/apis/dunsocial-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dunsocial/apis/dunsocial-api/revisions/3c586d59e76f?raw)
