URL: https://eusfuncapp01.azurewebsites.net/api/Authentication
TYPE: POST
Body:
Response:
The purpose of the Authentication function is to allow a 3rd party system to securely access the various functions of the Embrava DMS API. The token generated from this function is to be used in the authorization header when calling other Embrava DMS API functions.
POST https://eusfuncapp01.azurewebsites.net/api/Authentication
{
"OrganizationId":"32f5b2eb-77d9-4e92-ae95-75b3712339c2",
"SecretKey":"86A03FB7-634A-48B1-A3FE-5351DE9233D9"
}
Response:
{
"Token":"OiavVPdinKhLembOLjRKjeVW3HGjm3l/fQnVaFeKZThJuCe7RdznYTw1l174pyUD/ljYx/Qc5WwK64d6g4qQlZOKuu~dnRdFX1igF0v8LprQsb9gg5fQld/zv18df5R~Y9e6XlcY8AI=",
"TimeCreated":"2019-07-12T23:57:16.50041Z"
}
Note: Token lifetime is 6 hours.
URL: https://eusfuncapp01.azurewebsites.net/api/Authentication
TYPE: POST
Body:
Response:
The purpose of the Authentication function is to allow a 3rd party system to securely access the various functions of the Embrava DMS API. The token generated from this function is to be used in the authorization header when calling other Embrava DMS API functions.
POST https://eusfuncapp01.azurewebsites.net/api/Authentication
{
"OrganizationId":"32f5b2eb-77d9-4e92-ae95-75b3712339c2",
"SecretKey":"86A03FB7-634A-48B1-A3FE-5351DE9233D9"
}
Response:
{
"Token":"OiavVPdinKhLembOLjRKjeVW3HGjm3l/fQnVaFeKZThJuCe7RdznYTw1l174pyUD/ljYx/Qc5WwK64d6g4qQlZOKuu~dnRdFX1igF0v8LprQsb9gg5fQld/zv18df5R~Y9e6XlcY8AI=",
"TimeCreated":"2019-07-12T23:57:16.50041Z"
}
Note: Token lifetime is 6 hours.
The purpose of the Webhook API is to allow 3rd party systems to register their APIs for the Embrava DMS to send events and receive workspace information.
URL: https://eusfuncapp01.azurewebsites.net/api/hook
Type: POST
Header:
Body
Response:
Register API to receive events from Embrava DMS
POST https://eusfuncapp01.azurewebsites.net/api/hook
{
"url":"https://customerAPIURL.com/eventsfunctionName",
"secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82",
“type”:”EVENT”
}
Response:
{
"Id":0,
"Message":"EVENT API registered successfully",
"data":
[{
"id":52,"organization_id":"ZZADE60F3-C3D21E-4A01-A0A7-CEA79F36DC2B",
"url":"https://customerAPIURL.com/eventsfunctionName", "secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82", "type":"EVENT"
}]
}
Register an API the Embrava DMS should use to lookup
workspace details:
POST https://eusfuncapp01.azurewebsites.net/api/hook
{
"url":"https://customerAPIURL.com/workspacefunctionName",
"secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82",
“type”:”WORKSPACE”
}
Response:
{
"Id":0,
"Message":"WORKSPACE API registered successfully",
"data":
[{
"id":53,"organization_id":"ZZADE60F3-C3D21E-4A01-A0A7-CEA79F36DC2B",
"url":"https://customerAPIURL.com/workspacefunctionName",
"secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82",
"type":"WORKSPACE"
}]
}
URL: https://eusfuncapp01.azurewebsites.net/api/hook
Type: GET
Header:
Response:
Get all webhooks for an organization
GET https://eusfuncapp01.azurewebsites.net/api/hook
Response:
{
"Id":0,
"Message":"Retrieved successfully",
"data":[
{
"id":52,
"organization_id":"ZZADE60F3-C3D21E-4A01-A0A7-CEA79F36DC2B",
"url":"https://customerAPIURL.com/eventfunctionName",
"secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82",
"type":"EVENT"
},
{
"id":53,
"organization_id":"ZZADE60F3-C3D21E-4A01-A0A7-CEA79F36DC2B",
"url":"https://customerAPIURL.com/workspacefunctionName",
"secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82",
"type":"WORKSPACE"
}
]
}
URL: https://eusfuncapp01.azurewebsites.net/api/hook/{id}
Type: DELETE
Header:
Response:
Delete a webhook
DELETE https://eusfuncapp01.azurewebsites.net/api/hook/52
Response:
{
"Id":0,
"Message":"Deleted successfully",
"data":[
{
"id":52,
"organization_id":"ZZADE60F3-C3D21E-4A01-A0A7-CEA79F36DC2B",
"url":"https://customerAPIURL.com/eventfunctionName", "secret":"A099F668-6A36-4541-B0BD-C63CD10E4E82", "type":"EVENT"
}
]
}
The purpose of this section is to describe the Event payload structure that is posted to a customer endpoint that was registered using the EVENT webhook.
URL: Specified by customer using EVENT webhook.
Type: POST
Header:
Body
Response:
Send CREATE event to register Event webhook
POST https://customerAPIURL.com/eventfunctionName
{
"dateCreated":"2020-02-29T12:50:23.5350748+00:00",
"DeskSignID":"3196300003",
"booking":{
"ID":"0",
"startTime":"2020-02-29T18:20:18Z", "endTime":"2020-02-29T18:20:18Z",
"badgeNumber":"1894842368", "employeeID":"",
"Action":"CREATE",
"deskId":"a74f0349-67f7-46df-a5f4-3e590499cdc5"
},
"status":null
}
Response:
{
"ID":0,
"Message": "Workspace event successfully received"
}
Send OFFLINE User Availability event to customer:
POST https://customerAPIURL.com/eventFunctionName
{
"dateCreated":"2020-01 12T13:23:28.5915546+05:30", "DeskSignID":"3196100032",
"booking":null, "status":
{
"state":"OFFLINE",
"value":"0"
}
}
Response:
{
"ID":0,
"Message": "User Status event successfully received"
}
The purpose of this section is to describe the Workspace API the Embrava DMS will use to look-up workspace details from a 3rd party system.
URL: Specified by customer using WORKSPACE webhook.
TYPE: POST
Header:
Body
Response:
Embrava DMS requests the details of a workspace managed by
Desk Sign 3196100023
POST https://customerAPIURL.com/workspacefunctionName
{
“DeskSignID”: “3196100023”
}
Response:
{
"DeskID":"ba9ed829-5e58-4349-9e7a-cdf86cce5b3b",
"DeskName":"22-03A",
"Neighborhood":"Workplace Strategy",
"Floor":"22",
"Building":"23 Downing",
"Timezone":" America/New_York",
"Mon":["true","07:00:00","21:00:00"],
"Tue":["true","07:00:00","21:00:00"],
"Wed":["true","07:00:00","21:00:00"],
"Thu":["true","07:00:00","21:00:00"],
"Fri":["true","07:00:00","21:00:00"],
"Sat":["false","00:00:00","00:00:00"],
"Sun":["false","00:00:00","00:00:00"]
}
The purpose of the Booking API is to allow 3rd party systems to create a booking to be displayed on the Desk Sign and to also get a list of bookings currently assigned to a Desk Sign.
URL: https://eusfuncapp01.azurewebsites.net/api/Booking
TYPE: POST
Header:
Body:
Output:
POST https://eusfuncapp01.azurewebsites.net/api/Booking
{
"DeskSignID": "3196300012",
"BookingID": "4961e61b-23a7-48fd-98a6-db4e3f84ce3b",
"FirstName": "Jennifer",
"LastName": "Citizen",
"StartTime": "2020-02-01T14:50:00Z",
"EndTime": "2020-02-01T15:15:00Z",
"CheckedIn": 0,
"Cancel": 0,
"BadgeNumber": "7376479292",
"EmployeeId": ""
}
Response:
{
"ID":0,
"Message": "Booking successfully received"
}
URL: https://eusfuncapp01.azurewebsites.net/api/Booking/<DeskSignID>
Type: GET
Header:
Body:
[empty]
Output:
GET https://eusfuncapp01.azurewebsites.net/api/Booking/3196300888
{
}
Response:
{
"ID": 297389022,
"RMSBookingID": "1639003002",
"FirstName": "Jennifer",
"LastName": "Citizen",
“IsCheckedIn”: false,
"StartTime": "2020-02-01T14:50:00",
"EndTime": "2020-02-01T15:15:00",
"Timezone": “America/New_York”,
"BadgeNumber": "7376479292",
"EmployeeId": "323",
“DeskSignID”: “3196300888”
}
The purpose of the Alert API is to allow 3rd party systems to send custom alerts to the Desk Sign so that the Desk Sign will display this specific alert on the device.
URL: https://eusfuncapp01.azurewebsites.net/api/Alert
Type: POST
Header:
Body:
Output:
POST https://eusfuncapp01.azurewebsites.net/api/Alert
{
"DeskSignID": "3196300012",
"type": 1,
"ledColor": "800080",
"ledMode": 1,
"screenColor": "000000",
"textColor": "FFFFFF",
"textTemplate": 4,
"text1": “EVACUATE”,
"text2": "Please move to your closest emergency exit.",
"text3": "",
“text4": "",
“sound”: 0,
“soundMode”: 0,
“volume”:0
}
Response:
{
"ID":0,
"Message": "Alert successfully received."
}