Spaces API: List discussions
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/spaces/list_discussions |
| Handler | OperatelyWeb.Api.Spaces.ListDiscussions |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
space_id | id primitive (encoded as string) | Yes | No | - |
include_author | boolean | No | Yes | - |
include_comments_count | boolean | No | Yes | - |
include_my_drafts | boolean | No | Yes | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
discussions | array of discussion object | Yes | No |
my_drafts | array of discussion object | No | Yes |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/spaces/list_discussions?include_author=true&include_comments_count=true&include_my_drafts=true&space_id=value" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "discussions": [ { "__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" } ], "my_drafts": [ { "__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" } ]}