---
title: "A list of shift changes for a team"
method: GET
path: "/api-reporting/v1/team/{team}/oncall/log"
tags: ["Reporting"]
---

# A list of shift changes for a team

`GET /api-reporting/v1/team/{team}/oncall/log`

Returns a log of user shift changes for the specified team. This is historical
data, and may be up to 15 minutes behind real-time log data.

This API may be called a maximum of 2 times per second.

## Path parameters

- `team` string, required

## Query parameters

- `start` string, date-time
- `end` string, date-time
- `userName` string

## Headers

- `X-VO-Api-Id` string, required
- `X-VO-Api-Key` string, required

## Response `200`

The result of the take request

- OnCallLog
  - `teamSlug` string
  - `start` string, date-time
  - `end` string, date-time
  - `userLogs` UserLog[]
    - `userId` string
    - `total` object
      - `hours` number
      - `minutes` number
    - `adjustedTotal` object
      - `hours` number
      - `minutes` number
    - `log` OnCallInterval[]
      - `on` string
      - `off` string
      - `duration` object
        - `hours` number
        - `minutes` number
      - `escalationPolicy` EscalationPolicySummary — A summary containing minimal, high-level information about an escalation policy.
        - `name` string, required — The name of this escalation policy
        - `slug` string, required — A unique identifier for this escalation policy. The slug is in the format `pol-[\w\d]{16}`
        - `_selfUrl` string, required — This is a URI that is generated for this escalation policy. It points to the entire escalation policy resource. and can be used to get detailed information about this escalation policy instead of just the summary.

## Other responses

- `400` — Problem with the request arguments. The response payload may include an error message.
- `401` — Authentication parameters missing
- `403` — Authentication failed or rate-limit reached
- `404` — Team or user(s) not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/victorops/apis/victorops-api.md) · [All operations](https://skmtc.net/victorops/apis/victorops-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/victorops/victorops-api/versions/7a7391256058/schema)
