Skip to Content
MinexonMinexon

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

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.
slugstringRequiredURL 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.

FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
topicobjectConditionalTopic data and related replies.
categoriesarray or objectConditionalAvailable categories or a map keyed by category.
categoryTrailsarray or objectConditionalCategory paths.
relatedTopicsarray or objectConditionalRelated topics.
memberRolesarray or objectConditionalVisible author role badges.
forumCanReplybooleanConditionalWhether the current account can reply.
forumCanManagebooleanConditionalCategory moderation permission.
forumCanFollowbooleanConditionalTopic follow permission.
forumCanVotebooleanConditionalPoll-voting permission.
forumCanEditTopicbooleanConditionalPermission to edit the topic.
editableRepliesarrayConditionalIDs of editable replies.
forumNoticestring or nullConditionalForum status notice.
reportablearray or objectConditionalReportable targets and report state.
reportErrorstring or nullConditionalReport validation error.
pollErrorstring or nullConditionalPoll vote error.
submissionstringConditionalSubmit 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.

Shared error and authentication contract