activityLog
Requires permission audit:activity_log:read.
Returns one activity log entry: who did what to which record, when and from which source. Fails if the entry does not exist. Requires permission to read the activity log.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query ActivityLog($id: String!) {
activityLog(id: $id) {
id
actorName
createdAt
action
actorEmail
actorId
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query ActivityLog($id: String!) {\n activityLog(id: $id) {\n id\n actorName\n createdAt\n action\n actorEmail\n actorId\n }\n}",
"variables": {
"id": "string"
}
}
EOF
Variables:
{
"id": "string"
}
Response:
{
"data": {
"activityLog": {
"id": "string",
"actorName": "string",
"createdAt": "2025-01-15T00:00:00Z",
"action": "string",
"actorEmail": "string",
"actorId": "string"
}
}
}
activityLog(
id: String!
): ActivityLogEntry!
Arguments
activityLog.id ● String! non-null scalar
The ID of the activity log entry.
Type
ActivityLogEntry object
One event in the activity log.