The /auth/setpassword endpoint allows users to set after they have verified their account. Method:
POST Request Payload:
Parameter | Type | Description |
---|---|---|
password | string | The new password to be set. |
See example response from the examples below
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
password | string | ✅ | The new password to be set |
Responses
✅ 200 - success
⚠️ 400 - has password
⚠️ 401 - Unauthorized
⚠️ 404 - Not Found
❌ 500 - Internal Server Error
Tags
Auth
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
The new password to be set
Example:
"testpassword"
Response
success