/api/qmail/local/util/base32-decode
GETDecode a QMail custom base32 string back into a non-negative decimal value. Inverse of base32-encode.
Description
Accepts an upper- or lower-case string from the alphabet ABCDEFGHJKLMNPQRSTUVWXYZ23456789 and returns the integer it encodes. The response normalizes the input to uppercase in the base32 field.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
value | string | Yes | The base32 string to decode. |
Response
{
"command": "base32",
"success": true,
"mode": "decode",
"decimal": 8189,
"base32": "PYV"
}Errors
| HTTP | Message |
|---|---|
| 400 | Missing required parameter: value |
| 400 | Invalid base32 string (valid chars: ABCDEFGHJKLMNPQRSTUVWXYZ23456789) |
Example
curl "http://localhost:8081/api/qmail/local/util/base32-decode?value=PYV"Related
- /api/qmail/local/util/base32-encode — Inverse operation.