forum.new
Read eligible categories and submission data for a new topic.
GET
/api/v1/{locale}/forum/topic-formAPI scope forum.new
Request
Send Authorization: Bearer <key> with each request.
Requires a signed-in player and applicable permission.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
Query parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
category | string | Optional | Category slug. |
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" \
-b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
"${MINEXON_BASE_URL}/api/v1/en/forum/topic-form"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. |
categories | array or object | Conditional | Available categories or a map keyed by category. |
categoryTrails | array or object | Conditional | Category paths. |
values | object | Conditional | Current form values. |
editingTopic | object or null | Conditional | Topic being edited. |
canManageEdit | boolean | Conditional | Moderator edit permission. |
submission | string | Conditional | Submit as _submission for the same form. |
Selected fields from an example response
{
"data": {
"locale": "en",
"categories": [],
"categoryTrails": [],
"values": {},
"editingTopic": {}
}
}