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

# Call Logs

> CometChat Calling SDK v5 - Call Logs for JavaScript

Retrieve call history and details using the CometChat REST API. Call logs provide information about past calls including participants, duration, and recording URLs.

## Retrieving Call Logs

Call logs are accessed through the CometChat REST API rather than the client SDK. Use the following endpoints:

### List Calls

Retrieve a list of calls for your app:

```
GET https://{{appId}}.api-{{region}}.cometchat.io/v3/calls
```

See the [List Calls API](/calls/api/list-calls) documentation for full details on parameters and response format.

### Get Call Details

Retrieve details for a specific call:

```
GET https://{{appId}}.api-{{region}}.cometchat.io/v3/calls/{{sessionId}}
```

See the [Get Call API](/calls/api/get-call) documentation for full details.

## Call Log Properties

| Property       | Type   | Description                                        |
| -------------- | ------ | -------------------------------------------------- |
| `sessionId`    | String | Unique identifier for the call session             |
| `initiator`    | Object | User who initiated the call                        |
| `receiver`     | Object | User or group that received the call               |
| `type`         | String | Call type: `audio` or `video`                      |
| `status`       | String | Call status: `initiated`, `ongoing`, `ended`, etc. |
| `startedAt`    | Number | Unix timestamp when the call started               |
| `endedAt`      | Number | Unix timestamp when the call ended                 |
| `duration`     | Number | Call duration in seconds                           |
| `participants` | Array  | List of participants who joined                    |
| `recordingUrl` | String | URL to the call recording (if recorded)            |

## Related Documentation

* [List Calls API](/calls/api/list-calls)
* [Get Call API](/calls/api/get-call)
