Skip to content
openlaunch
Esc
↑↓navigate↵open⌘Jpreview

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}/next
Authorization
AuthorizationBearer token (device child credential) · headerrequired

Child device credential, independently revocable from its setup token.

Path parameters
deviceIdstring<uuid>required
Header parameters
x-openlaunch-workspacestringrequired

Workspace routing identifier for the device credential; not a secret.

matches ^[a-f0-9]{64}$
Responses
200

Successful response

dataDeviceNext | nullrequired
Show properties
Any of:
object
idstring<uuid>required
deviceIdstring<uuid>required
capabilitystringrequired
argsobjectrequired
statusstringrequired
createdAtintegerrequired
expiresAtintegerrequired
dispatchedAtintegerrequired
null
null
400

Invalid request or validation failure

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
401

Missing or invalid credential

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
403

Insufficient access or grant

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
404

Resource not found

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
413

Request body exceeds the 16 KiB limit

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
429

Rate limit or workspace capacity limit

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
500

Internal error

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
503

Service or required integration is not configured

errorobjectrequired
Show properties
codestringrequired
messagestring
issuesobject[]
Show properties
Array of object
pathstring
messagestring
Try it
Server
Authorization
Parameters
Request
curl -X POST 'https://www.openlaunch.dev/v1/device/497f6eca-6276-4993-bfeb-53cbbbba6f08/next' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'x-openlaunch-workspace: string'
Response
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
    "capability": "string",
    "args": {},
    "status": "received",
    "createdAt": 0,
    "expiresAt": 0,
    "dispatchedAt": 0
  }
}