Skip to main content
Returns a chronological log of user activity events recorded by the system. Activity logs capture actions such as logins, catalog edits, and feedback submissions, and are used by administrators to audit platform usage. Endpoint: FEEDBACK service Action: getActivityLogs
This action is intended for administrators (Jefe role) only. Access should be restricted at the UI level.

Request

No payload required.
action
string
required
Must be "getActivityLogs".

Response

status
string
required
Always "success" on success.
data
array
Array of activity log entry objects, ordered by timestamp.

Example

const FEEDBACK_ENDPOINT = 'https://script.google.com/macros/s/AKfycbwHTr8MSFuNio8rky8tflcErlRlAb1YSH2jmszZp77SM5e_-SVMO2pBU1UmeGOH1Aig/exec';

const response = await fetch(FEEDBACK_ENDPOINT, {
  method: 'POST',
  headers: { 'Content-Type': 'text/plain' },
  body: JSON.stringify({ action: 'getActivityLogs', payload: {} }),
  redirect: 'follow'
});

const result = await response.json();
if (result.status === 'success') {
  console.log(`${result.data.length} activity log entries`);

  // Show the 10 most recent events
  const recent = result.data.slice(-10).reverse();
  recent.forEach(entry => {
    console.log(`[${entry.timestamp}] ${entry.nombreUsuario}${entry.tipoActividad}: ${entry.detalle}`);
  });
}

Build docs developers (and LLMs) love