---
title: "Get actions"
method: GET
path: "/api/vps/v1/virtual-machines/{virtualMachineId}/actions"
tags: ["VPS: Actions"]
---

# Get actions

`GET /api/vps/v1/virtual-machines/{virtualMachineId}/actions`

Retrieve actions performed on a specified virtual machine.

Actions are operations or events that have been executed on the virtual
machine, such as starting, stopping, or modifying the machine. This endpoint
allows you to view the history of these actions, providing details about
each action, such as the action name, timestamp, and status.

Use this endpoint to view VPS operation history and troubleshoot issues.

## Path parameters

- `virtualMachineId` integer, required

## Query parameters

- `page` integer

## Response `200`

Success response

- object
  - `data` VPSV1ActionActionResource[] — Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
    - `id` integer — Action ID
    - `name` string — Action name
    - `state` 'success' | 'error' | 'delayed' | 'sent' | 'created' — Action state
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `meta` CommonSchemaPaginationMetaSchema
    - `current_page` integer
    - `per_page` integer
    - `total` integer

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/74abfea76e36/schema)
