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
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
listing | string | Required | Published punishment list slug. |
Query parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
q | string | Optional | Search text, up to 100 characters. |
scope | string | Optional | Restriction scope for local listings. |
status | string | Optional | active, expired or revoked for local listings. |
page | integer | Optional | Positive 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.
| 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. |
groups | JSON value | Conditional | Value determined by screen and configuration. |
listingSlug | string | Required | Published listing slug. |
listName | JSON value | Conditional | Value determined by screen and configuration. |
selected | JSON value | Conditional | Category or filter selected on this screen. |
playerColumn | JSON value | Conditional | Value determined by screen and configuration. |
local | boolean | Required | Whether the listing shows local restrictions. |
scopes | JSON value | Conditional | Value determined by screen and configuration. |
statuses | JSON value | Conditional | Value determined by screen and configuration. |
query | string | Conditional | Applied search text. |
scope | JSON value | Conditional | Value determined by screen and configuration. |
status | JSON value | Conditional | Value determined by screen and configuration. |
results | object | Required | Results containing rows, total, page and pages. |
columns | object | array | Required | Configured listing columns. |
unavailable | boolean | Required | true when the source is unavailable. |
page | integer | Conditional | Current page. |
Nested fields
| Field | Type | Requirement | Description |
|---|---|---|---|
results.rows | array | Conditional | Rows keyed by configured columns. Cells include text and, depending on format, tone or datetime. |
results.page | integer | Conditional | Current page. |
results.pages | integer | Conditional | Number of result pages. |
results.total | integer | Conditional | Punishment 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.