# Attendees (/docs/attendees)



An attendee is a person registered for one event. Tickets describe their access;
an attendee can have more than one ticket.

## Register an attendee with a ticket [#register-an-attendee-with-a-ticket]

```ts
const { data: attendee, error } = await eventlayer.attendees.create({
  eventId: "ev_123",
  name: "Maya Chen",
  email: "maya@example.com",
  createTicket: true,
});
if (error) throw error;

console.log(attendee.id, attendee.ticket?.id);
```

The attendee and assigned ticket are created together. If either cannot be created,
neither is saved.

`createTicket: true` uses the event’s only ticket type. When there are multiple
types, choose one with `createTicket: { ticketTypeId: "tt_123" }`.

## Register without a ticket [#register-without-a-ticket]

Omit `createTicket` to create only the attendee. You can [issue or assign a ticket](/docs/tickets) later.

## List attendees [#list-attendees]

```ts
const { data: page, error } = await eventlayer.attendees.list({
  eventId: "ev_123",
});
if (error) throw error;

console.log(page.items);
```

See [pagination](/docs/pagination) for more results, or [connect a registration form](/docs/guides/website-registration)
for a complete flow. Update and delete operations are in the [API reference](/docs/api-reference).
