---
title: "Get User Logs"
method: GET
path: "/api/v1/admin/users/{user_id}/logs"
tags: ["Admin"]
---

# Get User Logs

`GET /api/v1/admin/users/{user_id}/logs`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/admin/users/{user_id}/logs`
- Auth: none declared

Fetch recent API logs for a specific user

## Path parameters

- `user_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- LogEntry[]
  - `id` union, required
    - string
    - integer
  - `created_at` string, date-time, required
  - `endpoint` string, required
  - `method` string, required
  - `status_code` integer, required
  - `response_time_ms` number, nullable
  - `user_id` string, nullable
  - `ip_address` string, nullable
  - `user_agent` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
