Skip to main content
POST
/
api
/
v2.1
/
admin
/
organization
/
{organizationId}
/
users
/
{userId}
/
sessions
Create Session
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/admin/organization/{organizationId}/users/{userId}/sessions \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: <user-agent>' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --header 'X-Forwarded-From: <x-forwarded-from>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --header 'deviceId: <deviceid>' \
  --header 'platform: <platform>' \
  --data '
{
  "ipAddress": "127.0.0.1",
  "userAgent": "Mozilla/5.0",
  "platform": "web",
  "deviceId": "device-demo-001",
  "username": "admin@example.test",
  "password": "SecurePass123!",
  "role": "MASTER_ADMIN",
  "organizationType": "PLATFORM_OWNER"
}
'

Headers

User-Agent
string
required
X-Forwarded-For
string
required
Example:

"127.0.0.1"

X-Tenant-ID
string
required
Example:

"tenant-demo-001"

sec-ch-ua-platform
string
X-Forwarded-From
string
required

Client source identifier

Example:

"client-app"

platform
string
required

Client platform

Example:

"mobile"

deviceId
string
required

Device identifier

Example:

"device-demo-001"

Path Parameters

organizationId
string<uuid>
required
Example:

"00000000-0000-0000-0000-000000000000"

userId
string<uuid>
required
Example:

"00000000-0000-0000-0000-000000000000"

Body

application/json
ipAddress
string

Client IP address

Example:

"127.0.0.1"

userAgent
string

User agent string

Example:

"Mozilla/5.0"

platform
string

Client platform

Example:

"web"

deviceId
string

Device identifier

Example:

"device-demo-001"

username
string

Username for login/session

Example:

"admin@example.test"

password
string

Password for login/session

Example:

"SecurePass123!"

role
string

Role assigned to session

Example:

"MASTER_ADMIN"

organizationType
string

Organization type

Example:

"PLATFORM_OWNER"

Response

200

OK