Administration (opt-in)

Administration

List Categories

read-onlyidempotentopen-world
discourse_list_categories

Exhaustively list categories visible to the selected identity through bounded pagination. Returns stable IDs, slugs, hierarchy (parent_category_id; pid is a legacy alias), access flags, counts, structured completion metadata, and JSON text fallback. Opt in with the administration toolset.

Parameters

termstring
max_pagesinteger[1, 40]
max_requestsinteger[1, 40]
max_resultsinteger[1, 1000]
deadline_msinteger[100, 120000]

Returns

categoriesArray<object>required
Show child attributes
idintegerrequired
namestringrequired
slugstringrequired
pidinteger | nullrequired
Show child attributes
Any of
integer
null
parent_category_idinteger | nullrequired
Show child attributes
Any of
integer
null
read_restrictedbooleanrequired
topic_countinteger>= 0required
post_countinteger>= 0required
permsArray<object>
Show child attributes
gidinteger>= 0required
permintegerrequired
metaobjectrequired
Show child attributes
totalinteger>= 0required
reported_totalinteger | nullrequired
Show child attributes
Any of
integer>= 0
null
pages_fetchedinteger>= 0required
completebooleanrequired
has_morebooleanrequired
truncated_reasonstringpage_limitdeadlinecancelledno_new_idstotal_mismatchlegacy_site_jsonanonymous_fallbackupstream_error
errorstring

List Site Settings

read-onlyidempotentopen-world
discourse_list_site_settings

List admin-visible Discourse site settings with bounded metadata, optionally returning only settings whose current value differs from the default. Secret and credential-like values are always masked.

Parameters

categoriesArray<string>
pluginstring
namesArray<string>
overridden_onlyboolean
offsetinteger>= 0
limitinteger[1, 500]

Manage User Activation

destructiveidempotentopen-world
discourse_manage_user_activation

Activate, approve, activate-and-approve, or deactivate one user through Discourse's authoritative admin routes. Requires explicit confirmation and upstream staff authorization.

Parameters

usernamestringrequired
actionstringactivateapproveactivate_and_approvedeactivaterequired
confirmbooleanrequired

Must be true because this changes account access state