Clienvy API documentation

List audit logs

GET
https://api.clienvy.io/employee/v1
/audit-logs

Returns the requests that changed something in the last six months, newest first: who made them, through which AI client or app, and the endpoint they called.

List audit logs › query Parameters

employee_id
​string · uuid

Only the requests made by this employee.

oauth_connection_id
​string

Only the requests made through this OAuth connection, or none for those made without one.

List audit logs › Headers

X-Organization-Id
​string · uuid · required

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

List audit logs › Responses

Array of AuditLogListResource

id
​string · uuid
employee_id
​string | null

The employee who made the request, or who was signed in as the contact. Empty when a contact made the request themselves, and when the employee is gone, the name stays then.

employee_full_name
​string | null
is_service_account
​boolean | null

Whether the employee is an API integration rather than a person. Empty when the employee is gone.

oauth_connection_name
​string | null

The AI client or app the request was made through.

contact_id
​string | null
contact_full_name
​string | null
is_impersonated
​boolean

Whether someone else made the request signed in as them: Clienvy support as the employee, or the employee as the contact.

method
​string
path
​string

The endpoint that was called, without the query string.

status
​integer

The HTTP status code of the answer.

created_at
​string · date-time

List employees with audit logs

GET
https://api.clienvy.io/employee/v1
/audit-logs/employees

Returns who the list can be filtered on with employee_id: the employees and API integrations that made audit logs, deactivated ones included.

List employees with audit logs › Headers

X-Organization-Id
​string · uuid · required

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

List employees with audit logs › Responses

Array of EmployeeReferenceResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
deactivated_at
​string | null · date-time

Set when the employee is deactivated: no sign in, no subscription slot, not selectable.

function
​string | null
is_service_account
​boolean

Service accounts are for machine to machine API access

​

Get an audit log

GET
https://api.clienvy.io/employee/v1
/audit-logs/{auditLog}

Returns one request with what was sent and answered, as long as that is still kept (a few days), with secrets masked.

Get an audit log › path Parameters

auditLog
​string · uuid · required

The audit log UUID

Get an audit log › Headers

X-Organization-Id
​string · uuid · required

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

Get an audit log › Responses

AuditLogResource

id
​string · uuid
employee_id
​string | null

The employee who made the request, or who was signed in as the contact. Empty when a contact made the request themselves, and when the employee is gone, the name stays then.

employee_full_name
​string | null
is_service_account
​boolean | null

Whether the employee is an API integration rather than a person. Empty when the employee is gone.

oauth_connection_name
​string | null

The AI client or app the request was made through.

contact_id
​string | null
contact_full_name
​string | null
is_impersonated
​boolean

Whether someone else made the request signed in as them: Clienvy support as the employee, or the employee as the contact.

method
​string
path
​string

The endpoint that was called, without the query string.

status
​integer

The HTTP status code of the answer.

created_at
​string · date-time
ip_address
​string
user_agent
​string | null
browser
​string | null
platform
​string | null
request_body
​array | null

What was sent, with secrets masked as ***. Empty when nothing was sent, and after a few days.

response_body
​array | null

What was answered, with secrets masked as ***. Empty when the answer was no JSON, and after a few days.