---
title: "Press or release a button (Nano S+ and Nano X)"
method: POST
path: "/button/{button}"
---

# Press or release a button (Nano S+ and Nano X)

`POST /button/{button}`

## Path parameters

- `button` 'left' | 'right' | 'both', required

## Request body

- Button
  - `action` 'press' | 'release' | 'press-and-release', required — Press, release or press and release the specified button(s).
  - `delay` number, float — Delay in seconds between press and release, ignored if action isn't `press-and-released`.

## Response `200`

successful operation

## Other responses

- `400` — invalid parameter

---

[API](https://skmtc.net/ledgerhq/apis/speculos-api.md) · [All operations](https://skmtc.net/ledgerhq/apis/speculos-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ledgerhq/speculos-api/versions/26e97bf6713a/schema)
