Skip to main content
Skip table of contents

Open the door

POST/api/v1/intercom/{intercom}/open-door

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

intercomoptional

int

Identifier of the intercom whose door needs to be opened (status must be «confirmed»)

Response

204

Successful response

401

Authorization token not provided or invalid, see Obtaining a token

404

If the intercom does not belong to the user, does not exist, or is not in the «confirmed» status

422

Returns a JSON object with an error, see Validation

JSON
{
    "message": "There won't be any informative message here",
    "errors": {
        "any_key": [
            "Here the error cause will be described"
        ]
    }
}

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/intercom/{intercom}/open-door' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.