---
title: "Simulate a Keypad Code Entry"
method: POST
path: "/locks/simulate/keypad_code_entry"
tags: ["/locks"]
---

# Simulate a Keypad Code Entry

`POST /locks/simulate/keypad_code_entry`

Simulates the entry of a code on a keypad. You can only perform this action for [August](/device-and-system-integration-guides/august-locks) devices within [sandbox workspaces](/core-concepts/workspaces#sandbox-workspaces).

## Request body

- object
  - `code` string, required — Code that you want to simulate entering on a keypad.
  - `device_id` string, uuid, required — ID of the device for which you want to simulate a keypad code entry.

## Response `200`

OK

- object
  - `action_attempt` object, required — Tracks the progress of this operation. Poll using the action_attempt_id. See the [action_attempt object](/api/action_attempts/object).
    - `action_attempt_id` string, uuid, required — ID of the action attempt.
    - `action_type` 'SIMULATE_KEYPAD_CODE_ENTRY', required — Type of action being tracked.
    - `status` 'pending' | 'success' | 'error', required — Current status of the action.
    - `result` object, nullable — Result payload on success.
    - `error` object, nullable — Error details on failure.
      - `type` string
      - `message` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/seam/apis/seam-connect.md) · [All operations](https://skmtc.net/seam/apis/seam-connect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seam/seam-connect/versions/00c35395ce12/schema)
