Skip to main content
Version: V4.0

Notice Callback API


Account Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Account-IdStringHeaderYesAccount ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, update
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
account_idStringBodyYesAccount ID
account_nameStringBodyNoAccount name
first_nameStringBodyNoFirst name
last_nameStringBodyNoLast name
emailStringBodyNoEmail

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Account-Id: ar58fa9ac8b6a2401bba0828fab548850

{
"notice": "account_listen_notice",
"action": "update",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"account_id": "ar58fa9ac8b6a2401bba0828fab548850",
"account_name": "good",
"first_name": "tom",
"last_name": "fly",
"email": "demo@akubela.com"
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Family Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, update or delete
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
family_nameStringBodyNoFamily name
onlineBooleanBodyNoWhether the family is online or not?
true: online
false: offline
installed
BooleanBodyNoWhether the family is installed or not?
true: installed
false: yet to be installed
accountsObject<account>BodyNoAccount information

account description

Parameter NameTypeLocationRequiredDescription
account_idStringBodyNoAccount ID
account_nameStringBodyNoAccount name
first_nameStringBodyNoFirst name
last_nameStringBodyNoLast name
emailStringBodyNoEmail
authStringBodyNoAccount authorization
admin: owner, the top administrator
user: family administrator
guest: family ordinary user

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "family_listen_notice",
"action": "update",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"family_name": "my home",
"online": true,
"installed": true,
"accounts": [
{
"account_id": "ar58fa9ac8b6a2401bba0828fab548850",
"account_name": "good",
"first_name": "tom",
"last_name": "fly",
"email": "demo@akubela.com",
"auth": "admin"
}
]
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Device Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, sync
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObjectBodyYesNotice parameter

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "device_listen_notice",
"action": "sync",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Space Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, create or update or delete
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
param[]Object<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
space_idStringBodyYesSpace ID
space_nameStringBodyNoSpace name
parent_space_idStringBodyNoParent space ID

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "space_listen_notice",
"action": "create",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": [
{
"parent_space_id": "f8b5a73f8dd84abaa94dcs248be49b0db",
"space_id": "r8b5a73f8dd84abaa94dcs248be49b0db",
"space_name": "my room"
}
]
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Scene Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, sync or perform
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
scene_idStringBodyNoScene ID

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "scene_listen_notice",
"action": "perform",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"scene_id": "s8b5a73f8dd84abaa94dcs248be49b0dv"
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Communication Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, create
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
communicate_idStringBodyYesCommunicate ID
timestampIntegerBodyYesTimestamp
fromStringBodyYesSender ID, account ID or device ID
toStringBodyYesReceiver ID, residence ID or account ID
formatStringBodyYesFormat, text or voice or call_failed or lock_call or call_cancelled
call_fromStringBodyNoCall from
contentStringBodyNoContent, text context or voice filename
durationIntegerBodyNoVoice duration time (s)
call_idStringBodyNoCall ID

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "communication_listen_notice",
"action": "create",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"communicate_id": "c6e3861d5d4ca4dcd8e76d84f1ecd49b4",
"timestamp": 193239428275,
"from": "a1d54e460365949109ec306dc6e37679b",
"to": "r42bdd7f6cb5ad478f3471539c2547b4e",
"format": "text",
"content": "hello"
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Maintenance Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Project-IdStringHeaderYesProject ID
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, create or update or delete
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
maintenance_idStringBodyYesMaintenance ID
stateStringBodyNoState, wait for confirmation or in progress or completed
feedbackStringBodyNoFeedback

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Project-Id: prn45e846ca23ab42c9ae469d988ae129

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "maintenance_listen_notice",
"action": "update",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"maintenance_id": "m8b5a73f8dd84abaa94dcs248be49b0d1",
"state": "completed"
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Booking Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Project-IdStringHeaderYesProject ID
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, create or update or delete
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
booking_idStringBodyYesBooking ID
stateStringBodyNoState, rejected or success
pin_codeStringBodyNoPIN code
qr_code_urlStringBodyNoQR code URL

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Project-Id: prn45e846ca23ab42c9ae469d988ae129

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "booking_listen_notice",
"action": "update",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"booking_id": "b8b5a73f8dd84abaa94dcs248be49b0d1",
"state": "success",
"pin_code": "123456",
"qr_code_url": "https://test.akubela.com/h.png"
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



Message Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
Project-IdStringHeaderYesProject ID
Residence-IdStringHeaderYesResidence ID
noticeStringBodyYesNotice name
actionStringBodyYesAction, create
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
message_idStringBodyYesMessage ID
message_titleStringBodyYesMessage title
message_contentStringBodyYesMessage content

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

Project-Id: prn45e846ca23ab42c9ae469d988ae129

Residence-Id: rn45e846ca23ab42c9ae469d988ae32a9

{
"notice": "message_listen_notice",
"action": "create",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"message_id": "mbafa332e258aae1badbb27d31128f446",
"message_title": "test",
"message_content": "test"
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null



General Device Listen Notice

Request URL

POST Notice URL

See Notice Service API to configure notice URL

Request Parameter

Parameter NameTypeLocationRequiredDescription
Content-TypeStringHeaderYesContent type, the value is application/json
AcceptStringHeaderYesAccept, the value is application/json
noticeStringBodyYesNotice name
actionStringBodyYesAction, create or update or delete or trigger
idStringBodyYesNotice ID
timestampIntegerBodyYesNotice time
paramObject<param>BodyYesNotice parameter

param description

Parameter NameTypeLocationRequiredDescription
device_idStringBodyYesDevice ID
onlineBooleanBodyNoWhether the device is online or not?
true: online
false: offline
dataObjectBodyNoData

Return Parameter

Null

Request Example

POST Notice URL

Content-Type: application/json

Accept: application/json

{
"notice": "general_device_listen_notice",
"action": "update",
"id": "n45e846ca23ab42c9ae469d988ae32a96",
"timestamp": 1540869200562,
"param": {
"device_id": "d8b5a73f8dd84abaa94dcs248be49b0d4",
"online": true
}
}

Success Return Example

Status Code: 200

Content-Type: application/json

Failure Return Example

Null