POST /api/auth/users
Validates and retrieves a user by their 6-character verification token. This endpoint is typically used during account confirmation or password reset flows.Authentication
No authentication required.Rate Limiting
This endpoint is subject to rate limiting.Request
6-character verification tokenValidation rules:
- Must not be empty
- Must be exactly 6 characters in length
- Both minimum and maximum length is 6
Request Body Example
Response
Confirmation message
The validated token code
Response Example
Status Codes
Token validated successfully
Invalid token format
Token not found in database
cURL Example
Error Responses
Validation Errors (400)
The request body fails validation:- Token is empty
- Token length is not exactly 6 characters
Unauthorized (401)
The token does not match any user in the database:Notes
- Tokens are case-sensitive
- Tokens are typically 6 alphanumeric characters
- This endpoint is used in conjunction with email verification and password reset flows
- The token is returned in the response for confirmation purposes