---
updatedAt: 2026-09-23T20:15:02.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Get Timekeeping

Gets timekeeping records for a specific user

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/timekeeping": {
      "get": {
        "tags": [
          "Timekeeping"
        ],
        "summary": "Get Timekeeping",
        "description": "Gets timekeeping records for a specific user",
        "operationId": "get-timekeeping",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "[required]",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user_name",
            "in": "query",
            "description": "[required] Username to pull time records for",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from_date",
            "in": "query",
            "description": "[required] UTC from date. must be in the following format: yyyy-MM-ddTHH:mm:ss",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to_date",
            "in": "query",
            "description": "[required] UTC to date. must be in the following format: yyyy-MM-ddTHH:mm:ss",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeInactiveUsers",
            "in": "query",
            "description": "[optional] Include users that have been deactivated.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Timekeeping Events",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TimeKeepingModel_"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TimeKeepingModel_"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TimeKeepingModel_"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_TimeKeepingModel_"
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Returns clock-in/clock-out timekeeping records for ONE system user (user_name) over a UTC window. from_date/to_date must be ISO-8601 UTC strings (yyyy-MM-ddTHH:mm:ss) or the call fails 400. Requires user-management permission (401 without it).",
        "x-ai-when-to-use": "The user asks about a staff member's worked hours, shifts, or clock events for a period. Get the user_name from GET users/ first if needed.",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "ApiResponse with the user's timekeeping events (clock-in/out timestamps) in the window.",
        "x-ai-required-permission": "timekeeping,users",
        "x-ai-display": {
          "title": "Timekeeping for {user_name}",
          "root": "Data.events",
          "columns": [
            {
              "field": "event_type",
              "header": "Event"
            },
            {
              "field": "user_local_time",
              "header": "Time (Local)"
            },
            {
              "field": "utc_time_date_stamp",
              "header": "Time (UTC)"
            }
          ]
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "TimeKeepingModel": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeKeepingEventModel"
            }
          }
        }
      },
      "TimeKeepingEventModel": {
        "type": "object",
        "properties": {
          "event_group": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "event_type": {
            "type": "string"
          },
          "utc_time_date_stamp": {
            "type": "string"
          },
          "user_local_time": {
            "type": "string"
          }
        }
      },
      "ApiResponse_TimeKeepingModel_": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/TimeKeepingModel"
          },
          "StatusCode": {
            "format": "int32",
            "type": "integer"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```