Help

Administration Guide

API Keys

Updated 25 Nov 2026 3 min read

From v2026.11, systems that call the Monosync REST API (api/v1) use named API keys, each with only the permissions it needs. Manage them under Settings > API Keys; the tab needs the monosync.settings.full permission. Create one key per client.

Create a key

  1. Open Settings > API Keys and click Create.
  2. Fill in Name (for example HR system), Owner (who is responsible for the key) and Description (what uses it).
  3. Expires: leave it empty for a key that never expires. A key with a date stops working at the end of that day, UTC.
  4. Object permissions: add a row per object type, or All object types (it also covers types created later), and tick Read, Add, Update or Delete.
  5. Other permissions: Sources (change connection settings), Variables (change variable values), Governance (read the inventory for Monosign).
  6. Click Create. The key, which starts with msk_, is shown only once: copy it now. If it is lost, regenerate the key.
PermissionAllows
ReadSearching the objects of the type
AddCreating a new object (POST)
UpdateChanging an object (PUT, PATCH, or POST of an existing one)
DeleteRemoving an object (DELETE api/v1/objects/{type}/{key}), as the UI removes it

Use a key

Send the key in the Api-Key header. This call searches the first 100 objects of an object type:

curl -X POST "https://<monosync-host>/api/v1/objects/<object-type>/search?page=1&limit=100" \
  -H "Api-Key: msk_<your key>" \
  -H "Content-Type: application/json" \
  -d "{}"

The object type is matched by its name, then its title, ignoring case. The answer holds items, page, pageCount, itemCount and limit; limit is between 10 and 10,000.

When a call is refused

Monosync answers HTTP 403 with the title API Key and one of these messages:

MessageWhat to do
"Api-Key" header is missing in your request!Send the key in the Api-Key header.
"Api-Key" mismatch!The key is unknown. The old MONOSYNC_API_KEY value is refused until it is imported (below).
API key "<name>" is disabled.Enable the key, or give the client another key.
API key "<name>" expired on <date>.Edit the key's Expires date, or create a new key.
API key "<name>" has no "read" permission on "object type <type>".Tick the missing permission for that object type.

Manage keys

The list shows each key's owner, permissions, status (Active, Disabled, Expired) and when it was last used (updated at most once a minute). The row menu offers Edit, Disable or Enable, Regenerate key (a new key at once; the current one stops working, the permissions stay) and Remove (cannot be undone). Every change is recorded in the history.

Moving from MONOSYNC_API_KEY

Before v2026.11 the REST API used one key from the MONOSYNC_API_KEY environment variable. That variable no longer authenticates. While it is still set, the tab shows: MONOSYNC_API_KEY is set but no longer read. Import it to keep current clients working, then move them to their own keys.

  1. Click Import. The value becomes the key MONOSYNC_API_KEY (imported) with every permission, so existing clients keep working.
  2. Create a key for each client with only the permissions it needs, and move the clients to their keys.
  3. Remove the imported key, then the environment variable.

Related pages

Permanent link