Public
Documentation Settings

Access Control

In this documentation, you can find structures for many HTTP requests sent to devices in Control iD's access control line (go to https://www.controlid.com.br/en/access-control/ for more information). In case you are unable to find a specific request or wish to make an observation, please email us at integracao@controlid.com.br with details. Your opinion is very important for us.

Thank you for your atention and understanding!

Control iD's Department of Engineering/Integration.

Sesssion Management

In this topic, you can find the commands used to manage sessions on the devices. They are important and necessary to start, analyse and end communication over HTTP requests with the devices.

POSTLogin

192.168.0.129/login.fcgi

Command to create a new session, necessary for all other commands other then session_is_valid. The HTTP method used is POST.

HEADERS
Content-Type

application/json

Bodyraw
{
    "login": "admin",
    "password": "admin"
}
Example Request
curl
curl --location '192.168.0.129/login.fcgi' \
--header 'Content-Type: application/json' \
--data '{
    "login": "admin",
    "password": "admin"
}'
200 OK
Example Response
json
{
  "session": "K5Jvtkv0tP7xhdl67oKTjTfJ"
}
No response headers
This request doesn't return any response headers

POSTLogout

192.168.0.129/logout.fcgi?session=

Comando para finalizar a sessão corrente.

PARAMS
session
Example Request
curl
curl --location --request POST '192.168.0.129/logout.fcgi?session='
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTCheck session validity

192.168.0.129/session_is_valid.fcgi?session=

Command used to check if the current session is valid.

PARAMS
session
Example Request
curl
curl --location --request POST '192.168.0.129/session_is_valid.fcgi?session=' \
--data ''
200 OK
Example Response
json
{
  "session_is_valid": true
}
Access-Control-Allow-Origin

*

Access-Control-Allow-Headers

origin, x-csrftoken, content-type, accept

Cache-Control

no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Content-Type

application/json; charset=utf-8

Transfer-Encoding

chunked

Date

Mon, 15 Apr 2019 17:05:47 GMT

Server

lighttpd/1.4.35