
Password Generator API
Security
Generate secure passwords instantly with full customization. Create strong, random passwords with specific character requirements for all your accounts.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
100 requests per minute
Endpoints
1 endpoint available
Overview
The Password Generator API creates secure, random passwords with full customization. Specify length, character requirements, and exclusion rules to generate passwords that meet your exact needs.
Customization Options
- Length - 4 to 128 characters
- Minimum Uppercase - Required uppercase letters (A-Z)
- Minimum Lowercase - Required lowercase letters (a-z)
- Minimum Numbers - Required digits (0-9)
- Minimum Symbols - Required special characters (!@#$%^&*)
Exclusion Options
- Exclude Similar - Remove confusing characters: i, l, 1, L, |, o, 0, O
- Exclude Ambiguous - Remove hard-to-type symbols: {}[]()/'"~,;:.<>
Use Cases
- User registration systems requiring password generation
- Password manager applications
- Account provisioning automation
- Security-focused applications
- Temporary password generation for password resets
Endpoints
POST
/v1/tools/password-generatorGenerate a secure random password with custom requirements
Request Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| length | number | Optional | Password length (4-128)Default: 12 |
| minUppercase | number | Optional | Minimum uppercase letters required (0-10)Default: 1 |
| minLowercase | number | Optional | Minimum lowercase letters required (0-10)Default: 1 |
| minNumbers | number | Optional | Minimum numbers required (0-10)Default: 1 |
| minSymbols | number | Optional | Minimum symbols required (0-10)Default: 1 |
| excludeSimilar | boolean | Optional | Exclude similar characters (i, l, 1, L, |, o, 0, O)Default: false |
| excludeAmbiguous | boolean | Optional | Exclude ambiguous symbols like braces, brackets, and quotesDefault: false |
Response Example
{
"success": true,
"password": "Kx9#mPq2$Nw5",
"length": 12,
"characterTypes": {
"uppercase": 3,
"lowercase": 4,
"numbers": 3,
"symbols": 2
}
}Error Codes
400
Invalid request body or parameters out of range401
Missing or invalid API key429
Rate limit exceeded500
Internal server errorCode Examples
# Generate a 16-character password with all character types
curl -X POST https://api.opentools.ca/v1/tools/password-generator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"length": 16, "minUppercase": 2, "minLowercase": 2, "minNumbers": 2, "minSymbols": 2}'
# Generate a simple password without confusing characters
curl -X POST https://api.opentools.ca/v1/tools/password-generator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"length": 12, "excludeSimilar": true, "excludeAmbiguous": true}'