Skip to content
API
On this pageParameters
Endpoints

Get live lock state

Reads the provider live state for one active lock. Requires `locks:read`.

GET /v1/locks/{lockId}/state

Parameters

NameInRequiredTypeDescription
lockIdpathYesstringThe public lock ID returned by the list operation.

Request examples

Set MYREMOTELY_BASE_URL to the environment you intend to call.

bash
LOCK_ID='lock_demo_01'

curl --fail-with-body \
  --header "x-api-key: $MYREMOTELY_API_KEY" \
  "$MYREMOTELY_BASE_URL/v1/locks/$LOCK_ID/state"

Responses

200 A live locked or unlocked result, or unknown with a stable reason. This is distinct from cached connectivity.

application/json

Response fields

FieldWhen presentMeaning
stateAlwayslocked, unlocked, or unknown.
reasonWhen state is unknownStable reason why no live state was available.
checkedAtAlwaysTime when MyRemotely checked the live state.
json
{
  "state": "unlocked",
  "checkedAt": "2026-09-16T12:00:03.000Z"
}

401 The API key is missing, invalid, expired, or revoked.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#invalid-api-key",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Provide a valid API key.",
  "code": "invalid_api_key",
  "requestId": "request_demo_01"
}

403 The API key does not have the locks:read scope. | The public API channel or the operation's owning feature does not allow this use.

application/problem+json

json
"string"

404 The lock is missing, retired, or owned by another organization.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#lock-not-found",
  "title": "Not found",
  "status": 404,
  "detail": "The requested lock was not found.",
  "code": "lock_not_found",
  "requestId": "request_demo_01"
}

429 The API key request budget is exhausted.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#rate-limited",
  "title": "Too many requests",
  "status": 429,
  "detail": "Try the request again later.",
  "code": "rate_limited",
  "requestId": "request_demo_01"
}

500 MyRemotely could not complete the request.

application/problem+json

FieldTypeRequiredDescription
typestringYesA stable documentation URI for this problem.
titlestringYesA short problem title.
detailstringYesA safe explanation of this occurrence.
codestringYesA stable machine-readable problem code.
requestIdstringYesThe request ID to include when contacting MyRemotely support.
statusnumberYesThe HTTP status code.
json
{
  "type": "https://app.myremotely.ai/en/docs/errors#internal-error",
  "title": "Internal error",
  "status": 500,
  "detail": "The request could not be completed.",
  "code": "internal_error",
  "requestId": "request_demo_01"
}

Last updated Nov 3, 2026