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

# Participant Left

> The participant left webhook event

A participant left event is sent when a participant leaves a meeting.

## Common fields

**version** `string`

Represents the version of the event. Uses semantic versioning to inform a consumer if the payload has introduced any breaking changes.

**type** `string`

Represents the type of the event described in the payload.

**id** `string`

An identifier representing this specific event. In rare cases a duplicate delivery of this event carries a different `id` than the original, so deduplicate on the event `type` plus the payload's `session_id` rather than on `id`. A `session_id` is unique to a single join, so a second `participant.left` event for the same `session_id` is always a duplicate.

**payload** `object`

An object representing the event, whose fields are described below.

**event\_ts** `number`

Documenting when the webhook itself was sent. This timestamp is different than the time of the event the webhook describes.

## Payload

**joined\_at** `number`

The Unix epoch time in seconds representing when the participant joined.

**duration** `number`

The time in seconds representing how long the participant was in the call.

**session\_id** `string`

The user session ID, or participant id.

**room** `string`

The name of the room.

**user\_id** `string`

The ID of the user. This is the `user_id` you set on their meeting token. If the participant joined without a meeting token, this field is left out of the payload. SIP and PSTN participants get this from their dial-in or dial-out setup instead.

**user\_name** `string | null`

The participant's current name. It starts out as the `user_name` from their meeting token, or the `userName` call property if they joined without one, and if the name is changed later with [`setUserName()`](https://docs.daily.co/reference/daily-js/instance-methods/set-user-name) the webhook sends the new name. `null` when no name is set.

**userData** `unknown`

Any custom JSON data set for this participant, from the `userData` call property at join or from [`setUserData()`](https://docs.daily.co/reference/daily-js/instance-methods/set-user-data) later. It does not come from the meeting token. Left out of the payload when no user data is set.

**owner** `boolean`

A flag determining if this user is considered the owner.

**participantType** `string`

Only sent for SIP and PSTN participants: one of `sip-dial-in`, `sip-dial-out`, `pstn-dial-in`, `pstn-dial-out`, or `unknown`. Regular web participants do not have this field.

**will\_eject\_at** `number | null`

The Unix epoch time in seconds representing when the participant will be ejected. `null` when no ejection is scheduled, which is the usual case.

**permissions** `object`

The permissions object, that describes what the participant is permitted to do during this call.

```json theme={null}
{
  "version": "1.0.0",
  "type": "participant.left",
  "id": "1-ptcpt-left-0c0d2dda-f21d-4cf9-ab56-86bf3c407ffa-1708972302986",
  "payload": {
    "room": "test",
    "user_id": "16168c97-f973-4eae-9642-020fe3fda5db",
    "user_name": "bipol",
    "session_id": "0c0d2dda-f21d-4cf9-ab56-86bf3c407ffa",
    "joined_at": 1708972291.567,
    "will_eject_at": null,
    "owner": false,
    "permissions": {
      "hasPresence": true,
      "canSend": true,
      "canReceive": { "base": true },
      "canAdmin": false
    },
    "duration": 11.419000148773193
  },
  "event_ts": 1708972302.986
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.