Skip to content

Remote

CompozyOS Remote HTTP endpoints.

7 endpoints36 pages in API Reference

Endpoints7

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
Request
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
  1. body
cloud_route?boolean|null
direct?boolean|null
enabled?boolean|null
require_device_approval?boolean|null

Responses

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
Request
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
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*string

Device ID

Request body

JSON request body

application/json
  1. body
approval_id?string
approved?boolean|null
scopes?array<string>|null

Responses

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
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*string

Device 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
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

httpuds

Request body

JSON request body

application/json
  1. body
link_token?string

Responses

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
Request
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"}