forum.topic
Read the topic, replies, role badges, action permissions and submission data.
GET
/api/v1/{locale}/forum/topics/{slug}API scope forum.topic
Request
Send Authorization: Bearer <key> with each request.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
slug | string | Required | URL slug of the resource. |
This endpoint takes no request body.
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request GET \
-H "Authorization: Bearer $MINEXON_API_KEY" \
"${MINEXON_BASE_URL}/api/v1/en/forum/topics/example"Response
HTTP 200 · application/json
The fields below are inside the response’s data object.
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
topic | object | Conditional | Topic data and related replies. |
categories | array or object | Conditional | Available categories or a map keyed by category. |
categoryTrails | array or object | Conditional | Category paths. |
relatedTopics | array or object | Conditional | Related topics. |
memberRoles | array or object | Conditional | Visible author role badges. |
forumCanReply | boolean | Conditional | Whether the current account can reply. |
forumCanManage | boolean | Conditional | Category moderation permission. |
forumCanFollow | boolean | Conditional | Topic follow permission. |
forumCanVote | boolean | Conditional | Poll-voting permission. |
forumCanEditTopic | boolean | Conditional | Permission to edit the topic. |
editableReplies | array | Conditional | IDs of editable replies. |
forumNotice | string or null | Conditional | Forum status notice. |
reportable | array or object | Conditional | Reportable targets and report state. |
reportError | string or null | Conditional | Report validation error. |
pollError | string or null | Conditional | Poll vote error. |
submission | string | Conditional | Submit as _submission for the same form. |
Selected fields from an example response
{
"data": {
"locale": "en",
"topic": {},
"categories": [],
"categoryTrails": [],
"relatedTopics": []
}
}Flow and error cases
The v1 JSON view does not include the poll object. A vote can use the choice key obtained from the site’s poll interface.