Employee
List employees
Returns every employee, ordered by name. Only the active ones unless status says otherwise.
query Parameters
searchFull-text search across first and last name.
statusWhich employees to return: active (default), deactivated or all.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List employees › Responses
Array of EmployeeListResource
idfirst_namelast_namefull_nameemaillast_activitydeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
functionfull_accessis_service_accountService accounts are for machine to machine API access
Get an employee
Returns a single employee by ID, including their function, manager flag and permissions.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get an employee › Responses
EmployeeResource
idfirst_namelast_namefull_namefunctionemaillast_activitydeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
full_accesspermissionsis_service_accountService accounts are for machine to machine API access
oauth_providerThe provider the employee signs in with instead of a password, such as google.
2fa_active$2fa_active
created_atUpdate an employee
Updates an employee. Only the fields present in the request are changed. Setting
full_access grants full access. Otherwise permissions (a list of permission keys)
applies.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update an employee › Request Body
first_namelast_namefunctionThe employee's job title.
full_accessWhether the employee is a manager (full access).
permissionsPermission keys granted to the employee (ignored when full_access is true).
profile_picture_idUUID of an uploaded jpg, jpeg or png file to use as the profile picture. Send null to remove it.
Update an employee › Responses
EmployeeResource
idfirst_namelast_namefull_namefunctionemaillast_activitydeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
full_accesspermissionsis_service_accountService accounts are for machine to machine API access
oauth_providerThe provider the employee signs in with instead of a password, such as google.
2fa_active$2fa_active
created_atDelete an employee
Deletes an employee and reassigns their resources to another employee (assign_to_id). You cannot
delete yourself, and the target must differ from the deleted employee.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete an employee › Request Body
assign_to_idUUID of the active employee to reassign the deleted employee's resources to.
Delete an employee › Responses
EmployeeResource
idfirst_namelast_namefull_namefunctionemaillast_activitydeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
full_accesspermissionsis_service_accountService accounts are for machine to machine API access
oauth_providerThe provider the employee signs in with instead of a password, such as google.
2fa_active$2fa_active
created_atDeactivate an employee
Deactivates an employee: their tokens are revoked, they can no longer sign in, they stop counting towards the subscription slots and they disappear from every selection list. Their history stays intact. You cannot deactivate yourself.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Deactivate an employee › Responses
EmployeeResource
idfirst_namelast_namefull_namefunctionemaillast_activitydeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
full_accesspermissionsis_service_accountService accounts are for machine to machine API access
oauth_providerThe provider the employee signs in with instead of a password, such as google.
2fa_active$2fa_active
created_atActivate an employee
Reactivates a deactivated employee. This takes up a subscription slot, so it fails when the plan is full.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Activate an employee › Responses
EmployeeResource
idfirst_namelast_namefull_namefunctionemaillast_activitydeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
full_accesspermissionsis_service_accountService accounts are for machine to machine API access
oauth_providerThe provider the employee signs in with instead of a password, such as google.
2fa_active$2fa_active
created_atList email change requests
Returns the open requests to change the employee's email address, newest first. A request takes effect once the new address confirms it.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List email change requests › Responses
Array of EmployeeChangeEmailRequestListResource
idemailThe address the employee changes to once it is confirmed.
expires_atcreated_atRequest an email change
Sends a confirmation link to the new address. The address only changes once the link is used, within 24 hours. A new request for the same address replaces the open one.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Request an email change › Responses
EmployeeChangeEmailRequestListResource
idemailThe address the employee changes to once it is confirmed.
expires_atcreated_atWithdraw an email change request
Deletes the request, so its confirmation link stops working.
path Parameters
employeeThe employee UUID
changeEmailRequestThe change email request UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Withdraw an email change request › Responses
EmployeeChangeEmailRequestListResource
idemailThe address the employee changes to once it is confirmed.
expires_atcreated_atList sessions
Returns the sessions the employee is signed in with, most recently used first. Tokens of API integrations and AI clients are not sessions and are left out.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List sessions › Responses
Array of EmployeeSessionListResource
idmethodHow the session started: password or oauth-google.
ip_addressEmpty for a session that started before this was written down.
browserplatformis_currentWhether this is the session the request is made with.
last_used_atexpires_atcreated_atSign out all sessions
Revokes every session of the employee, so they have to sign in again everywhere. Returns the sessions that are left, which is none.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Sign out all sessions › Responses
Array of EmployeeSessionListResource
idmethodHow the session started: password or oauth-google.
ip_addressEmpty for a session that started before this was written down.
browserplatformis_currentWhether this is the session the request is made with.
last_used_atexpires_atcreated_atSign out a session
Revokes the session, so the next request made with it is refused and the employee has to sign in again on that device.
path Parameters
employeeThe employee UUID
sessionThe session id, as listed by "List sessions".
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Sign out a session › Responses
EmployeeSessionListResource
idmethodHow the session started: password or oauth-google.
ip_addressEmpty for a session that started before this was written down.
browserplatformis_currentWhether this is the session the request is made with.
last_used_atexpires_atcreated_atList security logs
Returns what happened to the way the employee signs in over the last six months, newest first: every sign in, worked or not, and every change to their password, two-step verification, address, single sign-on and sessions.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List security logs › Responses
Array of EmployeeSecurityLogListResource
idtypeemailThe address it was about: the one a sign in was tried with, the new one for an address change.
login_methodHow an employee signed in. The value is also the name of the access token the sign in hands out, so a session tells by its token how it started.
password |
oauth-google |
impersonation Clienvy support signed in as the employee: a session of its own, never written down or shown to the employee. |
login_failure_reasonip_addressbrowserplatformcreated_atList OAuth connections
Returns the AI clients and apps the employee gave access to their account, newest first.
path Parameters
employeeThe employee UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List OAuth connections › Responses
Array of OAuthConnectionResource
idnamepermissionsfull_accesslast_used_atcreated_atGet an OAuth connection
Returns one AI client or app the employee gave access to their account.
path Parameters
employeeThe employee UUID
oauthConnectionThe oauth connection UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get an OAuth connection › Responses
OAuthConnectionResource
idnamepermissionsfull_accesslast_used_atcreated_atRevoke an OAuth connection
Ends the access the employee gave the client: its tokens stop working right away.
path Parameters
employeeThe employee UUID
oauthConnectionThe oauth connection UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Revoke an OAuth connection › Responses
OAuthConnectionResource
idnamepermissionsfull_accesslast_used_atcreated_atAll employee permissions
Returns the catalog of assignable permissions, grouped by domain. These are the permission
keys (for example relation.view, invoice.create) accepted when setting an employee's
permissions or scoping an OAuth connection. Each permission lists the feature modules it
belongs to in features. A permission only has an effect while all of those modules are
switched on for the organization.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
All employee permissions › Responses
All customer portal permissions
Returns the catalog of customer portal permissions, grouped like the employee catalog. A contact
holds these per company it is linked to, see PUT relation/companies/{company}/contact/{contact}/customer-portal/permissions.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.