Skip to Content
MinexonMinexon

support.create

Opens a support ticket for the current player.

POST/api/v1/{locale}/support/tickets

API scope support.create

Request

Send Authorization: Bearer <key> with each request.

Requires a signed-in player and applicable permission.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Request body

FieldTypeRequirementDescription
categoryintegerRequiredID of a visible support category.
prioritystringOptionallow, normal or high.
subjectstringRequiredSubject, 5–120 characters.
messagestringRequiredPlain-text or HTML message.
body_formatstringOptionalUse html to submit rich text.
_submissionstringRequiredThe form’s submission value. Preserve it when retrying the same submission.
attachmentsfile[]OptionalSend attachments as attachments[] in a multipart request.
minexon_captcha_responsestringOptionalVerification token when operation discovery includes captcha.support_create.

Run samples from your application server. See Quickstart for variables and sessions.

curl --fail-with-body --request POST \
  -H "Authorization: Bearer $MINEXON_API_KEY" \
  -b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
  -H 'Content-Type: application/json' \
  --data '{
  "category": 1,
  "subject": "Connection times out",
  "message": "The connection timed out while opening the survival world.",
  "body_format": "text",
  "_submission": "<submission from GET>"
}' \
  "${MINEXON_BASE_URL}/api/v1/en/support/tickets"

Request with a file

curl --fail-with-body --request POST \
  -H "Authorization: Bearer $MINEXON_API_KEY" \
  -b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
  --form-string category=1 \
  --form-string 'subject=Connection times out' \
  --form-string 'message=The connection timed out while opening the survival world.' \
  --form-string body_format=text \
  --form-string '_submission=<submission from GET>' \
  --form 'attachments[][email protected]' \
  "${MINEXON_BASE_URL}/api/v1/en/support/tickets"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredURL of the next player page.
noticesarrayConditionalOperation notice codes, when present.
errorstringConditionalError code.
errorsstring[]ConditionalField or operation error codes.
{
  "next": "/en/support/42"
}

When the form is shown again, the response can contain data instead of next. Check the HTTP status and the error fields together.

Form response fields
FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
categoriesarray or objectConditionalAvailable categories or a map keyed by category.
attachmentLimitsobjectConditionalFile count and file size limits.
activeCountintegerConditionalNumber of active tickets for the player.
activeLimitintegerConditionalOpen-ticket limit per player.
prioritiesJSON valueConditionalValue determined by screen and configuration.
subjectLimitintegerConditionalTicket subject length limit.
showFormbooleanConditionalWhether the support form can be used.
submissionstringConditionalSubmit as _submission for the same form.
messageLimitintegerConditionalTicket message length limit.

Flow and error cases

Validation errors return HTTP 422 with a form view containing data.errors.

Shared error and authentication contract