Poll for next action
Returns a queued command and marks it received, or null when no command is available. Device reports the correlated result over HTTPS.
POST
/v1/device/{deviceId}/nextAuthorization
AuthorizationBearer token (device child credential) · headerrequiredChild device credential, independently revocable from its setup token.
Path parameters
deviceIdstring<uuid>requiredHeader parameters
x-openlaunch-workspacestringrequiredWorkspace routing identifier for the device credential; not a secret.
matches ^[a-f0-9]{64}$
Responses
200
Successful response
dataDeviceNext | nullrequiredShow propertiesHide properties
Any of:
object
idstring<uuid>requireddeviceIdstring<uuid>requiredcapabilitystringrequiredargsobjectrequiredstatusstringrequiredcreatedAtintegerrequiredexpiresAtintegerrequireddispatchedAtintegerrequirednull
null400
Invalid request or validation failure
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring401
Missing or invalid credential
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring403
Insufficient access or grant
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring404
Resource not found
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring413
Request body exceeds the 16 KiB limit
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring429
Rate limit or workspace capacity limit
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring500
Internal error
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring503
Service or required integration is not configured
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
Array of
objectpathstringmessagestring