Skip to main content

API Quickstart

This guide takes you from zero to your first Adcyma API call in about five minutes. The API lets you create, update, look up, and offboard users from your own systems, for example from an HR platform or an internal tool.

Step 1: Find your Company ID

In Adcyma, open AdministrationSettingsCompany Profile and copy the Adcyma Company ID. You'll send it as the X-Company-ID header on every request.

Step 2: Create an API user

  1. Open AdministrationSettingsUser Permissions
  2. Click Add User and choose the API role
  3. Enter a username, for example hr-sync-bot
  4. Click create. The API key is shown once in a dialog with a copy button. Store it in your secrets manager now; it cannot be retrieved later.

Step 3: Make your first call

Verify your credentials with a lookup of any existing user:

curl "https://api.adcyma.com/v1/api/user?userPrincipalName=anna.eriksson@yourdomain.com" \
-H "X-Company-ID: YourCompany-1a2b3c4d" \
-H "X-Api-User: hr-sync-bot" \
-H "X-Api-Key: <your-secret-key>"

A 200 response with a data.user object means everything is wired up. A 401 means one of the three headers is wrong or the API user is disabled.

Step 4: Create a user

curl -X POST "https://api.adcyma.com/v1/api/user" \
-H "X-Company-ID: YourCompany-1a2b3c4d" \
-H "X-Api-User: hr-sync-bot" \
-H "X-Api-Key: <your-secret-key>" \
-H "Content-Type: application/json" \
-d '{
"firstname": "John",
"surname": "Doe",
"jobTitle": "Software Engineer",
"department": "Engineering",
"manager": "jane.smith@yourdomain.com",
"date": "2026-09-01",
"time": "08:00"
}'

User creation is asynchronous: the request is queued, your workflows run, and the account appears in your directory at the scheduled time. The UPN and email address are generated from your Preferences, so you don't pass them in.

Where to go next