> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Event Ticket

> Sends a ticket confirmation email to the authenticated customer for a specific event attendance.

# Send Event Ticket

Triggers a ticket confirmation email to the authenticated customer for the specified attendance record. Used on the My Events page to allow customers to resend their ticket if it was lost or never received.

## Authentication

Requires a valid customer bearer token. The attendance record must belong to the authenticated customer.

## Path Parameters

<ParamField path="id" type="number" required>
  The integer ID of the attendance record. Obtained as `Records[].Id` from `GET /api/public/events/my`.
</ParamField>

## Request Body

No request body required.

## Response

Returns an empty `200 OK` on success.

## Examples

### Send a ticket email

```http theme={null}
POST /api/public/events/my/9021/sendTicket
Authorization: Bearer {token}
```

```
HTTP/1.1 200 OK
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'

await httpClient.post(endpoints.events.sendTicket(9021))
```

## Usage in Portal

| Context                             | Source file                                          |
| ----------------------------------- | ---------------------------------------------------- |
| My Events page (`/activity/events`) | `src/views/user/activity/events/MyEventsSection.tsx` |

## Error Responses

<ResponseField name="401 Unauthorized" type="error">
  The customer is not authenticated or the session has expired.
</ResponseField>

<ResponseField name="404 Not Found" type="error">
  No attendance record with the specified ID exists for the authenticated customer.
</ResponseField>

## Related Endpoints

| Method   | Endpoint                     | Description                                     |
| -------- | ---------------------------- | ----------------------------------------------- |
| `GET`    | `/api/public/events/my`      | List all tickets for the authenticated customer |
| `DELETE` | `/api/public/events/my/{id}` | Cancel a ticket                                 |
| `GET`    | `/api/public/events/{id}`    | Full detail for a specific event                |
