About this endpoint
What it does
Generates a random string using the requested length and character set, and returns the generated string along with the length and charset used.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| length | Integer | No | Number of characters to generate. Default: 16. Minimum: 1. Maximum: 256. |
| charset | ENUM | No | Character set to use. Allowed values: alpha, alphanumeric, numeric, hex. Default: alphanumeric. |
Response
Returns a JSON object with value, length, and charset fields. value is the generated random string, length is the string length, and charset is the character set used.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| value | String | Yes | The generated random string. |
| length | Integer | Yes | The length of the generated string. |
| charset | String | Yes | The character set used to generate the string. |