Mapiq API V1 (deprecated)

  V1 deprecated

Mapiq V1 is deprecated, please refer to https://developer.mapiq.com for V2 and more information on the possibilities.


For more (technical) information and to start using the API, please see the Mapiq API developer page

Via Mapiq's API is possible to retrieve bookings within a machine readable format (JSON) allowing other services to use the data generated within Mapiq's application. An example is an access control system basing user access on bookings made in Mapiq.


GET shifts

https://api.mapiq.com/shifts/registrations

Query parameters

An API call requires at least a startDate parameter and the data in return will contain all bookings from that day. With additional parameters the returned data can be specified further

ParameterRequiredDescription
startDateYesThe start of the date range.
endDateNoThe end of the date range. If not provided it will equal startDate.
userIdNoIdentifier of the user (GUID) as received from the GET users API
buildingIdNoIdentifier of the building (GUID) as received from the GET buildings API

Returned data

The API returns an array of booking objects matching the query parameters, with the objects in the list having the following properties.

IdIdentifier for the registration (GUID) 
userIdInternal Mapiq identifier (GUID) 
userExternalIdExternal identifier, as used by the customer. For more information see below
firstNameFirst name of the user.
lastNameLast name of the user
emailEmail address of the user.
dateOn which date the registration is valid.
nodeIdIdentifier of the location (GUID) of the registration, can be areaId, floorId or buildingId.
deskIdIdenfier of the booked desk (GUID) . Can be null depending on what level the registration is made.
areaIdIdentifier for the area (GUID) the registration is in. Can be null depending on what level the registration is made.
floorIdIdentifier for which floor (GUID) the registration is in. Can be null depending on what level the registration is made.
floorHasMapWhether the floor has a map
floorNumberThe floornumber
buildingIdIdentifier for which building (GUID) the registration is in.
buildingNameThe name of the building the registration is in.
floorNameThe name of the floor.
areaNameThe name of the area.
deskNameThe name of the desk
createdByObject with the original creator of the booking
lastModifiedByObject with the last editor of the booking
checkedInWhether the user has checked in for this shift

GET buildings

https://api.mapiq.com/shifts/buildings

Query parameters

None

Returned data

The API returns an array of building objects, with the objects in the list having the following properties.

idIdentifier of the building (GUID) 
nameName of the building
ianaTimezoneTimezone of the building
capacityTotal capacity
versionVersion number
floorsA list of floor objects
idIdentifier of the floor (GUID) 
nameName of the floor
numberFloor number
capacityCapacity of the floor
hasMapWhether there is a map drawn for the floor
areasA list of area objects
idIdentitfier of the area (GUID) 
nameName of the area
capacityCapacity of the area
hasBookableDesksWhether the desks are bookable
openingDaysA list of the days that the building is open

GET users

https://api.mapiq.com/shifts/users

Query parameters

ParameterRequiredDescription
UseCountNo
FiltersNo
SortsNo
PageNo
PageSizeNo

Returned data

The API returns an object in which an array of user objects can be found. These objects have the following properties.

totalCountNumber of user objects returned
dataArray with user objects
userIdInternal Mapiq identifier (GUID)
externalUserIdExternal identifier, as used by the customer. For more information see below
firstNameFirst name of the user.
lastNameLast name of the user
emailEmail address of the user.
isActiveWhether the user is an active user
quotaProfileObject with the quota profile assigned to the user
locationProfileObject with the location profile assigned to the user
countryCountry of the user (if known)
officeOffice of the user (if known)
jobTitleJob title of the user (if known
departmentDepartment of the user (if known)
businessUnitBusiness Unit of the user (if known)

POST checkin

https://api.mapiq.com/localization/admin/checkin

Query parameters

ParameterRequiredDescription
buildingIdYesIdentifier of the building (GUID) as received from the GET building API
userIdYesIdentifier of the user (GUID) as received from the GET users API
eventTypeYesOne of the following values (STRING):
  • atTheOffice -> checkin event
  • notAtTheOffice -> checkout event
sourceYesOne of the following values (STRING):
  • accessGate
  • sensor
  • wifi

Returned data

Status code 200 OK


Authentication

The Mapiq API supports OAuth 2.0 Resource Owner Password Credential (ROPC) flow in order to retrieve a token that can be used to authenticate yourself against the public API. Mapiq will create a service account and provide the necessary information that you need to connect successfully.


External Id

When connecting another service to the API it may be that this service requires a different user identifier than the user's email address. It is possible to share an additional claim containing an additional employee id via Single Sign On. This external Id is not used within the Mapiq application and its only purpose is to be shared within the output of the API. The following claim namespace and claim name is supported:

ProtocolExpected claim namespace and name
SAML2.0http://schemas.xmlsoap.org/ws/2005/05/identity/claims/externalid
OpenId Connectexternal_id *
* this claim needs to be included in one of the following scopes: openid, email, or profile

Please read more about sharing claims in the articles on Configuring Single Sign On 




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.