POST api/login
Perform login authentication
Request Information
URI Parameters
None.
Body Parameters
userdetails
user_input| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| password | string |
None. |
|
| ad_auth | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"password": "sample string 2",
"ad_auth": 1
}
application/xml, text/xml
Sample:
<user_input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplicationITTF1.Controllers"> <ad_auth>1</ad_auth> <password>sample string 2</password> <username>sample string 1</username> </user_input>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
login_with_role_dc| Name | Description | Type | Additional information |
|---|---|---|---|
| login_info | login_response |
None. |
|
| org_info | login_org_info |
None. |
|
| role_info | user_role_response_dc |
None. |
Response Formats
application/json, text/json
Sample:
{
"login_info": {
"name": "sample string 1",
"UserId": 2,
"ittfid": 1,
"auth_token": "sample string 3",
"UserName": "sample string 4",
"UserRoleId": 5,
"IsLocalAccount": true,
"AppAccess_Admin": true,
"AllowAccess": true
},
"org_info": {
"OrganizationName": "sample string 1",
"OrganizationId": 2
},
"role_info": {
"user_role_linked_info": [
{
"UserRoleId": 1,
"RoleId": 1,
"RoleName": "sample string 2",
"Roledesc": "sample string 3",
"IsActive": true,
"CustomRole": true,
"SystemId": 4,
"CreatedBy": 1,
"LastModifiedBy": 1,
"LastUpdatedDateTime": "2026-02-05T05:44:05.0740329+00:00",
"IsDeleted": true,
"RoleType": "sample string 5",
"OrgCodes": "sample string 6"
},
{
"UserRoleId": 1,
"RoleId": 1,
"RoleName": "sample string 2",
"Roledesc": "sample string 3",
"IsActive": true,
"CustomRole": true,
"SystemId": 4,
"CreatedBy": 1,
"LastModifiedBy": 1,
"LastUpdatedDateTime": "2026-02-05T05:44:05.0740329+00:00",
"IsDeleted": true,
"RoleType": "sample string 5",
"OrgCodes": "sample string 6"
}
],
"user_role_attribute_linked_info": [
{
"RoleModuleId": 1,
"Module": "sample string 2",
"Access": "sample string 3",
"RoleAttributeId": 1,
"RoleId": 4,
"Deleted": 1,
"CreatedBy": 1,
"LastModifiedBy": 1,
"LastUpdatedDateTime": "2026-02-05T05:44:05.0740329+00:00",
"IsDeleted": true
},
{
"RoleModuleId": 1,
"Module": "sample string 2",
"Access": "sample string 3",
"RoleAttributeId": 1,
"RoleId": 4,
"Deleted": 1,
"CreatedBy": 1,
"LastModifiedBy": 1,
"LastUpdatedDateTime": "2026-02-05T05:44:05.0740329+00:00",
"IsDeleted": true
}
]
}
}
application/xml, text/xml
Sample:
<login_with_role_dc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplicationITTF1.Controllers">
<login_info>
<AllowAccess>true</AllowAccess>
<AppAccess_Admin>true</AppAccess_Admin>
<IsLocalAccount>true</IsLocalAccount>
<UserId>2</UserId>
<UserName>sample string 4</UserName>
<UserRoleId>5</UserRoleId>
<auth_token>sample string 3</auth_token>
<ittfid>1</ittfid>
<name>sample string 1</name>
</login_info>
<org_info>
<OrganizationId>2</OrganizationId>
<OrganizationName>sample string 1</OrganizationName>
</org_info>
<role_info>
<user_role_attribute_linked_info>
<role_attribute_with_modules_dc>
<CreatedBy>1</CreatedBy>
<Deleted>1</Deleted>
<IsDeleted>true</IsDeleted>
<LastModifiedBy>1</LastModifiedBy>
<LastUpdatedDateTime>2026-02-05T05:44:05.0740329+00:00</LastUpdatedDateTime>
<RoleAttributeId>1</RoleAttributeId>
<RoleId>4</RoleId>
<RoleModuleId>0</RoleModuleId>
<Access>sample string 3</Access>
<Module>sample string 2</Module>
<RoleModuleId>1</RoleModuleId>
</role_attribute_with_modules_dc>
<role_attribute_with_modules_dc>
<CreatedBy>1</CreatedBy>
<Deleted>1</Deleted>
<IsDeleted>true</IsDeleted>
<LastModifiedBy>1</LastModifiedBy>
<LastUpdatedDateTime>2026-02-05T05:44:05.0740329+00:00</LastUpdatedDateTime>
<RoleAttributeId>1</RoleAttributeId>
<RoleId>4</RoleId>
<RoleModuleId>0</RoleModuleId>
<Access>sample string 3</Access>
<Module>sample string 2</Module>
<RoleModuleId>1</RoleModuleId>
</role_attribute_with_modules_dc>
</user_role_attribute_linked_info>
<user_role_linked_info>
<get_user_role_data_dc>
<CreatedBy>1</CreatedBy>
<CustomRole>true</CustomRole>
<IsActive>true</IsActive>
<IsDeleted>true</IsDeleted>
<LastModifiedBy>1</LastModifiedBy>
<LastUpdatedDateTime>2026-02-05T05:44:05.0740329+00:00</LastUpdatedDateTime>
<OrgCodes>sample string 6</OrgCodes>
<RoleId>1</RoleId>
<RoleName>sample string 2</RoleName>
<RoleType>sample string 5</RoleType>
<Roledesc>sample string 3</Roledesc>
<SystemId>4</SystemId>
<UserRoleId>1</UserRoleId>
</get_user_role_data_dc>
<get_user_role_data_dc>
<CreatedBy>1</CreatedBy>
<CustomRole>true</CustomRole>
<IsActive>true</IsActive>
<IsDeleted>true</IsDeleted>
<LastModifiedBy>1</LastModifiedBy>
<LastUpdatedDateTime>2026-02-05T05:44:05.0740329+00:00</LastUpdatedDateTime>
<OrgCodes>sample string 6</OrgCodes>
<RoleId>1</RoleId>
<RoleName>sample string 2</RoleName>
<RoleType>sample string 5</RoleType>
<Roledesc>sample string 3</Roledesc>
<SystemId>4</SystemId>
<UserRoleId>1</UserRoleId>
</get_user_role_data_dc>
</user_role_linked_info>
</role_info>
</login_with_role_dc>