---
title: "Log a new activity"
method: POST
path: "/activity/log"
tags: ["Dashboard"]
---

# Log a new activity

`POST /activity/log`

Logs a new user activity, such as accessing a terminal or file manager. This endpoint is rate-limited.

## Request body

- object
  - `type` 'terminal' | 'file_manager' | 'server_stats' | 'tunnel' | 'docker' | 'telnet' | 'vnc' | 'rdp'
  - `hostId` integer
  - `hostName` string

## Response `200`

Activity logged successfully or rate-limited.

## Other responses

- `400` — Invalid request body.
- `401` — Session expired.
- `404` — Host not found or access denied.
- `500` — Failed to log activity.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
