Event attendance API

Fetch every registration, check-in, guest, and registration answer for an event through the Heylo API.

The API is included on the Business plan. See plans.

An attendance object is one person's registration for an event: their answer, their registration type, their guests, their registration answers, and whether they checked in. Each attendance object is keyed by the person's Heylo user ID, the same ID that role member requests use. Attendance is read only: registrations and check-ins are made in Heylo.

Operations

  • Fetch event attendance: POST https://api.heylo.com/apiv1-fetch with type set to "eventAttendance"

Attendance object

A field with no value is left out.

Attributes

  • checkedIn (boolean): true when the person was checked in.
  • checkedInByUserId (string): the Heylo user ID of the person who checked them in.
  • checkInsToDate (number): the person's count of check-ins in the group as of this event.
  • donation (object): the donation the person made with their registration.
    • amountInCents (number): the amount donated, in the smallest unit of the currency.
    • amountInCentsRefunded (number): the amount refunded.
    • currency (string): the three-letter currency code, in lowercase.
    • receiptUrl (string): the URL of the receipt.
    • timestampPayment (number): when the donation was paid, in Unix milliseconds.
  • fullName (string): the person's name.
  • going (string): the person's answer. One of "yes" (registered), "maybe" (interested), "no" (not going), "canceled" (registration canceled), or "invited" (invited, with no answer yet).
  • guests (object): the guests the person is bringing, keyed by guest ID.
    • checkedIn (boolean): true when the guest was checked in.
    • checkedInByUserId (string): the Heylo user ID of the person who checked the guest in.
    • fullName (string): the guest's name.
    • id (string): the guest ID.
    • order (number): the guest's position in the list.
    • profilePhotoUrl (string): the URL of the guest's profile photo.
    • userId (string): the guest's Heylo user ID, when the guest is on Heylo.
  • hosting (boolean): true when the person is a host of the event.
  • invitedByUserId (string): the Heylo user ID of the member who invited the person.
  • message (string): the person's answer to the event's first registration question.
  • previousRegistrationTypeId (string): the registration type the person held before they changed their answer to interested or not going.
  • profilePhotoUrl (string): the URL of the person's profile photo.
  • registrationResponses (object): the person's registration answers, keyed by registration question ID. The questions are in registrationQuestions on the event object.
  • registrationTypeId (string): the ID of the registration type the person registered with. A person who answered interested or not going has "interested" or "not-going".
  • team (object): the person's team, on a team registration type.
    • members (array): the team's members. Each has a fullName, an id, a profilePhotoUrl, and a userId when the member is on Heylo.
    • name (string): the team name.
  • timestampLastModified (number): when the person registered, in Unix milliseconds. On an event with a waitlist, this time sets their position.
json
{
  "checkedIn": true,
  "checkedInByUserId": "HEYLO_USER_ID",
  "fullName": "Dana Reyes",
  "going": "yes",
  "guests": {
    "HEYLO_GUEST_ID": {"fullName": "Sam Reyes", "id": "HEYLO_GUEST_ID", "order": 1}
  },
  "registrationResponses": {"HEYLO_REGISTRATION_QUESTION_ID": "Medium"},
  "registrationTypeId": "HEYLO_REGISTRATION_TYPE_ID",
  "timestampLastModified": 1798600000000
}

Fetch event attendance

Returns every attendance object for one event.

POST https://api.heylo.com/apiv1-fetch

Parameters

  • communityId (string, required): the ID of the group that created the event, which is the event's communityId.
  • eventId (string, required): the event ID, from a fetch events response.
  • type (string, required): "eventAttendance".

For an event another group shared with yours, send that group's ID as communityId. Your key must also cover that group.

Returns

  • attendance (object): the event's attendance objects, keyed by Heylo user ID. An event with no registrations returns an empty object.
bash
curl -X POST https://api.heylo.com/apiv1-fetch \
  -H "Authorization: Bearer HEYLO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "communityId": "HEYLO_GROUP_ID",
    "eventId": "HEYLO_EVENT_ID",
    "type": "eventAttendance"
  }'
json
{
  "attendance": {
    "HEYLO_USER_ID": {
      "checkedIn": true,
      "fullName": "Dana Reyes",
      "going": "yes",
      "registrationTypeId": "HEYLO_REGISTRATION_TYPE_ID",
      "timestampLastModified": 1798600000000
    }
  }
}

The response holds the whole event in one page. The request returns a 404 when the event does not exist, and a 403 when communityId is not the group that created the event.

Waitlisted members

On an event with a waitlist, members on the waitlist also have going set to "yes", so "yes" is not a confirmed spot. The time in timestampLastModified sets each member's place in line.

Related articles

Still need help?

Contact us and we typically reply within one business day. Or message us in Heylo Support chat.