---
name: "openDoor"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "openDoor - Unlock the door."
summary: "Unlock the door."
---

## openDoor

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Unlock

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `timeout` | `number` | No | Timeout (ms) |

### Return Value

Type: `Promise<void>`

None

### Error Codes

| Error Code | Error Message |
| --- | --- |
| `1001` | Device is offline |
| `1064` | Non‑Thread devices do not support LAN lock/unlock |
| `1045` | Remote unlocking not supported |
| `1046` | Remote unlocking not enabled |
| `1047` | No permission to unlock |
| `1002` | Operation timed out |
| `1003` | Remote unlocking failed (cloud invocation error) |
| `1004` | Device reported unlock failure |
| `1005` | Remote unlocking failed (key invalidated) |
| `1006` | Key usage limit exhausted |
| `1007` | Key is outside its validity period |
| `1008` | Incorrect key |

### Examples

#### Example

```ts
import { openDoor } from '@ray-js/lock-sdk';
await openDoor();
```
