Token Generation
The /token endpoint generates secure strings called tokens. This endpoint is particularly useful for creating random identifiers for various applications.
posthttps://api.moxon.dev /v2/token
lennumberoptionalToken length (12-4096). Default: 24
typestringoptionalToken type (see options below). Default:
alpha
| Type | Description |
|---|---|
alpha | Letters only (lowercase and uppercase) |
alphanum | Letters and numbers |
base64 | Base64 encoding |
hex | Hexadecimal digits |
num | Numbers only |
punct | Punctuation characters |
urlsafe | URL-safe characters |
uuid | Universally Unique Identifier (UUID) |
curl -X POST -d "len=24&type=alphanum" "https://api.moxon.dev/v2/token"{
"token": "6tMdlDV90x4Sm52dRS7MuGyn"
}If the len value is out of bounds or the type is invalid, a 12-character alphanumeric token will be generated.
Last updated on April 8, 2026