Computers
/v1/computers/v1/computers/stream/v1/computers/{computerId}/presence- post
/v1/computers/{computerId}/requests /v1/computers/{computerId}/requests/inbox/v1/computers/{computerId}/requests/{id}- post
/v1/computers/{computerId}/requests/{id}/claim - post
/v1/computers/{computerId}/requests/{id}/reply /v1/devices/{inviterDeviceId}/pairing-requests- post
/v1/devices/{inviterDeviceId}/pairing-requests - post
/v1/devices/{inviterDeviceId}/pairing-requests/{id}/finish
List computers
/v1/computersResponses
200
computersversionscopegatewaytenantIdpersonId
computerIdrunnerDeviceIdnamegenerationissuedAtexpiresAtenabledcapabilitiessignature
serverTime
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/computers" \
-H "Authorization: Bearer $NEXUS_API_KEY"Stream computer events
/v1/computers/streamResponses
200
403
errormessagetypecodeparamnexusminimum
429
errormessagetypecodeparamnexusminimum
503
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 429 | More than 8 live streams of yours on this Gateway copy (`control_events_per_person`), or the rate limit | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
| 503 | Too many live streams on this Gateway copy (`control_events_full`): read your receipts instead |
Example
curl "$NEXUS_URL/v1/computers/stream" \
-H "Authorization: Bearer $NEXUS_API_KEY"Publish computer presence
/v1/computers/{computerId}/presenceParameters
computerId
Request body · application/json
versionscopegatewaytenantIdpersonId
computerIdrunnerDeviceIdnamegenerationissuedAtexpiresAtenabledcapabilitiessignature
Responses
200
versionscopegatewaytenantIdpersonId
computerIdrunnerDeviceIdnamegenerationissuedAtexpiresAtenabledcapabilitiessignature
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X PUT "$NEXUS_URL/v1/computers/<computerId>/presence" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"scope": {
"gateway": "<gateway>",
"tenantId": "<tenantId>",
"personId": "<personId>"
},
"computerId": "<computerId>",
"runnerDeviceId": "<runnerDeviceId>",
"name": "Platform",
"generation": 1,
"issuedAt": 1,
"expiresAt": 1,
"enabled": false,
"capabilities": [
"changes"
],
"signature": "<signature>"
}'Submit computer request
post
/v1/computers/{computerId}/requestsParameters
computerId
Request body · application/json
versionscopegatewaytenantIdpersonId
computerIdidsenderDeviceIdrunnerDeviceIdgenerationissuedAtexpiresAtlockedKeysealedsignature
Responses
200
envelopeversionscopegatewaytenantIdpersonId
computerIdidsenderDeviceIdrunnerDeviceIdgenerationissuedAtexpiresAtlockedKeysealedsignature
requestHashstatereplyserverTime
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/computers/<computerId>/requests" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"scope": {
"gateway": "<gateway>",
"tenantId": "<tenantId>",
"personId": "<personId>"
},
"computerId": "<computerId>",
"id": "<id>",
"senderDeviceId": "<senderDeviceId>",
"runnerDeviceId": "<runnerDeviceId>",
"generation": 1,
"issuedAt": 1,
"expiresAt": 1,
"lockedKey": "<lockedKey>",
"sealed": "<sealed>",
"signature": "<signature>"
}'List computer requests
/v1/computers/{computerId}/requests/inboxParameters
computerId
Responses
200
requestsenvelopeversionscopegatewaytenantIdpersonId
computerIdidsenderDeviceIdrunnerDeviceIdgenerationissuedAtexpiresAtlockedKeysealedsignature
requestHashstatereplyserverTime
serverTime
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/computers/<computerId>/requests/inbox" \
-H "Authorization: Bearer $NEXUS_API_KEY"Get computer request
/v1/computers/{computerId}/requests/{id}Parameters
computerIdid
Responses
200
envelopeversionscopegatewaytenantIdpersonId
computerIdidsenderDeviceIdrunnerDeviceIdgenerationissuedAtexpiresAtlockedKeysealedsignature
requestHashstatereplyserverTime
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/computers/<computerId>/requests/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY"Claim computer request
post
/v1/computers/{computerId}/requests/{id}/claimParameters
computerIdid
Request body · application/json
runnerDeviceIdsignature
Responses
200
claimedrequestenvelopeversionscopegatewaytenantIdpersonId
computerIdidsenderDeviceIdrunnerDeviceIdgenerationissuedAtexpiresAtlockedKeysealedsignature
requestHashstatereplyserverTime
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/computers/<computerId>/requests/<id>/claim" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"runnerDeviceId": "<runnerDeviceId>",
"signature": "<signature>"
}'Reply computer request
post
/v1/computers/{computerId}/requests/{id}/replyParameters
computerIdid
Request body · application/json
versionscopegatewaytenantIdpersonId
computerIdrequestIdrequestHashrunnerDeviceIdrecipientDeviceIdlockedKeysealedsignature
Responses
200
envelopeversionscopegatewaytenantIdpersonId
computerIdidsenderDeviceIdrunnerDeviceIdgenerationissuedAtexpiresAtlockedKeysealedsignature
requestHashstatereplyserverTime
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/computers/<computerId>/requests/<id>/reply" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"scope": {
"gateway": "<gateway>",
"tenantId": "<tenantId>",
"personId": "<personId>"
},
"computerId": "<computerId>",
"requestId": "<requestId>",
"requestHash": "<requestHash>",
"runnerDeviceId": "<runnerDeviceId>",
"recipientDeviceId": "<recipientDeviceId>",
"lockedKey": "<lockedKey>",
"sealed": "<sealed>",
"signature": "<signature>"
}'List phone pairing requests
/v1/devices/{inviterDeviceId}/pairing-requestsParameters
inviterDeviceId
Responses
200
requestsenvelopeversionscopegatewaytenantIdpersonId
idinviteIdinviterDeviceIdsenderDeviceIdexpiresAtlockedKeysealedsignature
statedecision
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/devices/<inviterDeviceId>/pairing-requests" \
-H "Authorization: Bearer $NEXUS_API_KEY"Submit phone pairing request
post
/v1/devices/{inviterDeviceId}/pairing-requestsParameters
inviterDeviceId
Request body · application/json
versionscopegatewaytenantIdpersonId
idinviteIdinviterDeviceIdsenderDeviceIdexpiresAtlockedKeysealedsignature
Responses
200
envelopeversionscopegatewaytenantIdpersonId
idinviteIdinviterDeviceIdsenderDeviceIdexpiresAtlockedKeysealedsignature
statedecision
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | The invitation expired or was already used. The request conflicts with an existing entry, or the relay is full. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/devices/<inviterDeviceId>/pairing-requests" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"scope": {
"gateway": "<gateway>",
"tenantId": "<tenantId>",
"personId": "<personId>"
},
"id": "<id>",
"inviteId": "<inviteId>",
"inviterDeviceId": "<inviterDeviceId>",
"senderDeviceId": "<senderDeviceId>",
"expiresAt": 1,
"lockedKey": "<lockedKey>",
"sealed": "<sealed>",
"signature": "<signature>"
}'Finish phone pairing request
post
/v1/devices/{inviterDeviceId}/pairing-requests/{id}/finishParameters
inviterDeviceIdid
Request body (optional) · application/json
decision
Responses
200
finished
400
403
404
409
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 400 | Malformed scope, identifier or ciphertext. | |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 404 | No such owned computer, request or device. | |
| 409 | Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox. | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/devices/<inviterDeviceId>/pairing-requests/<id>/finish" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"decision": {
"state": "approved",
"scope": {
"gateway": "<gateway>",
"tenantId": "<tenantId>",
"personId": "<personId>"
},
"computerId": "<computerId>",
"inviteId": "<inviteId>",
"inviterDeviceId": "<inviterDeviceId>",
"expiresAt": 1,
"requestId": "<requestId>",
"senderDeviceId": "<senderDeviceId>",
"signature": "<signature>"
}
}'