Endpoint#
| Property | Value |
|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/get_discussion |
| Handler | OperatelyWeb.Api.Queries.GetDiscussion |
Authentication#
- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|
id | 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#
| Field | Type | Required | Nullable |
|---|
discussion | discussion object | Yes | No |
cURL Example#
Copiedcurl --request GET \
--url "https://app.operately.com/api/external/v1/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#
{
"discussion": {
"author": "<person>",
"body": "value",
"comments": [
"<comment>"
],
"comments_count": 123,
"id": "value",
"inserted_at": "2026-01-01",
"name": "value",
"notifications": [
"<notification>"
],
"permissions": "<space_permissions>",
"potential_subscribers": [
"<subscriber>"
],
"published_at": "2026-01-01",
"reactions": [
"<reaction>"
],
"space": "<space>",
"state": "value",
"subscription_list": "<subscription_list>",
"title": "value",
"updated_at": "2026-01-01"
}
}