Trainings > Session

Reads all Sessions

Changed on

Reads all Sessions

get/api/2026-10-01/resources/trainings/sessions

Request

  • Base URL
    https://api.factorialhr.com
  • URL
    https://api.factorialhr.com/api/2026-10-01/resources/trainings/sessions
  • Auth
    • OAuth 2
      Authorization code: https://id.factorialhr.com/oauth/authorize
      Token URL: https://id.factorialhr.com/api/oauth/token scopes: trainings
    • or API key in header x-api-key

Query parameters

ids[]string[]

This field is used to filter those sessions whose id match with the given.

[
  "1"
]
training_ids[]string[]

This field is used to filter those sessions whose belong to these trainings.

[
  "1"
]
searchstring

This field is used to filter those sessions whose name include some of the text written.

Example:Session 1
start_afterstring

This field is used to filter those sessions whose starts date is after the given.

Example:2024-01-05T00:00:00.000Z
start_beforestring

This field is used to filter those sessions whose starts date is before the given.

Example:2025-06-05T00:00:00.000Z
access_idstring

access_id associated to the employee, refers to employees/employees endpoint.

employee_idstring

employee_id associated to the employee, refers to employees/employees endpoint.

Example:20
training_class_ids[]string[]

This field is used to filter those sessions whose belong to this training groups.

[
  1
]
nextboolean

When this field is active, it filters and orders those sessions that are closest in time, with the first element being the closest.

modalitystring

The mode the session will be handled, online, in person or hybrid.

Example:inperson
starts_at[]string[]

This field is used to filter the sessions that start at a given date.

[
  "2025-02-04T10:31:48.000Z"
]
activeboolean

When this field is active, filter by only active sessions

Example:true

Response

OK

Example response

{
  "data": [
    {
      "id": "1",
      "name": "Session 1",
      "training_id": "1",
      "description": "First session of group January 2025",
      "starts_at": "2025-02-04T10:31:48.000Z",
      "ends_at": "2025-02-04T10:31:48.000Z",
      "due_date": "2025-02-04",
      "duration": "2.5",
      "modality": "inperson",
      "schedule": "schedule",
      "link": "https://www.google.com",
      "location": "Address Street 1223",
      "session_attendance_ids": [
        "1"
      ],
      "session_feedback_id": "1",
      "status": "pending",
      "parent_id": "1"
    }
  ]
}

Changes