List the registrants 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 registrants of a live workshop or live lesson with registration and payment status. Send type=2; filter with primaryFilter and paymentFilter, and 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. Allowed: 2=Registrants, 1=Invitees. Default 2.

Example
2
searchquerystring(Optional)

Text to search in names and email addresses.

Example
jane
siinteger(Optional)

Start index for pagination. Default 0.

Example
0
primaryFilterinteger(Optional)

Registrant filter. Allowed: 1=All, 3=Allowed, 4=Denied, 5=Not attended, 6=Mail stats, 7=Waiting for approval, 8=Paid, 9=Unpaid. Default 1.

Example
3
paymentFilterinteger(Optional)

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

secondaryFilterinteger(Optional)

Accepted but ignored.

limitinteger(Optional)

Maximum registrants to return. Default 10.

Example
10
talkIdlong(Optional)

Occurrence ID (talkId). Lists the registrants of that occurrence when registration is per occurrence.

Example
3000000000052
mailTypeIdstring(Optional)

Mail type, used only with primaryFilter=6. Allowed: 1=Invite mail; other values are reminder mails and need groupId.

actionTypestring(Optional)

With primaryFilter=1, minimal returns all registrants without pagination. With primaryFilter=6, mail event filter: all, sent, opened, clicked; other values list bounced mails.

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=2&searchquery=jane&si=0&primaryFilter=3&paymentFilter=SOME_INTEGER_VALUE&secondaryFilter=SOME_INTEGER_VALUE&limit=10&talkId=3000000000052&mailTypeId=SOME_STRING_VALUE&actionType=SOME_STRING_VALUE&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

Registrants filtered by primaryFilter=3.

200
200
400
500
Copied!
  {
    "sessionMembers": [
      {
        "sessionMemberId": "3000000000070",
        "id": "3000000000070",
        "sessionId": "3000000000050",
        "userId": "51456950",
        "name": "Jane Cooper",
        "emailId": "jane.cooper@example.com",
        "role": "3",
        "status": "1",
        "register": "true",
        "source": "2",
        "paymentStatus": "0",
        "orgId": "51517414",
        "createdTime": "1782727600000"
      }
    ],
    "ticketPayments": [],
    "meta": {
      "totalCount": "1"
    }
  }
                
  {
    "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.