Skip to content

DeviceMessageRequestContext

HTTP API schema

Metadata a device sends with a message pushed to POST /messages. Only `correlationToken` is accepted: a reply copies the token of the request it answers. The gateway-set `sequence` and `sentAt` of `DeviceMessageContext` are refused here.

DeviceMessageRequestContext fields

correlationTokenstring

The token of the request this message answers, copied unchanged. 1 to 128 URL-safe characters (letters, digits, `.`, `_`, `~`, `-`), the form the device gateway issues and accepts.

minLength: 1

maxLength: 128

pattern: "^[A-Za-z0-9._~-]{1,128}$"

View source specification ↗