Skip to main content
POST
/
api
/
v2.1
/
admin
/
users
/
login
/
reset
Reset user login
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/admin/users/login/reset \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --data '
{
  "userId": "87b3af37-4ac1-402b-a0ea-53cfdc695e02",
  "reason": "Password reset request"
}
'
{
  "success": true,
  "data": {
    "message": "Credentials reset successfully"
  }
}

User Management API

APIs for managing user credentials, roles, and access permissions.
Base URL: https://sandbox.finhub.cloud

Available Operations

Reset Login

POST /admin/users/login/reset

Update Credentials

PUT /admin/users/{userId}/credentials

Reset User Login

Resets credentials for a specific user.

Request

Authorization
string
required
Bearer token for authentication
X-Tenant-ID
string
required
Tenant identifier

Code Examples

curl -X POST "https://sandbox.finhub.cloud/api/v2.1/admin/users/login/reset" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "Content-Type: application/json" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809" \
  -d '{}'
{
  "success": true,
  "data": {
    "message": "Credentials reset successfully"
  }
}

Update User Credentials

Updates credentials for a specific user.

Request

userId
string
required
User identifier
Authorization
string
required
Bearer token for authentication
X-Tenant-ID
string
required
Tenant identifier

Code Examples

curl -X PUT "https://sandbox.finhub.cloud/api/v2.1/admin/users/user_12345/credentials" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "Content-Type: application/json" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809" \
  -d '{}'
{
  "success": true,
  "data": {
    "userId": "user_12345",
    "message": "Credentials updated successfully"
  }
}

Response Codes

CodeDescription
200Operation successful
400Invalid request data
401Not Authorized
403Not Allowed
404User not found
500Internal server error

Headers

X-Tenant-ID
string
required

Tenant identifier

Example:

"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"

Body

application/json
userId
string
Example:

"87b3af37-4ac1-402b-a0ea-53cfdc695e02"

reason
string
Example:

"Password reset request"

Response

200

OK