Clienvy API documentation

List employee invites

GET
https://api.clienvy.io/employee/v1
/employee-invites

Returns every pending employee invite, ordered by name.

List employee invites › query Parameters

search
​string

Full-text search across first and last name.

List employee invites › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List employee invites › Responses

Array of EmployeeInviteResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
function
​string | null
email
​string
​object
full_access
​boolean
permissions
​string[]
created_at
​string · date-time

Create an employee invite

POST
https://api.clienvy.io/employee/v1
/employee-invites

Invites a new employee by e-mail. Setting full_access grants full access. Otherwise permissions (a list of permission keys) applies once the invite is accepted. The e-mail address cannot belong to an existing employee, and an invite takes up a subscription slot, so it fails when the plan is full.

Create an employee invite › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create an employee invite › Request Body

first_name
​string · maxLength: 32 · required
last_name
​string · maxLength: 64 · required
function
​string · maxLength: 32 · required
email
​string · email · maxLength: 128 · required
full_access
​boolean
permissions
​string[]

Permission keys granted on acceptance (ignored when full_access is true).

Create an employee invite › Responses

EmployeeInviteResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
function
​string | null
email
​string
​object
full_access
​boolean
permissions
​string[]
created_at
​string · date-time

Get an employee invite

GET
https://api.clienvy.io/employee/v1
/employee-invites/{employeeInvite}

Returns a single pending employee invite by ID.

Get an employee invite › path Parameters

employeeInvite
​string · uuid · required

The employee invite UUID

Get an employee invite › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Get an employee invite › Responses

EmployeeInviteResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
function
​string | null
email
​string
​object
full_access
​boolean
permissions
​string[]
created_at
​string · date-time

Update an employee invite

PUT
https://api.clienvy.io/employee/v1
/employee-invites/{employeeInvite}

Updates a pending invite's details and permissions.

Update an employee invite › path Parameters

employeeInvite
​string · uuid · required

The employee invite UUID

Update an employee invite › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update an employee invite › Request Body

first_name
​string · maxLength: 32 · required
last_name
​string · maxLength: 64 · required
function
​string · maxLength: 32 · required
full_access
​boolean
permissions
​string[]

Permission keys granted on acceptance (ignored when full_access is true).

Update an employee invite › Responses

EmployeeInviteResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
function
​string | null
email
​string
​object
full_access
​boolean
permissions
​string[]
created_at
​string · date-time

Delete an employee invite

DELETE
https://api.clienvy.io/employee/v1
/employee-invites/{employeeInvite}

Revokes a pending employee invite.

Delete an employee invite › path Parameters

employeeInvite
​string · uuid · required

The employee invite UUID

Delete an employee invite › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete an employee invite › Responses

EmployeeInviteResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
function
​string | null
email
​string
​object
full_access
​boolean
permissions
​string[]
created_at
​string · date-time

Resend an employee invite

POST
https://api.clienvy.io/employee/v1
/employee-invites/{employeeInvite}/resend

Sends the invitation e-mail again.

Resend an employee invite › path Parameters

employeeInvite
​string · uuid · required

The employee invite UUID

Resend an employee invite › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Resend an employee invite › Responses

EmployeeInviteResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
function
​string | null
email
​string
​object
full_access
​boolean
permissions
​string[]
created_at
​string · date-time