reachthingsDocs
EN
Dashboard
ConceptsCommand lifecycle
Concepts

Command lifecycle

Every action becomes a command with its own status. Your agent decides what to tell the user from status and next_action, never from timing.

On this page
Happy path
waiting_approvaloptional approvalqueuedqueue → senddispatchingmanufacturer ackprovider_acceptedcheck device stateverifyingdonesucceeded
optional approval → queue → send → manufacturer ack → check device state → done
Other endings
rejecteddenied, revoked, blockedcancelledby user, before sendexpiredapproval or queue timed outfailedmanufacturer refusedoutcome_unknownsent, result not confirmed

Verification levels

Each action declares the level it needs to count as succeeded. We never lower it.

levelMeaningExample
noneNothing confirmed yetJust queued
provider_ackManufacturer accepted the requestCloud returned 200
provider_completedManufacturer reported the command finishedHorn & lights (no lasting state)
state_observedDevice state now matches the targetSetpoint reads 22°C
none
MeaningNothing confirmed yet
ExampleJust queued
provider_ack
MeaningManufacturer accepted the request
ExampleCloud returned 200
provider_completed
MeaningManufacturer reported the command finished
ExampleHorn & lights (no lasting state)
state_observed
MeaningDevice state now matches the target
ExampleSetpoint reads 22°C

next_action

typeYour agent should
poll_command_statusWait next_poll_after_ms, then call get_command_status
open_approval_urlShow the user approval.url and keep polling
show_resultReport the final outcome
show_unknownTell the user it may or may not have happened. Do not resend.
poll_command_status
Your agent shouldWait next_poll_after_ms, then call get_command_status
open_approval_url
Your agent shouldShow the user approval.url and keep polling
show_result
Your agent shouldReport the final outcome
show_unknown
Your agent shouldTell the user it may or may not have happened. Do not resend.

Retries

Never auto-retry outcome_unknown. The command may already have run. Unlocking a door or honking a horn twice is worse than asking the user to check.

Network error before you got a response? Resend with the same request_key. You'll get the original command back, not a second one. The same key with a different device, action or parameters is refused with REQUEST_KEY_CONFLICT.

Human approval

Actions like door.unlock require approval by default; users can require it for any action. The command waits in waiting_approval until the signed-in owner confirms the exact device, action, and parameters stored on the server. Visiting the link alone does nothing. If anything changes, or the approval expires, the command is not sent. When the client supports MCP elicitation and is a verified client, the approval can happen inside the chat; otherwise the approval page in the dashboard is used.

"status": "waiting_approval",
"approval": {
  "url": "https://connect.reachthings.com/app/approvals/apr_51c",
  "expires_at": "2026-10-18T08:41:00Z"
},
"next_action": { "type": "open_approval_url", "message": "…" }