.customEvents()
.
Example receiving and sending back same event:
Appboxo.hideMiniapps()
;
Example:
TIP Please don’t forget to unsubscribe from eventsUsage:
Key | Value |
---|---|
Authorization | <prefix> <base64 encoded(hostapp_client_id:hostapp_secret_key)> |
Content-type | application/json |
<prefix>
: Token
. Access token prefix can be set in Boxo Connect.hostapp_client_id
and hostapp_secret_key
must be provided in DashboardField | Data type | Description |
---|---|---|
app_id | String | Miniapp identifier |
client_id | String | Hostapp identifier |
event_type | String | Event type identifying the purpose of the event |
payload | Object | Event data containing information specific to the event |
200
in all cases/api/v1/event-bridge/hostapp/
endpoint
Headers
Key | Value |
---|---|
Authorization | <prefix> <base64 encoded(hostapp_client_id:hostapp_secret_key)> |
Content-type | application/json |
<prefix>
: Token
. Access token prefix can be set in Boxo Connect.hostapp_client_id
and hostapp_secret_key
must be provided in DashboardField | Data type | Description |
---|---|---|
app_id | String | Miniapp identifier (recipient) |
client_id | String | Hostapp identifier (sender) |
event_type | String | Event type identifying the purpose of the event |
payload | Object | Event data containing information specific to the event |
200
if the event was delivered successfullyEvent Type | Description | Example Payload |
---|---|---|
user_profile_updated | User profile information has been updated | {"user_reference": "123", "email": "example@example.com"} |
Event Type | Description | Example Payload |
---|---|---|
order_status_update | Miniapp order fulfillment status | {"order_payment_id": "order_123", "fulfillment_status": "delivering"} |
Error Code | Description |
---|---|
EVENT_RECEIVER_DISABLED | Event receiver is not enabled for the recipient |
INVALID_EVENT_DATA | The event data format is invalid |
EVENT_DELIVERY_FAILED | Failed to deliver the event to the recipient |
UNAUTHORIZED | Sender is not authorized to send events |