Luxor PlatformAPI DocumentationCommanderActions

Create action

Creates a bulk miner action (execution plan) such as reboot, sleep, wake up, or configuration changes.

POST
/v2/commander/actions

Authorization

LuxorAPIKey
authorization<token>

Use your API key here.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/commander/actions" \  -H "Content-Type: application/json" \  -d '{    "action_type": "Reboot",    "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",    "miner_ids": [      "string"    ]  }'
{  "id": "a-a1b2c3d4-e5f6-7890-abcd-ef1234567890",  "action_type": "Reboot",  "status": "PENDING",  "site_id": "b0a5fad8-1234-5678-9abc-def012345678",  "created_at": "2026-02-20T12:00:00Z",  "initiated_by": "[email protected]",  "total_miners": 10,  "url": "/v2/commander/actions/a1b2c3d4-e5f6-7890-abcd-ef1234567890"}
{  "statusCode": 400,  "code": "FST_ERR_VALIDATION",  "error": "Bad Request",  "message": "body/end_date Required"}
{  "statusCode": 400,  "code": "FST_ERR_VALIDATION",  "error": "Bad Request",  "message": "body/end_date Required"}
{  "statusCode": 400,  "code": "FST_ERR_VALIDATION",  "error": "Bad Request",  "message": "body/end_date Required"}