Skip to Content
MinexonMinexon

punishments.list

Returns results and column definitions for a published punishments listing.

GET/api/v1/{locale}/punishments/{listing}

API scope punishments.list

Request

Send Authorization: Bearer <key> with each request.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.
listingstringRequiredPublished punishment list slug.

Query parameters

FieldTypeRequirementDescription
qstringOptionalSearch text, up to 100 characters.
scopestringOptionalRestriction scope for local listings.
statusstringOptionalactive, expired or revoked for local listings.
pageintegerOptionalPositive page number.

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/punishments/example?q=example&page=1"

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.
groupsJSON valueConditionalValue determined by screen and configuration.
listingSlugstringRequiredPublished listing slug.
listNameJSON valueConditionalValue determined by screen and configuration.
selectedJSON valueConditionalCategory or filter selected on this screen.
playerColumnJSON valueConditionalValue determined by screen and configuration.
localbooleanRequiredWhether the listing shows local restrictions.
scopesJSON valueConditionalValue determined by screen and configuration.
statusesJSON valueConditionalValue determined by screen and configuration.
querystringConditionalApplied search text.
scopeJSON valueConditionalValue determined by screen and configuration.
statusJSON valueConditionalValue determined by screen and configuration.
resultsobjectRequiredResults containing rows, total, page and pages.
columnsobject | arrayRequiredConfigured listing columns.
unavailablebooleanRequiredtrue when the source is unavailable.
pageintegerConditionalCurrent page.
Nested fields
FieldTypeRequirementDescription
results.rowsarrayConditionalRows keyed by configured columns. Cells include text and, depending on format, tone or datetime.
results.pageintegerConditionalCurrent page.
results.pagesintegerConditionalNumber of result pages.
results.totalintegerConditionalPunishment records matching the filters.

Selected fields from an example response

{
  "data": {
    "locale": "en",
    "local": true,
    "query": "example",
    "results": {},
    "columns": {}
  }
}

Flow and error cases

Row shape for external sources depends on the configured columns.

Shared error and authentication contract