FrontDeskID API v2
FrontDeskID API v2
FrontDeskID API
FRONTDESKID API....................................................................................................3
FrontDeskID API is RESTFUL web service to integration the key features with
internal systems.
2. Authentication Endpoint
The API allows multiple ways of authentication. Firstly, the authentication
mechanism using Active Directory credentials and returns the token for mapped
user profile. Secondly, authenticate the user FrontDesk system credentials and upon
successful authentication, API will return token. The token will be used in other
endpoints as means of authorization.
Endpoint: {{URL}}/Token/WindowsLogin
Request Payload:
{
"username": "username",
"password": "password",
"ldapip": "1027.0.0.1",
"domain": "frontdeskid",
"port": 389,
"isSecureSocket": false
}
Response Payload:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHlfbmFtZSI6ImZhbGR1YXlqaSIs
ImdpdmVuX25hbWUiOiJBYUAxMjMzMzIxISMjNCQkNDQiLCJ1bmlxdWVfbmFtZSI6IkZhZGhlbCBBbCBEdWF5amk
The below is the simple call with FrontDesk system authentication to create a token
for user:
Request Payload:
{
"username": "svc_bio",
"password": "P@ssw0rd"
}
Response Payload:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHlfbmFtZSI6ImZhbGR1YXlqaSIs
ImdpdmVuX25hbWUiOiJBYUAxMjMzMzIxISMjNCQkNDQiLCJ1bmlxdWVfbmFtZSI6IkZhZGhlbCBBbCBEdWF5amk
iLCJleHAiOjE2MjU0NDgyMjIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjM3NzYvIiwiYXVkIjoiaHR0cDovL2
xvY2FsaG9zdDo2Mzc3Ni8ifQ.OdM1ck6gD4VO1BEsiM8anUTCwfcEjeSaL3FCEwv6rXg",
"expires": "2021-07-05T04:23:42.535372+03:00",
"userId": 45,
"userFullNameEng": "Admin",
"userFullNameArb": "Admin"
}
This integration will be invoked from REST to save meeting execute the EndPoint provided by
FrontDeskID using REST connection that return the success of the meeting is saved successfully.
Integration Structure
Triggering Event:
The integration “api/Meeting/add” is triggered by direct invocation using its exposed
REST API.
o Create new meeting
Service Input:
The integration input is the standard JSON payload.
Tracking Variables:
method
Connections:
Connection Name Adaptor Description
Name
api/Meeting/add REST Entry point for the integration Exposes
endpoint
Endpoint URL:
https://[hostname]/api/Meeting/add
Method: POST
Request Body:
{
"sessionID": 1,
"meetingID": 1,
"meetingEmployeeIDs": "10086",
"meetingVisitorName": "Shajar Abbas",
"meetingVisitorEmail": "[email protected]",
"meetingVisitorPhone": "966501234567",
"meetingStartTime": "2021-07-01 08:00:00",
"meetingEndTime": "2021-07-01 08:00:00",
Response Body:
{
"status": "OK",
"message": "success",
"response": {
"status": "success",
"messageEng": "Meeting is scheduled successfully.",
"messageArb": "بنجاح اجتماع عقد المقرر من."
}
}
/api/Company/GetCompanyList
5. Add Company
To add a new company below is the end point.
/api/Company/Add
{
"sessionID": 0,
/api/Department/GetDepartmentsList
/api/Employee/GetEmployeesList?DepartmentId=1
/api/Meeting/GetMeetingTypes?SessionID=1