Get a live session.

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Returns one live workshop or live lesson with its occurrences (talks), trainers and guest presenters, categories and settings. Use talks[].talkId in the occurrence APIs.

Endpoint

get https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/sessions/{sessionId}.json

OAuth Scope

TrainerCentral.sessionapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

sessionIdstring(Required)

ID of the live session (sessionId): a live workshop or a live lesson.

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/sessions/{sessionId}.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

sessionJSON Object

The live session.

Hide Sub-Attributes
sessionIdstring

ID of the session (live workshop or course lesson).

namestring

Name of the session.

uniqueKeystring

URL slug of the session.

timezonestring

Time zone of the schedule, for example Asia/Kolkata.

scheduleTypestring

Schedule type. Allowed: 0=One-time, 1=Recurring.

descriptionstring

Description of the session. Supports rich text.

attendeeLimitstring

Maximum number of attendees.

joinURLstring

URL for attendees to join.

scheduledTimestring

Start time in epoch milliseconds.

scheduledEndTimestring

End time in epoch milliseconds.

recurringTypestring

Recurring pattern. Allowed: 0=Not recurring, 1=Daily, 2=Weekly, 3=Monthly.

deliveryModestring

Delivery mode. Allowed: 3=Live session, 4=On-demand, 7=Assignment.

orgIdstring

ID of the academy (orgId).

orgNamestring

Name of the academy.

scheduledBystring

User ID of the trainer who scheduled the session.

createdBystring

User ID of the creator.

createdTimestring

Created time in epoch milliseconds.

idstring

Same as sessionId.

registrationTypestring

Registration model. Allowed: 0=One registration for all occurrences, 1=Registration per occurrence.

publishStatusstring

Allowed: 0=Draft, 1=Published.

kindstring

Allowed: 0=Default, 1=Featured.

sessionIndexstring

Position of the lesson in its chapter (0-based).

sessionCategoriesJSON Array

Categories of the session.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
categoryNamestring

Name of the category.

categoryIdstring

ID of the category.

sessionMembersJSON Array

Trainers and guest presenters; role 1 is the primary trainer.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
sessionMemberIdstring

ID of the session member (registration).

emailIdstring

Email address of the member.

namestring

Name of the member.

userIdstring

User ID of the member.

sessionIdstring

ID of the session.

orgIdstring

ID of the academy (orgId).

rolestring

Role in the session. Allowed: 1=Trainer, 2=Co-trainer, 3=Learner, 4=Guest presenter.

idstring

Same as sessionMemberId.

statusstring

Registration status. Allowed: 1=Registered, 0=Invited, -1=Waiting for approval, -2=Denied, -3=Cancelled by learner, -4=Invitation cancelled.

registerstring

true when the learner has registered.

sourcestring

How the member was added. Allowed: 1=Invited, 2=Self registration, 3=CRM, 4=Zapier invite, 5=Zapier registration, 6=Zoho Flow invite, 7=Zoho Flow registration.

paymentStatusstring

Allowed: 0=Yet to pay, 1=Paid, 2=Failed, 3=Cancelled, 4=Refunded, 5=Unpaid (inactive), 6=Unpaid, -2=Pending.

orgMemberIdstring

Academy member ID.

createdTimestring

Added time in epoch milliseconds.

lastUpdatedTimestring

Last updated time in epoch milliseconds.

mailStatusstring

Invite mail status. Allowed: 0=Not sent, 1=Sent, 2=Failed.

talksJSON Array

Occurrences (talkId) of the session.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
talkIdstring

ID of the occurrence (talkId).

namestring

Name of the occurrence.

sessionIdstring

ID of the live session.

orgIdstring

ID of the academy (orgId).

statusstring

Status of the occurrence. Allowed: 0=Yet to start, 1=Scheduled, 2=Projected, 3=Started, 4=Suspended, 5=Completed, 6=Orphaned, 7=Cancelled.

registeredCountstring

Number of registered learners.

scheduledTimestring

Start time in epoch milliseconds.

scheduledEndTimestring

End time in epoch milliseconds.

deliveryModestring

Delivery mode. Allowed: 3=Live session, 4=On-demand, 7=Assignment.

idstring

Same as talkId.

ownerstring

User ID of the trainer who owns the occurrence.

runningTalksarray

Occurrences that are live now. Get Live Session Details only.

talkSettingsarray

Settings of the occurrences. Get Live Session Details only.

errorJSON Object

Error details.

Hide Sub-Attributes
codestring

Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.

codeStrstring

Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.

messagestring

Error message.

Possible Error Codes

HTTP CodeError CodeDescription
500ST_79

INVALID_SESSION - The sessionId does not match a session in this academy. Pass a valid sessionId. Do not retry unchanged.

ST_401

SESSION_DELETED - The session was deleted. Use a session that is not deleted. Do not retry unchanged.

ST_102

UNAUTHORISED_ACCESS - The user is not an academy owner or admin, a trainer of the session, or a course admin or trainer. Call with one of these roles; do not retry unchanged.

ST_80

SESSION_DATA_FETCH_FAILED - The session details could not be built. Retry later; if it keeps failing, contact support with the sessionId.

Response Example

A one-time live workshop.

200
200
400
500
Copied!
  {
    "session": {
      "sessionId": "3000000000050",
      "id": "3000000000050",
      "name": "Python Live Q&A",
      "deliveryMode": "3",
      "scheduleType": "0",
      "registrationType": "0",
      "scheduledTime": "1800419400000",
      "scheduledEndTime": "1800423000000",
      "timezone": "Asia/Kolkata",
      "uniqueKey": "python-live-q-a",
      "publishStatus": "0",
      "kind": "0",
      "orgId": "51517414",
      "scheduledBy": "51456901",
      "createdTime": "1782727568966",
      "description": "<p>Bring your Python questions.</p>"
    },
    "sessionMembers": [
      {
        "sessionMemberId": "3000000000060",
        "id": "3000000000060",
        "sessionId": "3000000000050",
        "userId": "51456901",
        "name": "Priya Raman",
        "emailId": "priya.raman@example.com",
        "role": "1",
        "status": "1",
        "source": "1",
        "orgId": "51517414"
      }
    ],
    "talks": [
      {
        "talkId": "3000000000052",
        "id": "3000000000052",
        "sessionId": "3000000000050",
        "name": "Python Live Q&A",
        "status": "1",
        "deliveryMode": "3",
        "scheduledTime": "1800419400000",
        "scheduledEndTime": "1800423000000",
        "orgId": "51517414",
        "owner": "51456901"
      }
    ],
    "sessionCategories": [],
    "runningTalks": [],
    "talkSettings": []
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full