Docs / API

Attendees

An attendee is a person who takes part in an event (gathering in the schema, selected with gatheringId). The Attendee type holds the profile of the person.

This page shows how to read attendees, and how to create, change, and delete them.

Queries and mutations

Field Use
attendeesConnection Lists the attendees of an event, one page at a time.
attendees Deprecated. Use attendeesConnection.
createAttendee Creates an attendee. Returns the new attendee.
updateAttendee Changes an attendee. Returns the changed attendee.
deleteAttendee Deletes an attendee. Returns the deleted attendee.

The queries take gatheringId as an ID!. The mutations take gatheringId and id as an Int!.

List the attendees

attendeesConnection takes gatheringId, filters, first, after, last, and before. Each request needs first or last. The value cannot be more than 1000. Pagination explains the arguments and the cursors.

filters is an AttendeeFilters value. It limits the list by the date of creation and the date of the last change. Scalars lists the four filter fields.

query ListAttendees($gatheringId: ID!) {
  attendeesConnection(gatheringId: $gatheringId, first: 2) {
    totalCount
    pageInfo {
      hasNextPage
      endCursor
    }
    edges {
      cursor
      node {
        id
        firstName
        lastName
        email
        organization
        jobTitle
        participantTypes {
          name
        }
      }
    }
  }
}

The response shows the first page.

{
  "data": {
    "attendeesConnection": {
      "totalCount": 120,
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "GHzwn5SRWzEwMl0="
      },
      "edges": [
        {
          "cursor": "DaTwn5SRWzEwMV0=",
          "node": {
            "id": "101",
            "firstName": "Morgan",
            "lastName": "Hayes",
            "email": "morgan@example.com",
            "organization": "Example Corp",
            "jobTitle": "Engineer",
            "participantTypes": [{ "name": "Attendee" }]
          }
        },
        {
          "cursor": "GHzwn5SRWzEwMl0=",
          "node": {
            "id": "102",
            "firstName": "Jordan",
            "lastName": "Patel",
            "email": "jordan@example.com",
            "organization": "Example Corp",
            "jobTitle": "Designer",
            "participantTypes": []
          }
        }
      ]
    }
  }
}

Read the sessions of an attendee

An attendee has three lists of agenda sessions. Each list holds AgendaSession items.

Field Content
bookmarkedAgendaSessions The sessions that the attendee selected for the personal schedule.
assignedAgendaSessions The sessions that the event planner or the registration system assigned to the personal schedule.
checkedInAgendaSessions The sessions that the attendee checked into.
query AttendeeSessions($gatheringId: ID!) {
  attendeesConnection(gatheringId: $gatheringId, first: 1) {
    edges {
      node {
        id
        assignedAgendaSessions {
          id
          name
          startsAt
        }
      }
    }
  }
}
{
  "data": {
    "attendeesConnection": {
      "edges": [
        {
          "node": {
            "id": "101",
            "assignedAgendaSessions": [
              { "id": "501", "name": "Opening keynote", "startsAt": "2026-06-15T14:00:00Z" }
            ]
          }
        }
      ]
    }
  }
}

Create an attendee

createAttendee takes gatheringId and an AttendeeCreateParams value in attendee. Send attendee in each request. The fields firstName and lastName are required.

mutation CreateAttendee($gatheringId: Int!) {
  createAttendee(
    gatheringId: $gatheringId
    attendee: {
      firstName: "Riley"
      lastName: "Nguyen"
      email: "riley@example.com"
      loginEmail: "riley@example.com"
      organization: "Example Corp"
      jobTitle: "Product manager"
      externalId: "CRM-4471"
      participantTypes: ["Attendee"]
      assignedAgendaSessionIds: ["501"]
    }
  ) {
    id
    firstName
    lastName
    email
    externalId
    participantTypes {
      name
    }
  }
}
{
  "data": {
    "createAttendee": {
      "id": "103",
      "firstName": "Riley",
      "lastName": "Nguyen",
      "email": "riley@example.com",
      "externalId": "CRM-4471",
      "participantTypes": [{ "name": "Attendee" }]
    }
  }
}

A create does not always make a new attendee. If the event has an attendee with the same firstName and lastName, Touchpoint changes that attendee. The exception is two attendees that both have an externalId and the two values are different. Then Touchpoint makes a new attendee.

To set a photo, send photoUrl with the address of a .jpg or .png file. You can also send photo. See Scalars.

Change an attendee

updateAttendee takes gatheringId, the id of the attendee, and an AttendeeUpdateParams value in attendee.

Send lastName in each update. Touchpoint rejects an update that does not have it.

mutation UpdateAttendee($gatheringId: Int!, $id: Int!) {
  updateAttendee(
    gatheringId: $gatheringId
    id: $id
    attendee: {
      lastName: "Nguyen"
      jobTitle: "Director of product"
      assignedAgendaSessionIds: ["501", "502"]
    }
  ) {
    id
    lastName
    jobTitle
    assignedAgendaSessions {
      id
      name
    }
  }
}
{
  "data": {
    "updateAttendee": {
      "id": "103",
      "lastName": "Nguyen",
      "jobTitle": "Director of product",
      "assignedAgendaSessions": [
        { "id": "501", "name": "Opening keynote" },
        { "id": "502", "name": "Product roadmap" }
      ]
    }
  }
}

An update changes only the fields that you send. These rules apply to some fields.

  • assignedAgendaSessionIds replaces the old list of assigned sessions. Private sessions of the attendee that have no external source stay in the list.
  • A list in participantTypes replaces the old list of participant types. An empty list changes nothing.
  • An empty badgeCode changes nothing. You cannot clear a badge code.

Delete an attendee

deleteAttendee takes gatheringId and the id of the attendee. It returns the attendee that it deleted.

mutation DeleteAttendee($gatheringId: Int!, $id: Int!) {
  deleteAttendee(gatheringId: $gatheringId, id: $id) {
    id
    firstName
    lastName
  }
}
{
  "data": {
    "deleteAttendee": {
      "id": "103",
      "firstName": "Riley",
      "lastName": "Nguyen"
    }
  }
}