Get datastream value (via HTTP GET):
/external/api/get?token={token}&pin={pin}
/external/api/get?token={token}&dataStreamId={id}
Update datastream value (via HTTP GET):
/external/api/update?token={token}&pin={pin}&value={value}
/external/api/update?token={token}&dataStreamId={id}&value={value}
/external/api/update/property?token={token}&pin={pin}&{property}={value}
Get device json (via HTTP GET):
/external/api/device?token={token}
/external/api/logEvent?token={token}&code={event_name}
/external/api/logEvent?token={token}&code={event_name}&description={event_desciption}
Use HTTP GET method to get value of a Datastream or Virtual Pin
Using Datastream ID:
/external/api/get?token={token}&dataStreamId={id}
Using Virtual Pin:
/external/api/get?token={token}&pin={pin}
Parameters:
token
: AuthToken of the devicepin
: Virtual Pin number. e.g. V0dataStreamId
: can be found in Product Settings > Datastreams
Example:
curl --get 'https://blynk.io/external/api/get?token=123&pin=V0'
You can use HTTP GET method to update value of a Datastream or Virtual Pin
Using Datastream ID:
/external/api/update?token={token}&dataStreamId={id}&value={value}
Using Virtual Pin number:
/external/api/update?token={token}&pin={pin}&value={value}
Path parameters:
token
: AuthToken of the devicedataStreamId
: can be found in Product Settings > Datastreamspin
: Virtual Pin number. e.g. V0
Example:
curl --get 'https://blynk.io/external/api/update?token=123&dataStreamId=1&value=100'
You can update variuous properties of a widget (in the mobile app) which is using a specified Virtual Pin. Full list of properties here(LINK)
/external/api/update/property?token={token}&pin={pin}&{property}={value}
Path parameters:
token
: AuthToken of the deviceproperty
: property name. Full list of properties is here (LINK)pin
: Virtual Pin number. e.g. V0
Example:
curl --get 'https://blynk.io/external/api/update/property?token=123&pin=V0&isDisabled=true'
Use HTTP GET method to create a new Event on Device Timeline
/external/api/logEvent?token={token}&code={event_name}&description={event_desciption}
Parameters:
token
: AuthToken of the devicecode
: code of the event. Can be found in Product Template - Eventsdescription
: optionally you can add custom description to the event and it will be rendered on Device Timeline in mobile apps and on the web
Example:
curl --get 'https://blynk.io/external/api/logEvent?token=123&code=critical_error&description="custom description"'
Create Event on Device Timeline
/external/api/logEvent?token={token}&code={event_name}
``
/external/api/logEvent?token={token}&code={event_name}&description={event_desciption}