---
title: "Get Agent Log"
method: GET
path: "/domains/{domain}/statistics/agentLog"
tags: ["Call Center/Statistics"]
---

# Get Agent Log

`GET /domains/{domain}/statistics/agentLog`

## Request

- Base URL: `https://ns-api.com/ns-api/v2`
- URL: `https://ns-api.com/ns-api/v2/domains/{domain}/statistics/agentLog`
- Auth: HTTP bearer

## Path parameters

- `domain` string, required: This is the main organization name. This is used to link resource to its group/tenant/organization/enterprise. Then using in path for GET you can set to "~" to use the domain name linked to your token/key instead of the domain name itself when reading for your own domain.

## Query parameters

- `datetime-start` string, rfc3339, required: This is the start of the time window for a given query. The format is based on RFC3339 but also will support additonal params for use in providing a timezone which will allow the API to give the correct range for a given set of data and will be formated in respone using the same format. Supported formats include. * 2023-11-27 13:00:00 * 2023-11-27T13:00:00Z * 2023-11-27T13:00:00-08:00 * 2023-11-27T13:00:00-08:00[US/Pacific] * 2023-11-27T13:00:00Z[America/Phoenix]
- `datetime-end` string, rfc3339, required: This is the end of the time window for a given query. The format is based on RFC3339 but also will support additonal params for use in providing a timezone which will allow the API to give the correct range for a given set of data and will be formated in respone using the same format. Allowed values same as datetime-start.
- `fields` string
- `remove_zeros` string
- `department` string

## Response `200`

- object
  - `status-login-duration-minutes` number: This is the total time the call center agent's status was set to "online". Starting in v43.2, an agent has to manually change their status from offline to online when they begin their shift; logging into the portal no longer affects the LI stat.
  - `status-available-duration-minutes` number: This is the total time the call center agent was available for calls. This includes time logged in / online. It excludes statuses of unavailable such as break, lunch, meeting, web, and other.
  - `status-unavailable-duration-minutes` number: This is the total time the call center agent was not available for calls. Includes time agent has the offline statuses, such as offline, break, lunch, meeting, web, and other. Excludes online / available.
  - `status-lunch-duration-minutes` number: This is the total time the call center agent's status was set to "lunch".
  - `status-break-duration-minutes` number: This is the total time the call center agent's status was set to "break".
  - `status-meeting-duration-minutes` number: This is the total time the call center agent's status was set to "meeting".
  - `status-other-duration-minutes` number: This is the total time the call center agent's status is not set to available, break, lunch, meeting, or web. Excludes unavailable status.
  - `status-web-duration-minutes` number: This is the total time the call center agent's status was set to "web".
  - `status-custom1-duration-minutes` number: This is the total time the call center agent's status was set to "CUST1".
  - `status-custom2-duration-minutes` number: This is the total time the call center agent's status was set to "CUST2".
  - `status-custom3-duration-minutes` number: This is the total time the call center agent's status was set to "CUST3".
  - `status-custom4-duration-minutes` number: This is the total time the call center agent's status was set to "CUST4".
  - `status-custom5-duration-minutes` number: This is the total time the call center agent's status was set to "CUST5".
  - `status-custom6-duration-minutes` number: This is the total time the call center agent's status was set to "CUST6".
  - `status-custom7-duration-minutes` number: This is the total time the call center agent's status was set to "CUST7".
  - `status-custom8-duration-minutes` number: This is the total time the call center agent's status was set to "CUST8".

## Other responses

- `400`
- `401`
- `404`

## Changes

- **2026-11-03** `bce16087d479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/changes/domains/:domain/statistics/agentLog/get.md)

---

[API](https://skmtc.dev/ns-api/apis/netsapiens-api-v2.md) - [All operations](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/revisions/bce16087d479?raw)
