Skip to main content

Access events API 1.6.0

Access event log and user-defined access events.

Base path: https://{controller_ip}/api/v1. API description version: 1.6.0.

Examples use placeholder values for passwords, tokens, UUIDs, addresses and secrets. Replace them with values from your controller before sending requests.

Section methods

MethodPath
GET/access_events/
GET/access_events/count
GET/access_events/types
GET/access_events/{uuid}
POST/access_events/user_defined/
PUT/access_events/user_defined/{uuid}
DELETE/access_events/user_defined/{uuid}

GET /access_events/

Section: Access events.

Returns data for the access events endpoint /access_events/.

Request example

curl -k -X GET "https://{controller_ip}/api/v1/access_events/" \
-H "Authorization: Bearer <token>"

Response command example

curl -k -sS -X GET "https://{controller_ip}/api/v1/access_events/" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"data": [],
"meta": {
"api_version": "1.6.0",
"path": "/access_events/"
}
}

GET /access_events/count

Section: Access events.

Returns a count for the access events endpoint /access_events/count.

Request example

curl -k -X GET "https://{controller_ip}/api/v1/access_events/count" \
-H "Authorization: Bearer <token>"

Response command example

curl -k -sS -X GET "https://{controller_ip}/api/v1/access_events/count" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"count": 12
}

GET /access_events/types

Section: Access events.

Returns reference values for the access events endpoint /access_events/types.

Request example

curl -k -X GET "https://{controller_ip}/api/v1/access_events/types" \
-H "Authorization: Bearer <token>"

Response command example

curl -k -sS -X GET "https://{controller_ip}/api/v1/access_events/types" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"data": [],
"meta": {
"api_version": "1.6.0",
"path": "/access_events/types"
}
}

GET /access_events/{uuid}

Section: Access events.

Returns data for the access events endpoint /access_events/{uuid}.

Request example

curl -k -X GET "https://{controller_ip}/api/v1/access_events/{uuid}" \
-H "Authorization: Bearer <token>"

Response command example

curl -k -sS -X GET "https://{controller_ip}/api/v1/access_events/{uuid}" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"data": [],
"meta": {
"api_version": "1.6.0",
"path": "/access_events/{uuid}"
}
}

POST /access_events/user_defined/

Section: Access events.

Creates a record or starts an operation for the access events endpoint /access_events/user_defined/.

Request example

curl -k -X POST "https://{controller_ip}/api/v1/access_events/user_defined/" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
--data-raw '{
"type": "custom_access",
"access_point_uuid": "<access_point_uuid>",
"user_uuid": "<user_uuid>"
}'

Request body example

{
"type": "custom_access",
"access_point_uuid": "<access_point_uuid>",
"user_uuid": "<user_uuid>"
}

Response command example

curl -k -sS -X POST "https://{controller_ip}/api/v1/access_events/user_defined/" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"status": "success",
"data": {
"uuid": "<uuid>"
}
}

PUT /access_events/user_defined/{uuid}

Section: Access events.

Updates data for the access events endpoint /access_events/user_defined/{uuid}.

Request example

curl -k -X PUT "https://{controller_ip}/api/v1/access_events/user_defined/{uuid}" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
--data-raw '{
"type": "custom_access",
"access_point_uuid": "<access_point_uuid>",
"user_uuid": "<user_uuid>"
}'

Request body example

{
"type": "custom_access",
"access_point_uuid": "<access_point_uuid>",
"user_uuid": "<user_uuid>"
}

Response command example

curl -k -sS -X PUT "https://{controller_ip}/api/v1/access_events/user_defined/{uuid}" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"status": "success",
"data": {
"uuid": "<uuid>"
}
}

DELETE /access_events/user_defined/{uuid}

Section: Access events.

Deletes data for the access events endpoint /access_events/user_defined/{uuid}.

Request example

curl -k -X DELETE "https://{controller_ip}/api/v1/access_events/user_defined/{uuid}" \
-H "Authorization: Bearer <token>"

Response command example

curl -k -sS -X DELETE "https://{controller_ip}/api/v1/access_events/user_defined/{uuid}" \
-H "Authorization: Bearer <token>" | jq .

Response example

{
"status": "success",
"deleted": true
}