/api/qmail/local/util/base32-encode
GETEncode a non-negative decimal integer (typically a coin serial number) to QMail's custom base32 alphabet. Inverse of base32-decode.
Description
QMail uses a custom 32-character alphabet — ABCDEFGHJKLMNPQRSTUVWXYZ23456789 (omits I, O, 0, 1 to avoid visual confusion) — when serializing serial numbers into the local-part of an email address. This endpoint is a thin wrapper around that encoder so clients can produce identical strings.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
value | uint64 (decimal string) | Yes | The non-negative integer to encode. |
Response
{
"command": "base32",
"success": true,
"mode": "encode",
"decimal": 8189,
"base32": "PYV"
}Errors
| HTTP | Message |
|---|---|
| 400 | Missing required parameter: value |
| 400 | Invalid value for encode (must be a non-negative integer) |
| 500 | Encoding failed |
Example
curl "http://localhost:8081/api/qmail/local/util/base32-encode?value=8189"Related
- /api/qmail/local/util/base32-decode — Inverse operation.
- /api/qmail/local/address/from-sn — Higher-level: SN → email address.