Skip to main content
POST
/
api
/
v1
/
auth
/
verify-user
Verify/approve or reject pending user (Admin only)
curl --request POST \
  --url http://localhost:3000/api/v1/auth/verify-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "approve": "<string>",
  "reason": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
userId
string

userId — see API source for exact type.

approve
string

approve — see API source for exact type.

reason
string

reason — see API source for exact type.

Response

OK

message
string
data
object