---
title: "Discover Channel Spaces"
method: POST
path: "/channels/spaces/discover"
tags: ["Channels"]
---

# Discover Channel Spaces

`POST /channels/spaces/discover`

## Request body

- ChannelSpaceDiscoverRequest — No core DTO either: `discover_spaces` persists nothing, so its only input is the connection to ask.
  - `connection_id` string, uuid, required

## Response `200`

Successful Response

- ChannelSpaceCandidatesResponse
  - `count` integer
  - `candidates` ChannelSpaceCandidate[]
    - `kind` 'private' | 'group' | 'topic', required
    - `external_locator` object, required
    - `display_name` string, nullable
    - `is_configured` boolean
    - `external_key` string, uuid, nullable
    - `membership` 'member' | 'joinable' | 'invite_required' — Whether the bot is in a discovered space, and if not, who can put it there. Unset where the platform reports no membership.

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-25** `ec21cdc5486c` — 1 info
  - added the optional property `candidates/items/external_key` to the response with the `200` status
- **2026-09-24** `a28f1d059149` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/channels/spaces/discover/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/72f2feba8ccb?raw)
