Skip to main content
POST
Add a new device

Authorizations

Authorization
string
header
required

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

Body

application/json
device_id
string

Optional custom device ID. If not provided, one will be generated.

Example:

"my-custom-device-id"

webhook_url
string

Optional device-specific webhook URL. If set, events for this device will be sent here instead of the global webhook.

Example:

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

webhook_secret
string

Optional secret used to sign device-specific webhook payloads (HMAC).

Example:

"super-secret-key"

webhook_events
string

Optional comma-separated list of event names to forward to the device-specific webhook. Empty means all events.

Example:

"message,message.ack"

webhook_insecure_skip_verify
boolean

Optional. Skip TLS certificate verification when delivering to the device-specific webhook.

Example:

false

Response

OK

code
string
Example:

"SUCCESS"

message
string
Example:

"Device added"

status
integer
Example:

200

results
object