Login

API URL

{{url}}/auth-service/session

Method

POST

Description

Login and get Access Token

Input

Field Name

Type

Mandatory

Example

client(Header)

String

Yes

web

username

String

Yes

superXXXn@XXX.mdt

password

String

Yes

Hashed Password

Sample Input:

{

"username": "spxxxice@xx.mdt",

"password": "1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6"

}

Output

Field Name

Type

Comments

id

Bigint

User ID

firstName

String

User First Name

lastName

String

User Last Name

username

String

Login Email ID

phoneNumber

String

User Phone number

roles

String

User Role

active

Boolean

Is active

currentDate

Timestamp without timezone

Current Date

tenantId

Bigint

User Tenant ID

countryCode

Bigint

Country Code of User

country

String

User’s Country

isSuperUser

Boolean

Super User Check

isJobUser

Boolean

Job User Check

organizationIds

Bigint

User’s Organization

suiteAccess

String

Suit Access of User

client

String

Client mob or web

fhirId

Bigint

User’s Fhir ID

timezone

Timestamp

User Timezone

cultureId

Bigint

Culter Id

culture

String

User’s Culture

isTermsAndConditionsAccepted

Boolean

User Terms and Conditions Accepted

Sample Output:

 {
  "id" : 1,
  "firstName" : "SuXXXr",
  "lastName" : "AXXXin",
  "username" : "suXXXXXmin@spice.mdt",
  "phoneNumber" : "79XXXXXX85",
  "roles" : [ {
    "id" : 1,
    "name" : "SUPER_ADMIN",
    "level" : null,
    "suiteAccessName" : "admin",
    "appTypes" : [ "COMMUNITY" ],
    "reportPrivileges" : [ ],
    "authority" : "SUPER_ADMIN"
  }],
  "active" : true,
  "currentDate" : 1736413152095,
  "tenantId" : 1,
  "countryCode" : "232",
  "country" : {
    "id" : 1,
    "name" : "SierXXXXXne",
    "phoneNumberCode" : "232",
    "unitMeasurement" : null,
    "regionCode" : "1",
    "appTypes" : [ "COMMUNITY" ],
    "tenantId" : 1
  },
  "isSuperUser" : false,
  "isJobUser" : false,
  "organizationIds" : [ ],
  "suiteAccess" : [ "insights", "admin" ],
  "client" : "web",
  "fhirId" : "11",
  "timezone" : {
    "id" : 1,
    "offset" : "+05:30",
    "description" : "Indian Time"
  },
  "cultureId" : 1,
  "culture" : {
    "id" : 1,
    "name" : "English",
    "code" : "en"
  },
  "isTermsAndConditionsAccepted" : false
}