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

Request action on multiple devices

Up to 20 devices. Per-device authorization and schema checks apply. Results are independent; broadcast is not atomic. TTL defaults to 30 seconds and is at most 300 seconds.

POST/v1/broadcasts
Authorization
AuthorizationBearer token (Clerk owner session) · headerrequired

Owner identity required.

or
AuthorizationBearer token (ol_agent token) · headerrequired

Owner-issued agent API connection; access ceiling and live device grants are checked separately.

or
AuthorizationBearer token (OAuth access token) · headerrequired

OAuth read/act scope is a ceiling. Scopes do not create device grants.

Request body
requiredapplication/json
deviceIdsstring<uuid>[]required
min items 1 · max items 20
capabilitystringrequired
min length 1 · max length 64 · matches ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
argumentsobjectrequired
idempotencyKeystringrequired
min length 1 · max length 64
ttlSecondsinteger
min 1 · max 300 · default: 30
Responses
202

Each device has an independent action or error

dataBroadcastResult[]required
Show properties
Array of BroadcastResult
deviceIdstring<uuid>required
actionActionReceipt
Show properties
idstring<uuid>required
deviceIdstring<uuid>required
capabilitystringrequired
argsobjectrequired
statusstringrequired
Allowed:queuedreceivedsucceededfailedexpiredcancelledunknown
createdAtintegerrequired
expiresAtintegerrequired
dispatchedAtinteger
resultReceivedAtinteger

Server time in Unix milliseconds when the first terminal device result was saved. Preserved on identical retries; absent for older receipts. This is receipt delivery, not physical completion.

resultany
clientKeystringrequired

Internal idempotency key stored in the action ledger; included by request/get/result handler responses.

fingerprintstringrequired

Internal canonical request fingerprint; included by request/get/result and action history responses.

principalIdstringrequired

Principal identifier associated with the action.

ownerAuthorizedbooleanrequired

Internal provenance: true for an owner-originated action. False is normal for an accepted agent action whose live grants authorize it; it is not a missing-approval status. MCP receipts omit this field.

accessPolicystring

Policy principal that authorized this action when queued; dispatch re-checks the live chain for that policy before delivering.

accessConstraintsstring[]

Constraint principals (e.g. the original OAuth client of a linked membership) re-checked against their live policies at dispatch time.

errorobject
Show properties
codestringrequired
messagestringrequired
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
409

Individual device actions can conflict; inspect each result item

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
Bodyapplication/json
Request
curl -X POST "${OPENLAUNCH_URL:-https://www.openlaunch.dev}/v1/broadcasts" -H "Authorization: Bearer $OPENLAUNCH_AGENT_TOKEN" -H 'Content-Type: application/json' -d '{"deviceIds":["00000000-0000-4000-8000-000000000001"],"capability":"device.health","arguments":{},"idempotencyKey":"broadcast-001"}'
Response
{
  "data": [
    {
      "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
      "action": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
        "capability": "string",
        "args": {},
        "status": "queued",
        "createdAt": 0,
        "expiresAt": 0,
        "dispatchedAt": 0,
        "resultReceivedAt": 0,
        "result": null,
        "clientKey": "string",
        "fingerprint": "string",
        "principalId": "string",
        "ownerAuthorized": true,
        "accessPolicy": "string",
        "accessConstraints": [
          "string"
        ]
      },
      "error": {
        "code": "string",
        "message": "string"
      }
    }
  ]
}