Trigger Log Event

Get an Event code

  1. Open Device Template

  2. Switch to Events tab

  3. Hover Code column across from Event name

  4. Click "Copy Event Code" hint

get
Trigger the event by event code

https://{server_address}/external/api/logEvent?token={token}&code={event_code}&description={event_description}
This endpoint allows you to trigger the event. Example: https://blynk.cloud/external/api/logEvent?token=GVki9IC70vb3IqvsV0YD3el4y0OpneL1&code=firmware_update&description=test
Request
Response
Request
Path Parameters
description
optional
string
Event description
code
required
string
Event code
token
required
string
Device auth token
Response
200: OK
Success
400: Bad Request
Could not find a device token or Typo in code or Could not find event code
{"error":{"message":"Invalid token."}}
or
{"error":{"message":"Event code is not provided."}}
or
{"error":{"message":"Can't find Event with this code in Product template"}}