Skip to content
Docs
Operation

List device commands

GET/devices/{deviceId}/commands
Command history for a device (most recent first).

Path parameters

deviceIdstringRequired

Returns

Commands

Errors

400
Bad Request - Invalid input
401
Unauthorized - Authentication required
403
Forbidden - Insufficient permissions
404
Not Found - Resource not found
500
Internal Server Error

Every error names its code and links to it. All error codes

curl -X GET "https://api.ticketlayer.com/v1/devices/{deviceId}/commands" \  -H "Authorization: Bearer tlak_..." \  -H "X-Ticketlayer-Org: your-org-slug"
Response 200
{
  "commands": [
    {
      "id": "string",
      "deviceId": "string",
      "peripheralId": "string",
      "type": "string",
      "status": "string",
      "payload": {},
      "idempotencyKey": "string",
      "progress": {},
      "result": {},
      "createdBy": {
        "type": "string",
        "id": "string"
      },
      "expiresAt": "string",
      "createdAt": "string",
      "deliveredAt": "string",
      "completedAt": "string"
    }
  ]
}

Try it in test mode

Path parameters