Creating Access Code CRUD Endpoints

Overview

Access Codes CRUD endpoints Seam to list access codes created on an intercom.

Listing Access Codes

After an Intercom Owner logs in and , Seam lists all the access codes that have been programmed and allows them to enable delivery on them. Your Intercom system should return a JSON list of intercoms.

List all access codes for an intercom

GET https://devicecloud.example.com/access_codes?intercom_id=<INTERCOM_ID>

Headers

{
    "access_codes": [
        {
            "access_code_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
            "intercom_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
            "owner_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
            "code": "1234",
            // Optional, but recommended
             "name": "Resident 001 Code"
        },
        {
            "access_code_id": "3043fde0-3c6d-4913-981f-2607f05fe743",
            "intercom_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
            "owner_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
            "code": "2345",
            // Optional, but recommended
             "name": "Resident 002 Code"
        },
    ]
}

Getting an Access Code

Seam may request intercom information to display information about the intercom to the connecting user.

Get information about a single access code

GET https://devicecloud.example.com/access_codes/<ACCESS_CODE_ID>

Query Parameters

Headers

{
  "access_code_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
  "intercom_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
  "owner_id": "3043fde0-3c6d-4913-981f-2607f05fe74e",
  "code": "1234",
  // Optional, but recommended
  "name": "Resident 001 Code"
}

Removing an Access Code

Seam unlocks doors to let in delivery people. If a door is disconnected or you're unable to unlock the door, return HTTP status code 500 with some details (see example below)

Remove an access code

DELETE https://devicecloud.example.com/access_codes/<ACCESS_CODE_ID>

Headers

{
    "ok": true
}

Last updated

Logo

Š Seam Labs, Inc. All rights reserved.