List the invitees of 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 the people invited to a live workshop or live lesson, filtered by invitation mail activity. Send type=1, mailTypeId=1 and actionType; paginate with si and limit.

Endpoint

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

OAuth Scope

TrainerCentral.sessionapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Query Parameters

sessionIdlong(Optional)

Not needed; the path sessionId is used.

typeinteger(Optional)

Listing type. Send 1 (Invitees).

Example
1
searchquerystring(Optional)

Text to search in names and email addresses.

siinteger(Optional)

Start index for pagination. Default 0.

Example
0
primaryFilterinteger(Optional)

Ignored for this listing.

paymentFilterinteger(Optional)

Payment filter. Allowed: 1=All, 2=Paid, 3=Refunded, 4=Unpaid. Default 1.

secondaryFilterinteger(Optional)

Accepted but ignored.

limitinteger(Optional)

Maximum invitees to return. Default 10.

Example
20
talkIdlong(Optional)

Ignored for this listing.

mailTypeIdstring(Optional)

Mail type. Send 1 (Invite mail); other values are reminder mails and need groupId.

Example
1
actionTypestring(Optional)

Required for this listing. Invitation mail filter. Allowed: all=All invitees, sent=Mail sent, opened=Mail opened, clicked=Link clicked; other values list bounced mails.

Example
all
groupIdlong(Optional)

Reminder mail group ID. Required when mailTypeId is not 1.

includestring(Optional)

Pass defaultRegistrationFields to return registration form answers in fieldAnswers.

Example
defaultRegistrationFields

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://trainercentral.zoho.com/tc/api/v1/trainer/session/{sessionId}/sessionMembers.json?sessionId=SOME_INTEGER_VALUE&type=1&searchquery=SOME_STRING_VALUE&si=0&primaryFilter=SOME_INTEGER_VALUE&paymentFilter=SOME_INTEGER_VALUE&secondaryFilter=SOME_INTEGER_VALUE&limit=20&talkId=SOME_INTEGER_VALUE&mailTypeId=1&actionType=all&groupId=SOME_INTEGER_VALUE&include=defaultRegistrationFields' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

sessionMembersJSON Array

Registrants or invitees of the session.

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.

metaJSON Object

Count of matching members. Registrants listing only.

Hide Sub-Attributes
totalCountinteger

Total number of matching members.

ticketPaymentsarray

Ticket payments of the listed registrants of a paid session.

talkAudiencesarray

Attendance records. Returned when talkId of a completed occurrence is sent.

fieldAnswersarray

Registration form answers. Returned when include=defaultRegistrationFields is sent.

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.

Response Example

Invitees with actionType=all.

200
200
400
500
Copied!
  {
    "sessionMembers": [
      {
        "sessionMemberId": "3000000000071",
        "id": "3000000000071",
        "sessionId": "3000000000050",
        "name": "Sam Lee",
        "emailId": "sam.lee@example.com",
        "role": "3",
        "status": "0",
        "register": "false",
        "source": "1",
        "orgId": "51517414"
      }
    ]
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration1 minute
Threshold20

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.