API Docs
HomeDocsWebsite
  • Home
  • Introduction
    • Authorization
      • Authorize
      • Get a Token
      • Third-Party Login
    • Field Types and Validation
      • Field Types
      • Validation
    • Query Manipulation
      • Constraints
      • Result Control
      • Value Filters
    • Entity Permissions
      • Restricted Scope
  • API reference
    • Infoboard
      • InfoboardChannels
      • InfoboardPosts
      • InfoboardPostSeenUsers
      • InfoboardPostReadUsers
      • InfoboardComments
      • InfoboardDepartmentSettings
    • Manual
      • ManualChapters
      • ManualEntries
      • ManualEntrySeenUsers
    • Calendar
      • Calendars
      • CalendarEvents
    • Filemanager
      • FilemanagerDirectories
      • FilemanagerFiles
    • Files
    • Forms
      • Forms
      • FormFields
      • FormFieldTypes
      • FormFieldValidations
      • FormFieldValidationTypes
      • FormMessages
      • FormMessageFields
    • Layouts
      • Layouts
      • LayoutRows
      • LayoutColumns
      • LayoutColumnLayoutElements
    • Tasks 2.0
      • TaskTemplates
      • TaskFields
      • TaskAssignments
      • TaskExecutions
      • TaskProgressFields
    • Departments
    • Roles
    • Permissions
    • Users
    • UserActivities
    • EntityPermissions
    • Notifications
    • Reactions
    • Icons
    • Folders
    • SharedItems
    • UrlContext
  • Resources
    • Release Notes
      • v2.106.0
      • v2.102.0
Powered by GitBook
On this page
  • Introduction
  • Model Definition
  • Alias
  • Relations
  • Types
  • List
  • Show
  1. API reference

UserActivities

PreviousUsersNextEntityPermissions

Last updated 3 days ago

Introduction

UserActivities track certain activities that the related initiates and record the in which the activity took place.

Each UserActivity has a concrete which defines the kind of activity that is tracked.

An activity is uniquely identified by the combination of the type and the related . The associated reflects the user's most recently active location.

The fields created_at and updated_at indicate the time of the first and most recent occurrence of the activity, respectively.

Activities are only recorded through the use of the intratool application itself and not via the API.

Model Definition

Alias

userActivity

Relations

Key
Relation
Type
Relation Field(s)

user

Belongs to

user_id

department

Belongs to

department_id

Types

  • login - A login activity of the related .

  • logout - A logout activity of the related .

  • general - Any activity of the related .

List

Get a list of all UserActivities.

Definition

GET /api/user-activities

Example Request

$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/user-activities', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);

Example Response

[
  {
    "id": 1,
    "user_id": 3,
    "department_id": 2,
    "type": "login",
    "created_at": "2025-05-15 12:00:00",
    "updated_at": "2025-05-15 12:00:00"
  },
  {
    "id": 2,
    "user_id": 3,
    "department_id": 2,
    "type": "general",
    "created_at": "2025-05-15 12:00:00",
    "updated_at": "2025-05-15 15:00:00"
  },
  {
    "id": 3,
    "user_id": 3,
    "department_id": 2,
    "type": "logout",
    "created_at": "2025-05-15 15:00:00",
    "updated_at": "2025-05-15 15:00:00"
  }
]

Show

Show a single UserActivity by id.

Definition

GET /api/user-activities/{id}

Example Request

$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/user-activities/1', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);

Example Response

{
  "id": 1,
  "user_id": 3,
  "department_id": 2,
  "type": "login",
  "created_at": "2025-05-15 12:00:00",
  "updated_at": "2025-05-15 12:00:00"
}

User
Department
User
Department
User
User
User
type
User
Department