---
title: "API: listSessions"
slug: "api-listsessions"
updated: 2026-10-29T16:38:17Z
published: 2026-10-29T16:38:17Z
canonical: "support.smarteru.com/api-listsessions"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://support.smarteru.com/llms.txt
> Use this file to discover all available pages before exploring further.
# API: listSessions
- SmarterU requires all API calls to POST to HTTPS. Any POST to HTTP will result in the SU:01 error (i.e., No POST data detected.).
- If you are viewing the help in a language other than English, please change your language to English before copying and pasting any code. All API attributes and functions are in English.
- Tags are required unless specified.
## **Description**
The listSessions method retrieves [sessions](/v1/docs/sessions) for an [instructor-led course](/v1/docs/courses-instructor-led).
## **Who Has Access**
[Administrators and owners](/v1/docs/user-profile-information#access-level) have access to the listSessions method.
## **API Call XML Package**
```plaintext
listSessions
```
## **LearningModule Tag Group**
The LearningModule tag group is a container for the courses.
```plaintext
```
The LearningModule tag may contain the following.
### **LearningModuleID**
The instructor-led course's system-generated identifier. This is the LearningModuleID returned by the [listLearningModules](/v1/docs/api-listlearningmodules) method.
## InternalInstructors Tag Group
The InternalInstructors tag group is a container for the [session’s internal instructors](/v1/docs/instructor-led-session-session-details#instructor-type).
```plaintext
```
The InternalInstructors tag contains the following.
| Tag | Description |
| --- | --- |
| **MatchType** | Indicates how the filter will be applied: - *Exact* - The email address or employee ID must be an exact match to the value provided. - *Contains* - The email address or employee ID must contain the value provided. |
Each internal instructor is contained in an Instructor tag and may contain the following.
| Tag | Description |
| --- | --- |
| **Email** | The internal instructor’s email address. |
| **EmployeeID** | The internal instructor’s employee ID. |
## **API Response XML Package**
The [API response XML package](/v1/docs/api-response-xml-package) will always include a Result, Info, and [Errors](/v1/docs/api-listsessions#error-codes) tag.
```plaintext
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
![CDATA[]]
```
The Sessions tag is a container for the sessions returned by the listSessions method. Each session is contained in a Session tag and may contain the following.
### **CourseSessionID**
The session's system-generated identifier.
### **Status**
The session's status (i.e., Active, Finalized, or Removed).
### **Type**
The [session type](/v1/docs/instructor-led-session-main#session-type) (i.e., Single or Multi).
### **GradeType**
The [session's grade type](/v1/docs/instructor-led-session-main#grade-type) (i.e., None, Letter Grade, PassFail, or Percentage).
### **Dates**
The Dates tag is a container for the session dates. Each session date is contained in a Date tag and may contain following.
| Tag | Description |
| --- | --- |
| **StartDate** | The [session's start date](/v1/docs/instructor-led-session-session-details#start-date) in UTC. |
| **EndDate** | The [session's end date](/v1/docs/instructor-led-session-session-details#end-date) in UTC. |
| **StartDateConverted** | The session's start date converted to the API user's timezone. |
| **EndDateConverted** | The session's end date converted to the API user's timezone. |
| **URL** | The [session's URL](/v1/docs/instructor-led-session-session-details#url). |
| **WebinarProvider** | The [session's webinar provider](/v1/docs/instructor-led-session-session-details#webinar-provider). |
| **Other** | The value in the [session's Other setting](/v1/docs/instructor-led-session-session-details#other). |
| **Venue** | The [venue](/v1/docs/instructor-led-session-session-details#venue) where the session will take place. |
| **Room** | The [room](/v1/docs/instructor-led-session-session-details#room) where the session will take place. |
| **Location** | The [room's location](/v1/docs/settings-rooms#location). |
| **Capacity** | The [maximum number of learners](/v1/docs/instructor-led-session-session-details#capacity) that can be enrolled in the session. |
### Example API Response XML Package
Below is an example of an API response XML package.
```plaintext
50
50
50
50
```
## **Error Codes**
| Error Code | Message |
| --- | --- |
| LS:01 | The LearningModuleID provided is not valid. |
| LS:02 | The required permissions are not met to call the listSessions method. |
| LS:03 | An Internal Instructor requires an Email or an Employee ID. |
| LS:04 | The Internal Instructor was not found. |
| LS:05 | The MatchType provided is not valid. Valid values are EXACT or CONTAINS. |
## Related
- [API: listLearningModules](/api-listlearningmodules.md)
- [Sessions](/sessions.md)
- [Viewing Sessions](/viewing-sessions.md)