Spaces API: Get discussion
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/spaces/get_discussion |
| Handler | OperatelyWeb.Api.Spaces.GetDiscussion |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
id | id primitive (encoded as string) | Yes | No | - |
include_author | boolean | No | Yes | - |
include_reactions | boolean | No | Yes | - |
include_space | boolean | No | Yes | - |
include_space_members | boolean | No | Yes | - |
include_subscriptions_list | boolean | No | Yes | - |
include_potential_subscribers | boolean | No | Yes | - |
include_unread_notifications | boolean | No | Yes | - |
include_permissions | boolean | No | Yes | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
discussion | discussion object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/spaces/get_discussion?id=value&include_author=true&include_permissions=true&include_potential_subscribers=true&include_reactions=true&include_space=true&include_space_members=true&include_subscriptions_list=true&include_unread_notifications=true" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "discussion": { "__typename": "value", "author": "<person>", "body": "value", "comments": [ "<comment>" ], "comments_count": 123, "id": "value", "inserted_at": "2026-01-01", "notifications": [ "<notification>" ], "permissions": "<space_permissions>", "potential_subscribers": [ "<subscriber>" ], "published_at": "2026-01-01", "reactions": [ "<reaction>" ], "scheduled_at": "2026-01-01", "space": "<space>", "state": "draft", "subscription_list": "<subscription_list>", "title": "value", "updated_at": "2026-01-01" }}