Read the audit trail of a case
GET
/cases/{caseId}/events
const url = 'https://api-sandbox.trustink.io/cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-sandbox.trustink.io/cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events \ --header 'Authorization: Bearer <token>'Who did what to the case, when and from where, newest first. See Audit trail.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”caseId
required
The case id POST /cases answered.
string format: uuid
Query Parameters
Section titled “Query Parameters”limit
Events per page, 1 to 100 (default 100).
string
cursor
The nextCursor of the previous page.
string
Responses
Section titled “ Responses ”A page of events; nextCursor is set while older ones remain.
Media typeapplication/json
object
events
required
Array<object>
object
eventId
required
string
type
required
string
occurredAt
required
string
actor
required
string
participantId
string
ip
string
userAgent
string
documentSha256
string
data
required
object
key
additional properties
nextCursor
string
Example
{ "events": [ { "type": "case.created", "actor": "tenant" } ]}The limit or the cursor is not valid. code: INVALID_LIMIT, INVALID_CURSOR.
Media typeapplication/json
object
code
string
message
required
string
Examplegenerated
{ "code": "example", "message": "example"}No or an invalid Cognito ID token (API Gateway answers {message} only).
Media typeapplication/json
object
code
string
message
required
string
Examplegenerated
{ "code": "example", "message": "example"}The tenant has no such case.
Media typetext/plain
string
Example
Case not founddefault
Section titled “default”Something failed on the platform, or the request timed out (code TIMEOUT, 503); try again.
Media typeapplication/json
object
code
string
message
required
string
Examplegenerated
{ "code": "example", "message": "example"}