Directory

The Directory API gives you access to Organizations, Accounts, Employees and Groups. Every Entity within the subsequent API calls must have an Organization attached and API calls must be made with a User specific JWT.

List organizations

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization

Create organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
aliasstringOptional
ownerEmailstringOptional
Responses
post
/api/v1/organization

Update current organization

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
aliasstringOptional
ownerEmailstringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/organization

Get organization by ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/{organization}

Update organization by ID

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
Body
namestringRequired
aliasstringOptional
ownerEmailstringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/organization/{organization}

Get organization profile

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/profile

Create or replace organization profile

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
logoUrlstringOptional
timezonestringOptional
locationstringOptional
countryCodestringOptional
companySizestringOptional
websitestringOptional
missionstringOptional
Responses
post
/api/v1/organization/profile

Update organization profile

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
logoUrlstringOptional
timezonestringOptional
locationstringOptional
countryCodestringOptional
companySizestringOptional
websitestringOptional
missionstringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/organization/profile

Get organization profile by ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/{organization}/profile

Create or replace profile for organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
Body
logoUrlstringOptional
timezonestringOptional
locationstringOptional
countryCodestringOptional
companySizestringOptional
websitestringOptional
missionstringOptional
Responses
post
/api/v1/organization/{organization}/profile

Update profile for organization

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
Body
logoUrlstringOptional
timezonestringOptional
locationstringOptional
countryCodestringOptional
companySizestringOptional
websitestringOptional
missionstringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/organization/{organization}/profile

Get organization by alias

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
aliasstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/alias/{alias}

List organizations by app type

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/by-app/{type}

List organizations by app external ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestringRequired
externalIdstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/by-app-id/{type}/{externalId}

List organizations by app data

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestringRequired
keystringRequired
valuestringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/organization/by-app-data/{type}/{key}/{value}

List organizations by app secret

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
typestringRequired
keystringRequired
Body
secretstringRequired
Responses
chevron-right
200

OK

application/json
post
/api/v1/organization/by-app-secret/{type}/{key}

Create API key for organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
limitToRolestringOptional
Responses
post
/api/v1/organization/keys

Create API key for org by ID

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
Body
namestringRequired
limitToRolestringOptional
Responses
post
/api/v1/organization/{organization}/keys

Delete API key for current organization

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
keystringRequired
Responses
chevron-right
200

OK

application/json
delete
/api/v1/organization/keys/{key}

Delete API key by org ID

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationstringRequired
keystringRequired
Responses
chevron-right
200

OK

application/json
delete
/api/v1/organization/{organization}/keys/{key}

List accounts

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
get
/api/v1/account

Create account

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptional
emailstringRequired
Responses
post
/api/v1/account

Get account by ID or email

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
accountIdOrEmailstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/account/{accountIdOrEmail}

Update account

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
accountIdOrEmailstringRequired
Body
namestringOptional
emailstringRequired
Responses
chevron-right
200

OK

application/json
patch
/api/v1/account/{accountIdOrEmail}

Grant account a role

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
accountIdstringRequired
Body
orgIdstring · uuidOptional
rolestringRequired
employeeIdstring · uuidOptional
Responses
chevron-right
200

OK

application/json
post
/api/v1/account/{accountId}/grant

List organization admins

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
get
/api/v1/account/org-admins

List employees for account

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
accountIdstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/account/{accountId}/employees

List accounts for organization

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
get
/api/v1/account/for-org

List employees

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
statusstringOptional
typestringOptional
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee

Create employee

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
emailstringRequired
accountstring · uuidOptional
rolestringOptional
Responses
post
/api/v1/employee

Get employee

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee/{employee}

Update employee

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Body
namestringRequired
emailstringRequired
accountstring · uuidOptional
rolestringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/employee/{employee}

Get employees by name

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
namestringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee/by-name/{name}

List managers of employee

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee/{employee}/managers

Set managers for employee

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Body
managerIdstring · uuidRequired
typestringRequired
Responses
chevron-right
200

OK

application/json
post
/api/v1/employee/{employee}/managers

Remove manager from employee

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
managerstringRequired
Responses
chevron-right
200

OK

No content

delete
/api/v1/employee/{employee}/managers/{manager}

No content

Get employee profile

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee/{employee}/profile

Create or replace employee profile

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Body
employeeNumberstringOptional
firstNamestringOptional
lastNamestringOptional
biostringOptional
profileImagestringOptional
birthDatestring · dateOptional
genderstringOptional
timezonestringOptional
locationstringOptional
joinDatestring · dateOptional
companyRolestringOptional
Responses
post
/api/v1/employee/{employee}/profile

Update employee profile

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
employeestringRequired
Body
employeeNumberstringOptional
firstNamestringOptional
lastNamestringOptional
biostringOptional
profileImagestringOptional
birthDatestring · dateOptional
genderstringOptional
timezonestringOptional
locationstringOptional
joinDatestring · dateOptional
companyRolestringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/employee/{employee}/profile

Get employee by account ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
accountIdstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee/by-account/{accountId}

List reports for manager

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
managerIdstringRequired
Query parameters
typestringOptional
Responses
chevron-right
200

OK

application/json
get
/api/v1/employee/by-manager/{managerId}

List groups

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
statusstringOptional
typestringOptional
Responses
chevron-right
200

OK

application/json
get
/api/v1/group

Create group

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
typestringRequired
Responses
post
/api/v1/group

Get group

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/group/{id}

Update group

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
namestringRequired
typestringRequired
Responses
chevron-right
200

OK

application/json
patch
/api/v1/group/{id}

Get group profile

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupstringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/group/{group}/profile

Create or replace group profile

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupstringRequired
Body
iconstringOptional
descriptionstringOptional
Responses
post
/api/v1/group/{group}/profile

Update group profile

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupstringRequired
Body
iconstringOptional
descriptionstringOptional
Responses
chevron-right
200

OK

application/json
patch
/api/v1/group/{group}/profile

List group members

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
groupIdstringRequired
Query parameters
entitystringOptional
membershipstringOptional
Responses
chevron-right
200

OK

application/json
get
/api/v1/group/{groupId}/members

Get entity groups

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
entitystringRequired
Responses
chevron-right
200

OK

application/json
get
/api/v1/entity/{entity}/groups

Set groups for entity

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
entitystringRequired
Bodyobject[]
groupIdstring · uuidOptional
typestringOptional
Responses
chevron-right
200

OK

No content

post
/api/v1/entity/{entity}/groups

No content

Remove entity from group

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
entitystringRequired
groupstringRequired
Responses
chevron-right
200

OK

No content

delete
/api/v1/entity/{entity}/groups/{group}

No content

Last updated

Was this helpful?