# Activities endpoints (Client API: VDS)

> 1 FeatherPanel Client API: VDS endpoint from user/vds/activities.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/user/vds/activities/

Defined in [`backend/app/routes/user/vds/activities.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/user/vds/activities.php). Authentication used here: **VDS access**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/rate-limits-and-errors/) for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

## Endpoints

### GET `/api/user/vm-instances/{id}/activities`

- Auth: VDS access
- Default rate limit: 30 / minute
- Route name: `user-vm-instance-activities`
- Controller: [`VmUserActivityController::getVmInstanceActivities`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/User/Vds/VmUserActivityController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/user/vds/activities.php#L26)

**Get VM instance activities** Retrieve paginated activity log for this VM instance (power, subuser, etc.). Uses dedicated vm\_instance\_activities table.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes |  |
| `page` | query | integer | no |  |
| `per_page` | query | integer | no |  |
| `search` | query | string | no |  |

| Response `data` field | Type | Description |
| --- | --- | --- |
| `activities` | UserVmInstanceActivity\[\] |  |
| `pagination` | VmInstanceActivityPagination |  |

```bash
curl -X GET "$PANEL_URL/api/user/vm-instances/$ID/activities" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

Responses: `200` Activities retrieved · `401` Unauthorized · `403` Forbidden · `404` VM instance not found
