# API or CLI to control a connected device?

**URL:** <https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002>\
**Category:** KVM\
**Created:** [February 6, 2026, 6:05am UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002 "2026-02-06T06:05:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChicagoJim](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@ChicagoJim](https://forum.gl-inet.com/u/ChicagoJim)\
**Post date:** [February 6, 2026, 6:05am UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/1 "2026-02-06T06:05:39Z")

</div>

First, i’m very happy with the RM1. I got it up and running very quickly for my specific use-case - my PC needs F1 to continue booting and I wanted a way to to press it remotely. So problem solved for now.

However, I’d like to be able to automate this but I couldn’t find any kind of API or command line tool. Is one available?

---

<div class="post-metadata">

**Author:** ![minmie](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/minmie/32/25223_2.png) [@minmie](https://forum.gl-inet.com/u/minmie)\
**Post date:** [February 6, 2026, 6:28am UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/2 "2026-02-06T06:28:42Z")

</div>

`curl --location --request POST 'https://glkvm//api/hid/events/send_key?key=F1'`

---

<div class="post-metadata">

**Author:** ![minmie](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/minmie/32/25223_2.png) [@minmie](https://forum.gl-inet.com/u/minmie)\
**Post date:** [February 6, 2026, 6:29am UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/4 "2026-02-06T06:29:15Z")

</div>

You still need to resolve the authentication issue, whether using cookies or headers.

---

<div class="post-metadata">

**Author:** ![ChicagoJim](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@ChicagoJim](https://forum.gl-inet.com/u/ChicagoJim)\
**Post date:** [February 6, 2026, 7:20am UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/5 "2026-02-06T07:20:40Z")

</div>

That’s exactly what I need. Thanks for the quick response. Is the API documented somewhere?

---

<div class="post-metadata">

**Author:** ![minmie](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/minmie/32/25223_2.png) [@minmie](https://forum.gl-inet.com/u/minmie)\
**Post date:** [February 6, 2026, 7:42am UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/6 "2026-02-06T07:42:08Z")

</div>

[HTTP API reference - PiKVM Handbook](https://docs.pikvm.org/api/)

---

<div class="post-metadata">

**Author:** ![ChicagoJim](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/53a042/32.png) [@ChicagoJim](https://forum.gl-inet.com/u/ChicagoJim)\
**Post date:** [February 6, 2026, 8:29pm UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/7 "2026-02-06T20:29:37Z")

</div>

Thank you again!

---

<div class="post-metadata">

**Author:** ![system](https://forum-static.gl-inet.com/original/3X/7/7/77e28f6cb342ac4bd641bd9a6254595d61b2812a.png) [@system](https://forum.gl-inet.com/u/system)\
**Post date:** [May 7, 2026, 8:29pm UTC](https://forum.gl-inet.com/t/api-or-cli-to-control-a-connected-device/67002/8 "2026-05-07T20:29:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
