Audit
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthCdt name
all_types_no_restrictionsUsername of a person performing the action
rootInstance name
testFull name of the patient who the action was taken on
test asdfDate_time in ISO-8601 format Filter by sentAt.
2021-02-04T16:40:50.363ZDate_time in ISO-8601 format Filter by sentAt.
2021-02-04T16:40:50.363ZType of the entity: CDT, PATIENT
CDTFull name of the person performing the action
rootInclude cdt formation
trueId of a person performing the action
Client type of the person performing the action: API_CLIENT, PATIENT, CS_TOOL_CLIENT, USER
Id of the patient who the action was taken on
Date_time in ISO-8601 format. When action happens
Object describe all fields with types
Type of action operation: CREATE, UPDATE, DELETE
Object after performing the action on it
Paginated audit trail records
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/admin/audit-data HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"eventId": "text",
"eventEntity": "PATIENT",
"url": "text",
"subjectUsername": "text",
"subjectUserId": "123e4567-e89b-12d3-a456-426614174000",
"subjectActor": "CS_TOOL_CLIENT",
"subjectFullName": "text",
"patientFullName": "text",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"instance": "text",
"cdtName": "text",
"cdtRelation": "COMMON",
"cdt": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"title": "text",
"label": "text",
"version": 1,
"internal": true,
"readable": true,
"updatable": true,
"type": "SINGLE_RECORD",
"relation": "COMMON",
"fields": [
{
"name": "text",
"type": "TEXT",
"formula": "text",
"dictionary": {
"name": "text",
"field": "text"
},
"profileDataType": {
"name": "text",
"fields": [
"text"
]
},
"customDataType": {
"name": "text",
"fields": [
"text"
]
},
"customFieldType": "text",
"editable": true,
"searchable": true,
"bulkEdit": true,
"phi": true,
"disable": true,
"injectedSource": true,
"displayType": "CHECKBOX",
"valueType": "STRING",
"meta": {
"label": "text",
"minLength": 1,
"maxLength": 1,
"minValue": "text",
"maxValue": "text",
"fileTypes": [
"text"
],
"maxFiles": 1,
"maxTotalFileSize": 1,
"required": true,
"options": [
{
"label": "text",
"value": null,
"refCdtName": "text"
}
],
"multiple": true,
"patterns": [
"NUMBERS_ONLY"
]
},
"mask": {
"symbol": "*",
"startPosition": 1,
"endPosition": 1
},
"richTextEnabled": true
}
]
},
"eventSubtype": "text",
"sentAt": "2026-01-01T00:00:00.000Z",
"record": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"metaInfo": {
"page": 1,
"pageSize": 1,
"totalElements": 1,
"numberOfElements": 1
}
}NOTE: Available only if Admin Access -> Data Audit is set.
It is a typical API to work with webhook audit
URL Structure: {{url}} / {{tenantName}} / admin /audit-webhook
in our example it would be: https://api.live.welkincloud.io/gh/admin/audit-webhook
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthEntity with which the webhook was called: CDT, ASSESSMENT
Type of performing action
Webhook call status: SENT, DELIVERED, FAILED,
Id of the patient who the action was taken on
Object after performing the action on it
List of headers with which the webhook is configured and was called
List of parameters with which the webhook is configured and was called
Date_time in ISO-8601 format. Filter by sentAt
Date_time in ISO-8601 format. Filter by sentAt
The environment for which you want to execute the request
Paginated webhook delivery audit records
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/admin/audit-webhook HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"sentAt": "2026-01-01T00:00:00.000Z",
"eventEntity": "PATIENT",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"instance": "text",
"status": "SENT",
"statusCode": 1,
"response": "text",
"eventSubtype": "text",
"record": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"metaInfo": {
"page": 1,
"pageSize": 1,
"totalElements": 1,
"numberOfElements": 1
}
}Last updated
Was this helpful?