Developer API
Generate 2FA Token
Generate a two-factor authentication verification token for a staff member.
POST /v1/minecraft/staff/2fa/generate
Generate a two-factor authentication token for a staff member. The token and verification URL are returned so the staff member can complete the 2FA verification process.
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. |
Body
| Field | Type | Required | Description |
|---|---|---|---|
minecraftUuid | string | Yes | The staff member's Minecraft UUID. |
ip | string | Yes | The staff member's current IP address. |
{
"minecraftUuid": "550e8400-e29b-41d4-a716-446655440000",
"ip": "192.168.1.1"
}Response
200 OK
{
"token": "abc123xyz",
"verifyUrl": "https://panel.example.com/verify/abc123xyz"
}Error Responses
| Status Code | Description |
|---|---|
401 | Missing or invalid API key. |
404 | Staff member not found. |
429 | Rate limit exceeded. |
500 | Internal server error. |