REST API

REST API accept same json as Websocket API.

Endpoint

POST https://obniz.com/obniz/{obniz_id}/api/1

Before access token was issued, You can use API without it.
Below is available Request Headers.

Property

Default

Description

access_token

None

An access token issued per device in Device Management. Or an API key or WebApp token or OAuth token with "device control" permission.

Request body is application/json.

Below is Curl example

curl https://obniz.com/obniz/1234-5678/api/1 -H "Content-Type: application/json" -X POST -d '[{"display":{"clear":true, "text":"Works fine."}}]'