Remote
CompozyOS Remote HTTP endpoints.
7 endpoints36 pages in API Reference
Endpoints7
- GET
/api/remoteRead this computer's remote access status - PATCH
/api/remoteUpdate this computer's remote access - GET
/api/remote/devicesList devices allowed on this computer - PATCH
/api/remote/devices/{id}Change device scopes or decide a local approval - DELETE
/api/remote/devices/{id}Revoke a device on this account - POST
/api/remote/linkLink this computer from the local daemon - DELETE
/api/remote/linkUnlink this computer from the local daemon
GET/api/remote
Read this computer's remote access status
httpuds
Responses
- 200
- Remote access status
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Remote access status
application/json- response
cloud_route*computer_id*stringcontrol_link*stringdirect*enabled*booleanentitlement*|listener*stringrequire_device_approval*booleanRequest
curl -X GET 'http://localhost:2123/api/remote'200 Remote access status
{ "cloud_route": { "diagnosis": "string", "enabled": true, "hostname": "string", "state": "string" }, "computer_id": "string", "control_link": "string", "direct": { "addresses": [ "string" ], "enabled": true }, "enabled": true, "entitlement": { "plan": "string", "valid_until": "2019-08-24T14:15:22Z" }, "listener": "string", "require_device_approval": true}PATCH/api/remote
Update this computer's remote access
httpuds
Request body
JSON request body
application/json- body
cloud_route?boolean|nulldirect?boolean|nullenabled?boolean|nullrequire_device_approval?boolean|nullResponses
- 200
- Updated remote access
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Updated remote access
application/json- response
cloud_route*computer_id*stringcontrol_link*stringdirect*enabled*booleanentitlement*|listener*stringrequire_device_approval*booleanRequest
curl -X PATCH 'http://localhost:2123/api/remote' \ -H 'Content-Type: application/json' \ -d '{}'200 Updated remote access
{ "cloud_route": { "diagnosis": "string", "enabled": true, "hostname": "string", "state": "string" }, "computer_id": "string", "control_link": "string", "direct": { "addresses": [ "string" ], "enabled": true }, "enabled": true, "entitlement": { "plan": "string", "valid_until": "2019-08-24T14:15:22Z" }, "listener": "string", "require_device_approval": true}GET/api/remote/devices
List devices allowed on this computer
httpuds
Responses
- 200
- Remote devices and pending approvals
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Remote devices and pending approvals
application/json- response
devices*array<>Request
curl -X GET 'http://localhost:2123/api/remote/devices'200 Remote devices and pending approvals
{ "devices": [ { "admin": true, "approvals": [ { "created_at": "2019-08-24T14:15:22Z", "decided_at": "2019-08-24T14:15:22Z", "device_id": "string", "expires_at": "2019-08-24T14:15:22Z", "id": "string", "jkt": "string", "name": "string", "state": "string" } ], "id": "string", "last_seen_at": "2019-08-24T14:15:22Z", "name": "string", "pending_approval": true, "scopes": [ "string" ] } ]}PATCH/api/remote/devices/{id}
Change device scopes or decide a local approval
httpuds
Path parameters
id*stringDevice ID
Request body
JSON request body
application/json- body
approval_id?stringapproved?boolean|nullscopes?array<string>|nullResponses
- 200
- Updated device
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Updated device
application/json- response
admin*booleanapprovals?array<>id*stringlast_seen_at*|Format
date-timename*stringpending_approval*booleanscopes*array<string>Request
curl -X PATCH 'http://localhost:2123/api/remote/devices/string' \ -H 'Content-Type: application/json' \ -d '{}'200 Updated device
{ "admin": true, "approvals": [ { "created_at": "2019-08-24T14:15:22Z", "decided_at": "2019-08-24T14:15:22Z", "device_id": "string", "expires_at": "2019-08-24T14:15:22Z", "id": "string", "jkt": "string", "name": "string", "state": "string" } ], "id": "string", "last_seen_at": "2019-08-24T14:15:22Z", "name": "string", "pending_approval": true, "scopes": [ "string" ]}DELETE/api/remote/devices/{id}
Revoke a device on this account
httpuds
Path parameters
id*stringDevice ID
Responses
- 204
- Device revoked
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Device revoked
Request
curl -X DELETE 'http://localhost:2123/api/remote/devices/string'400 Bad Request
{ "blockers": [ { "id": "string", "kind": "string", "name": "string" } ], "client_message_id": "string", "code": "string", "config_path": "string", "current_turn_id": "string", "details": { "property1": "string", "property2": "string" }, "diagnostic": { "category": "string", "code": "string", "data_freshness": "string", "doc_url": "string", "evidence": { "property1": null, "property2": null }, "id": "string", "message": "string", "severity": "string", "suggested_command": "string", "title": "string" }, "error": "string", "provider_error": "string", "retryable": true, "unknown_keys": [ "string" ]}POST/api/remote/link
Link this computer from the local daemon
httpuds
Request body
JSON request body
application/json- body
link_token?stringResponses
- 200
- Computer link or device activation
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Computer link or device activation
application/json- response
attempt_id?stringcomputer_id?stringenabled?booleanexpires_at?stringFormat
date-timename?stringuser_code?stringverification_uri?stringverification_uri_complete?stringRequest
curl -X POST 'http://localhost:2123/api/remote/link' \ -H 'Content-Type: application/json' \ -d '{}'200 Computer link or device activation
{ "attempt_id": "string", "computer_id": "string", "enabled": true, "expires_at": "2019-08-24T14:15:22Z", "name": "string", "user_code": "string", "verification_uri": "string", "verification_uri_complete": "string"}DELETE/api/remote/link
Unlink this computer from the local daemon
httpuds
Responses
- 204
- Computer unlinked
- 400
- Bad Request
- 401
- Unauthorized
- 402
- Payment Required
- 403
- Forbidden
- 404
- Not Found
- 409
- Conflict
- 429
- Too Many Requests
- 503
- Service Unavailable
Response body
Computer unlinked
Request
curl -X DELETE 'http://localhost:2123/api/remote/link'400 Bad Request
{ "blockers": [ { "id": "string", "kind": "string", "name": "string" } ], "client_message_id": "string", "code": "string", "config_path": "string", "current_turn_id": "string", "details": { "property1": "string", "property2": "string" }, "diagnostic": { "category": "string", "code": "string", "data_freshness": "string", "doc_url": "string", "evidence": { "property1": null, "property2": null }, "id": "string", "message": "string", "severity": "string", "suggested_command": "string", "title": "string" }, "error": "string", "provider_error": "string", "retryable": true, "unknown_keys": [ "string" ]}