メインコンテンツへスキップ
POST
新しいデバイスを追加

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

ボディ

application/json
device_id
string

任意のカスタムデバイスID。 指定されていない場合は、生成されます。

例:

"my-custom-device-id"

webhook_url
string

オプションのデバイス固有のWebhookのURL。 設定した場合、このデバイスのイベントはグローバルWebhookの代わりにここに送信されます。

例:

"https://device-webhook.example.com/handler"

webhook_secret
string

デバイス固有のWebhookペイロード(HMAC)に署名するために使用されるオプションの秘密。

例:

"super-secret-key"

webhook_events
string

デバイス固有のWebhookに転送するためのオプションのイベント名のカンマ区切りリスト。 空白はすべてのイベントを意味します。

例:

"message,message.ack"

webhook_insecure_skip_verify
boolean

任意。 デバイス固有の webhook に配信する際に TLS 証明書の検証をスキップします。

例:

false

レスポンス

OK

code
string
例:

"SUCCESS"

message
string
例:

"Device added"

status
integer
例:

200

results
object