MyGate

Notify API

This API is used by access devices to notify to mygate the access status of the entity

Endpoint

Method: GET

Sample Request & Response Body

Request

curl --location --request POST 'https://gateway.mgthunderbolt.xyz/access/v1/notify' \
--header 'mg-xs-api-key: xxxx' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"device_id": "String",
"access_uuid_type": "Enum",
"access_entity_type": "Enum",
"access_ref_id": "String",
"access_uuid_captured": "String",
"direction": "Enum",
"status": "Enum",
"timestamp": "String"
}'

Request Headers

NameValueNotes
mg-xs-api-keyVEHICLEAccess Entity Type Enum
Acceptapplication/json
Content-Typeapplication/json

Request Attributes

NameTypeNotes
device_idStringIdentifier for the device placed at an access point
timestampStringTimestamp defines the records to be returned which have been added/deleted after a particular value
access_entity_typeEnumVEHICLE (Refer enum table)
access_uuid_typeEnumLPN,TAG etc (Refer enum table)
access_uuid_capturedStringCaptured and matched identifier of the entity seeking access
access_ref_idStringOriginal opaque reference id.
additonal_kvsObjectKey value pairs to be used for passing additional contextual information. Optiona
statusEnumIN, OUT (Refer enum table)
directionEnumALLOW, DISALLOW (Refer enum table)

Response

{
"es" : "String",
"message" : "String"
}

Response Attributes

NameTypeNotes
esStringError Status, 0 if success else failure
messageStringMessage : Success if success else the failure reason
Suggestions, contact, support and error reporting: [email protected]