Top.Mail.Ru

Advanced UnSpot Plan from $100 $50 for Your Company Fix this Price

Promo deadline:
Help center / Administration / Integrations / API and Webhooks / Incoming webhooks API reference

Incoming webhooks API reference

Incoming ACS webhooks let your access-control system tell UnSpot when employees enter or leave the office. UnSpot uses these events for automatic check-in of bookings and attendance analytics. Events are sent to a universal JSON endpoint that works with any ACS.

1. Create a connection

In Administration > Integrations, create an ACS (SCUD) connection of type JSON. You define which fields of your payload contain the data — so you can adapt UnSpot to whatever your ACS sends:

SettingMeaningDefault key
Office attributeJSON key holding the office/space namespace
User attributeJSON key holding the user identifieruser
Status attributeJSON key holding the direction (in/out)status
Desk attributeOptional key holding a desk name
Access tokenOptional shared secret; if set, must be sent in the Un-Token header

After saving, UnSpot generates a unique endpoint token — your ACS will POST events to the URL containing it.

2. Send events — POST /api/scud/json/{token}

curl -X POST -H "Content-Type: application/json" -H "Un-Token: <access token>" \
  https://acme.unspot.com/api/scud/json/3f2a...-connection-token \
  -d '{
    "space": "HQ Berlin",
    "user": "jane.doe@example.com",
    "status": "in_office"
  }'
Bash
  • User identification: if the user value is an email, the user is matched by email; otherwise UnSpot tries the pass number, then the full name. Ambiguous pass numbers are rejected.
  • Status: the value must resolve to “in office” or “out of office”. The event time is the moment UnSpot receives the request.
  • Events are processed asynchronously; each event (including errors) is recorded in the integration log (Reports > Integration history).

3. What UnSpot does with an event

  • Marks the user as present in / absent from the office.
  • Confirms check-in for the user’s bookings when check-in policies require office presence.
  • Feeds office-attendance analytics and reports.

Errors

  • Integration not found — wrong endpoint token.
  • Access to subscription denied — the Un-Token header does not match the configured access token.
  • Subscription deactivated — the connection is disabled in UnSpot.
  • User not found / Multiple users found by pass number — the user identifier could not be resolved unambiguously.
  • Missing office/user/status keys — the event is rejected and logged.

For a hands-on example of the JSON variant, see Incoming Webhooks: Connecting ACS via JSON.

Leave a request for a call and we will contact you

Loading