# Building a Seam-Compatible Smart Lock API

This guide outlines the technical expectations for building a smart-lock API that integrates cleanly with Seam. It covers authentication, API behavior, events, device reporting, and lock-specific features. Use this as a reference when designing or updating your API.

A Seam-compatible API delivers consistent, real-time device behavior through a predictable and modern integration surface. The following pages break down how to design each part of your API so Seam can integrate your smart locks reliably at scale.

#### What’s in this guide

* [Implementing Authentication](/latest/device-manufacturer-guidance/building-a-seam-compatible-smart-lock-api/implementing-authentication.md): how to use OAuth2 with stable account identifiers
* [Implementing Your Device Model & Discovery](/latest/device-manufacturer-guidance/building-a-seam-compatible-smart-lock-api/implementing-your-device-model-and-discovery.md): how to report connectivity, power, and state, and expose list/read endpoints
* [Implementing Lock Actions](/latest/device-manufacturer-guidance/building-a-seam-compatible-smart-lock-api/implementing-lock-actions.md): how to accept lock/unlock commands and report final results
* [Implementing Access Codes](/latest/device-manufacturer-guidance/building-a-seam-compatible-smart-lock-api/implementing-access-codes.md): how to support code creation, schedules, deletion, and usage events
* [Webhooks & Events](/latest/device-manufacturer-guidance/building-a-seam-compatible-smart-lock-api/webhooks-and-events.md): how to publish real-time updates to Seam


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.seam.co/latest/device-manufacturer-guidance/building-a-seam-compatible-smart-lock-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
