Developer API
Create Upload Token
Create an upload token for punishment evidence.
POST /v1/minecraft/punishments/{punishmentId}/upload-token
Create a temporary upload token that can be used to upload evidence files for a specific punishment.
Authentication
Requires the X-API-Key header with your server's API key.
X-API-Key: your-api-key-hereRequest
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | Yes | Your server's API key. |
Content-Type | string | Yes | Must be application/json. |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
punishmentId | string | Yes | The unique ID of the punishment. |
Body
| Field | Type | Required | Description |
|---|---|---|---|
issuerName | string | No | The name of the staff member requesting the token. |
issuerId | string | No | The unique identifier of the staff member. |
{
"issuerName": "StaffMember",
"issuerId": "staff_abc123"
}Response
200 OK
{
"status": 200,
"token": "upload_token_xyz789"
}Error Responses
| Status Code | Description |
|---|---|
401 | Missing or invalid API key. |
404 | Punishment not found for the given ID. |
429 | Rate limit exceeded. |
500 | Internal server error. |