1. Default module
Calven Developer Docs
latest
  • latest
  • beta
  • Default module
    • Overview
    • Access Control
    • Basic Authentication
    • HMAC Authentication
    • SDKs
    • Calven Data Models
    • Changelog
    • Authentication
      • Generate a token with an API key and HMAC
      • Generate a token with an API key and client secret
    • Presence
      • Presence Overview
      • Submit presence events
      • Submit presence events (Basic auth)
    • Occupancy
      • Occupancy Overview
      • Submit occupancy events
    • Time Off
      • Submit time off updates
    • Access Credentials
      • Submit access credentials
    • Warehouse - Basic Auth
      • Warehouse API (Basic Auth)
      • Users (Basic auth)
      • Groups (Basic auth)
      • Locations (Basic auth)
      • Desks (Basic auth)
      • Bookings & Attendance (Basic auth)
      • Presence (Basic auth)
      • User Actions Log (Basic auth)
      • Events (Basic auth)
    • Warehouse - HMAC Auth
      • Warehouse API (HMAC Auth)
      • Users
      • Groups
      • Locations
      • Desks
      • Bookings & Attendance
      • Presence
      • User Actions Log
      • Events
    • Hierarchy Information
      • Org Hierarchy Information Overview
      • Submit group hierarchy relationships
      • Submit group hierarchy relationships (Basic auth)
    • Parking
      • Retrieve parking bookings
      • Retrieve parking bookings (Basic auth)
    • Service Requests
      • Service Types
      • Service Type
      • Submit a service request
      • Service Request
      • Update a service request
    • User Attributes
      • User Attributes Overview
      • Write directory user attributes
      • Write directory user attributes (Basic auth)
    • Visitor Management
      • Submit visitor arrival events
      • Submit visitor arrival events (Basic auth)
  1. Default module

Access Control

Calven authenticates API requests with API keys. When Calven creates a key it has two distinct properties:
Permissions - the set of endpoints the key can call
Authentication type - whether the key is used for Basic authentication or for token-based (HMAC) authentication
Your API keys carry broad access to your data, so keep them secure.
To use the API you will require an API key and secret, which can be created in Calven.

Authentication#

Calven supports two types of authentication:
1.
Basic authentication
2.
HMAC authentication
Basic authentication sends the API key and secret with each request.
HMAC authentication never transmits the secret with the request. Instead, it uses the secret to generate a hashed message authentication code (HMAC) based on the request data. The secret stays confidential and does not travel over the wire, making it less susceptible to man-in-the-middle attacks. Additionally, because the recipient can independently compute the expected HMAC using the shared secret, it helps verify both the integrity and authenticity of the request.
Each key is created for one authentication type, not both:
A standard key authenticates through the /v1/auth endpoints to obtain a bearer token, and cannot be used for Basic authentication. Use this type if your client can compute an HMAC or you use Calven's SDKs.
A Basic authentication key works only on the /basic endpoint variants, and cannot be used with the /v1/auth endpoints. Use this type if your tools cannot calculate an HMAC as part of the request.

Access Control#

Each API key carries a set of permissions, chosen when the key is created. Each endpoint's description ends with the permissions it requires, and a request from a key without them is rejected.
A key's permissions cannot be changed after creation. To change what a key can access, create a new key.
PermissionGrantsReturns personal data
dm:group:hierarchyrelationship:writeWrite group hierarchy relationshipsNo
dm:user:attribute:writeWrite user attributesNo
event:readRead event dataNo
group:readRead groupsNo
location:occupancy:writeSubmit occupancy eventsNo
location:readRead locationsNo
parking:booking:readRead parking booking reportsYes
service:offering:readRead the Service Types you can requestNo
service:request:readRead any Service Request, including those raised in CalvenYes
service:request:writeSubmit Service Requests and book their meetingNo
user:accesscredential:writeCreate and update user access credentialsNo
user:booking:readRead booking and attendance dataYes
user:plan:writeSubmit time off updatesNo
user:presence:readRead presence dataYes
user:presence:writeSubmit presence eventsNo
user:profile:readRead user profilesYes
visitor:arrival:writeSubmit visitor arrival eventsNo
Modified at 2026-11-20 03:14:03
Previous
Overview
Next
Basic Authentication
Built with