Skip to content
NewNexus 2.0 is here, and it’s open source. Read the launch post

API reference

Computers

View as Markdown

List computers

get/v1/computers

List your scoped computers

sessions.controlEvery memberTry it in the API Explorer

Responses

200Current signed state.application/json

  • computersarray of ComputerPresencerequired

    at most 32 items

    • version1required
    • scopeComputerScoperequired
      • gatewaystringrequired

        Normalized Gateway HTTP(S) URL, without trailing slash.

      • tenantIdstringrequired
      • personIdstringrequired
    • computerIdstring (uuid)required
    • runnerDeviceIdstringrequired
    • namestringrequired

      At most 64 Unicode scalar values and 160 UTF-8 bytes; no control characters.

      min length 1 · max length 64

    • generationintegerrequired
    • issuedAtintegerrequired
    • expiresAtintegerrequired
    • enabledbooleanrequired
    • capabilitiesarray of "changes" | "projects" | "settings" | "start"required

      at most 4 items

    • signaturestringrequired
  • serverTimeintegerrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
curl "$NEXUS_URL/v1/computers" \
  -H "Authorization: Bearer $NEXUS_API_KEY"

Stream computer events

get/v1/computers/stream

Your computer requests' and Code commands' new states, live, as server-sent events.

sessions.controlEvery memberTry it in the API Explorer

Responses

200The event streamtext/event-stream

ComputerRequestChanged | CodeCommandChanged

403Not a person, not a current member, or without `sessions.control`application/json

  • errorobject
    • messagestringrequired
    • typestringrequired

      The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.

    • codestring

      Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.

    • paramstring

      model when the error is a model refusal (a code starting with model_); absent otherwise.

    • nexusobject

      Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.

    • minimumstring

      On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.

429More than 8 live streams of yours on this Gateway copy (`control_events_per_person`), or the rate limitapplication/json

  • errorobject
    • messagestringrequired
    • typestringrequired

      The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.

    • codestring

      Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.

    • paramstring

      model when the error is a model refusal (a code starting with model_); absent otherwise.

    • nexusobject

      Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.

    • minimumstring

      On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.

503Too many live streams on this Gateway copy (`control_events_full`): read your receipts insteadapplication/json

  • errorobject
    • messagestringrequired
    • typestringrequired

      The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.

    • codestring

      Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.

    • paramstring

      model when the error is a model refusal (a code starting with model_); absent otherwise.

    • nexusobject

      Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.

    • minimumstring

      On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.

Errors

StatusCodeWhen
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
429More than 8 live streams of yours on this Gateway copy (`control_events_per_person`), or the rate limit
429rate_limit_errorToo many requests from this key in a minute
503Too many live streams on this Gateway copy (`control_events_full`): read your receipts instead

Example

curl
curl "$NEXUS_URL/v1/computers/stream" \
  -H "Authorization: Bearer $NEXUS_API_KEY"

Publish computer presence

put/v1/computers/{computerId}/presence

Publish signed computer presence without a session

sessions.controlEvery memberTry it in the API Explorer

Parameters

  • computerIdpath · string (uuid)required

Request body · application/json

  • version1required
  • scopeComputerScoperequired
    • gatewaystringrequired

      Normalized Gateway HTTP(S) URL, without trailing slash.

    • tenantIdstringrequired
    • personIdstringrequired
  • computerIdstring (uuid)required
  • runnerDeviceIdstringrequired
  • namestringrequired

    At most 64 Unicode scalar values and 160 UTF-8 bytes; no control characters.

    min length 1 · max length 64

  • generationintegerrequired
  • issuedAtintegerrequired
  • expiresAtintegerrequired
  • enabledbooleanrequired
  • capabilitiesarray of "changes" | "projects" | "settings" | "start"required

    at most 4 items

  • signaturestringrequired

Responses

200Current signed state.application/json

  • version1required
  • scopeComputerScoperequired
    • gatewaystringrequired

      Normalized Gateway HTTP(S) URL, without trailing slash.

    • tenantIdstringrequired
    • personIdstringrequired
  • computerIdstring (uuid)required
  • runnerDeviceIdstringrequired
  • namestringrequired

    At most 64 Unicode scalar values and 160 UTF-8 bytes; no control characters.

    min length 1 · max length 64

  • generationintegerrequired
  • issuedAtintegerrequired
  • expiresAtintegerrequired
  • enabledbooleanrequired
  • capabilitiesarray of "changes" | "projects" | "settings" | "start"required

    at most 4 items

  • signaturestringrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400invalid_request_errorA field is missing or not valid; the message names it
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
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}/requests

Submit an encrypted request to your computer

sessions.controlEvery memberTry it in the API Explorer

Parameters

  • computerIdpath · string (uuid)required

Request body · application/json

  • version1required
  • scopeComputerScoperequired
    • gatewaystringrequired

      Normalized Gateway HTTP(S) URL, without trailing slash.

    • tenantIdstringrequired
    • personIdstringrequired
  • computerIdstring (uuid)required
  • idstring (uuid)required
  • senderDeviceIdstringrequired
  • runnerDeviceIdstringrequired
  • generationintegerrequired
  • issuedAtintegerrequired
  • expiresAtintegerrequired
  • lockedKeystringrequired

    80 decoded HPKE bytes; canonical unpadded base64url.

  • sealedstringrequired

    29 to 65565 decoded encrypted bytes; canonical unpadded base64url.

  • signaturestringrequired

Responses

200Current signed state.application/json

  • envelopeComputerRequestEnveloperequired
    • version1required
    • scopeComputerScoperequired
      • gatewaystringrequired

        Normalized Gateway HTTP(S) URL, without trailing slash.

      • tenantIdstringrequired
      • personIdstringrequired
    • computerIdstring (uuid)required
    • idstring (uuid)required
    • senderDeviceIdstringrequired
    • runnerDeviceIdstringrequired
    • generationintegerrequired
    • issuedAtintegerrequired
    • expiresAtintegerrequired
    • lockedKeystringrequired

      80 decoded HPKE bytes; canonical unpadded base64url.

    • sealedstringrequired

      29 to 65565 decoded encrypted bytes; canonical unpadded base64url.

    • signaturestringrequired
  • requestHashstringrequired
  • state"queued" | "claimed" | "replied" | "expired"required
  • replyComputerReplyEnvelope | nullrequired
  • serverTimeintegerrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400invalid_request_errorA field is missing or not valid; the message names it
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
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

get/v1/computers/{computerId}/requests/inbox

Read at most 20 queued encrypted computer requests

sessions.controlEvery memberTry it in the API Explorer

Parameters

  • computerIdpath · string (uuid)required

Responses

200Current signed state.application/json

  • requestsarray of ComputerRequestrequired

    at most 20 items

    • envelopeComputerRequestEnveloperequired
      • version1required
      • scopeComputerScoperequired
        • gatewaystringrequired

          Normalized Gateway HTTP(S) URL, without trailing slash.

        • tenantIdstringrequired
        • personIdstringrequired
      • computerIdstring (uuid)required
      • idstring (uuid)required
      • senderDeviceIdstringrequired
      • runnerDeviceIdstringrequired
      • generationintegerrequired
      • issuedAtintegerrequired
      • expiresAtintegerrequired
      • lockedKeystringrequired

        80 decoded HPKE bytes; canonical unpadded base64url.

      • sealedstringrequired

        29 to 65565 decoded encrypted bytes; canonical unpadded base64url.

      • signaturestringrequired
    • requestHashstringrequired
    • state"queued" | "claimed" | "replied" | "expired"required
    • replyComputerReplyEnvelope | nullrequired
    • serverTimeintegerrequired
  • serverTimeintegerrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
curl "$NEXUS_URL/v1/computers/<computerId>/requests/inbox" \
  -H "Authorization: Bearer $NEXUS_API_KEY"

Get computer request

get/v1/computers/{computerId}/requests/{id}

Reconcile an encrypted computer request after expiry

sessions.controlEvery memberTry it in the API Explorer

Parameters

  • computerIdpath · string (uuid)required
  • idpath · string (uuid)required

Responses

200Current signed state.application/json

  • envelopeComputerRequestEnveloperequired
    • version1required
    • scopeComputerScoperequired
      • gatewaystringrequired

        Normalized Gateway HTTP(S) URL, without trailing slash.

      • tenantIdstringrequired
      • personIdstringrequired
    • computerIdstring (uuid)required
    • idstring (uuid)required
    • senderDeviceIdstringrequired
    • runnerDeviceIdstringrequired
    • generationintegerrequired
    • issuedAtintegerrequired
    • expiresAtintegerrequired
    • lockedKeystringrequired

      80 decoded HPKE bytes; canonical unpadded base64url.

    • sealedstringrequired

      29 to 65565 decoded encrypted bytes; canonical unpadded base64url.

    • signaturestringrequired
  • requestHashstringrequired
  • state"queued" | "claimed" | "replied" | "expired"required
  • replyComputerReplyEnvelope | nullrequired
  • serverTimeintegerrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
curl "$NEXUS_URL/v1/computers/<computerId>/requests/<id>" \
  -H "Authorization: Bearer $NEXUS_API_KEY"

Claim computer request

post/v1/computers/{computerId}/requests/{id}/claim

Claim a computer request once

sessions.controlEvery memberTry it in the API Explorer

Parameters

  • computerIdpath · string (uuid)required
  • idpath · string (uuid)required

Request body · application/json

  • runnerDeviceIdstringrequired
  • signaturestringrequired

Responses

200Current signed state.application/json

  • claimedbooleanrequired
  • requestComputerRequestrequired
    • envelopeComputerRequestEnveloperequired
      • version1required
      • scopeComputerScoperequired
        • gatewaystringrequired

          Normalized Gateway HTTP(S) URL, without trailing slash.

        • tenantIdstringrequired
        • personIdstringrequired
      • computerIdstring (uuid)required
      • idstring (uuid)required
      • senderDeviceIdstringrequired
      • runnerDeviceIdstringrequired
      • generationintegerrequired
      • issuedAtintegerrequired
      • expiresAtintegerrequired
      • lockedKeystringrequired

        80 decoded HPKE bytes; canonical unpadded base64url.

      • sealedstringrequired

        29 to 65565 decoded encrypted bytes; canonical unpadded base64url.

      • signaturestringrequired
    • requestHashstringrequired
    • state"queued" | "claimed" | "replied" | "expired"required
    • replyComputerReplyEnvelope | nullrequired
    • serverTimeintegerrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400invalid_request_errorA field is missing or not valid; the message names it
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
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}/reply

Store a signed encrypted reply for the exact sender

sessions.controlEvery memberTry it in the API Explorer

Parameters

  • computerIdpath · string (uuid)required
  • idpath · string (uuid)required

Request body · application/json

  • version1required
  • scopeComputerScoperequired
    • gatewaystringrequired

      Normalized Gateway HTTP(S) URL, without trailing slash.

    • tenantIdstringrequired
    • personIdstringrequired
  • computerIdstring (uuid)required
  • requestIdstring (uuid)required
  • requestHashstringrequired
  • runnerDeviceIdstringrequired
  • recipientDeviceIdstringrequired
  • lockedKeystringrequired
  • sealedstringrequired

    29 to 262173 decoded encrypted bytes; canonical unpadded base64url.

  • signaturestringrequired

Responses

200Current signed state.application/json

  • envelopeComputerRequestEnveloperequired
    • version1required
    • scopeComputerScoperequired
      • gatewaystringrequired

        Normalized Gateway HTTP(S) URL, without trailing slash.

      • tenantIdstringrequired
      • personIdstringrequired
    • computerIdstring (uuid)required
    • idstring (uuid)required
    • senderDeviceIdstringrequired
    • runnerDeviceIdstringrequired
    • generationintegerrequired
    • issuedAtintegerrequired
    • expiresAtintegerrequired
    • lockedKeystringrequired

      80 decoded HPKE bytes; canonical unpadded base64url.

    • sealedstringrequired

      29 to 65565 decoded encrypted bytes; canonical unpadded base64url.

    • signaturestringrequired
  • requestHashstringrequired
  • state"queued" | "claimed" | "replied" | "expired"required
  • replyComputerReplyEnvelope | nullrequired
  • serverTimeintegerrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400invalid_request_errorA field is missing or not valid; the message names it
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
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

get/v1/devices/{inviterDeviceId}/pairing-requests

Read your device pairing relay

keys.manage_ownEvery memberTry it in the API Explorer

Parameters

  • inviterDeviceIdpath · stringrequired

Responses

200Current signed state.application/json

  • requestsarray of PhonePairingRequestrequired

    at most 20 items

    • envelopePhonePairingEnveloperequired
      • version1required
      • scopeComputerScoperequired
        • gatewaystringrequired

          Normalized Gateway HTTP(S) URL, without trailing slash.

        • tenantIdstringrequired
        • personIdstringrequired
      • idstring (uuid)required
      • inviteIdstring (uuid)required
      • inviterDeviceIdstringrequired
      • senderDeviceIdstringrequired
      • expiresAtintegerrequired
      • lockedKeystringrequired
      • sealedstringrequired

        29 to 8221 decoded encrypted bytes. Raw invitation secret occurs only inside this ciphertext.

      • signaturestringrequired
    • state"pending" | "finished"required
    • decisionPhonePairingDecision

      Desktop-signed outcome for an invitation. Approval binds the winning request and sender. Cancellation applies to the entire invitation. The relay receipt can be retried for five minutes after expiry.

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
curl "$NEXUS_URL/v1/devices/<inviterDeviceId>/pairing-requests" \
  -H "Authorization: Bearer $NEXUS_API_KEY"

Submit phone pairing request

post/v1/devices/{inviterDeviceId}/pairing-requests

Relay an encrypted phone scan proof

keys.manage_ownEvery memberTry it in the API Explorer

Parameters

  • inviterDeviceIdpath · stringrequired

Request body · application/json

  • version1required
  • scopeComputerScoperequired
    • gatewaystringrequired

      Normalized Gateway HTTP(S) URL, without trailing slash.

    • tenantIdstringrequired
    • personIdstringrequired
  • idstring (uuid)required
  • inviteIdstring (uuid)required
  • inviterDeviceIdstringrequired
  • senderDeviceIdstringrequired
  • expiresAtintegerrequired
  • lockedKeystringrequired
  • sealedstringrequired

    29 to 8221 decoded encrypted bytes. Raw invitation secret occurs only inside this ciphertext.

  • signaturestringrequired

Responses

200The relay request and its signed decision, when available.application/json

  • envelopePhonePairingEnveloperequired
    • version1required
    • scopeComputerScoperequired
      • gatewaystringrequired

        Normalized Gateway HTTP(S) URL, without trailing slash.

      • tenantIdstringrequired
      • personIdstringrequired
    • idstring (uuid)required
    • inviteIdstring (uuid)required
    • inviterDeviceIdstringrequired
    • senderDeviceIdstringrequired
    • expiresAtintegerrequired
    • lockedKeystringrequired
    • sealedstringrequired

      29 to 8221 decoded encrypted bytes. Raw invitation secret occurs only inside this ciphertext.

    • signaturestringrequired
  • state"pending" | "finished"required
  • decisionPhonePairingDecision

    Desktop-signed outcome for an invitation. Approval binds the winning request and sender. Cancellation applies to the entire invitation. The relay receipt can be retried for five minutes after expiry.

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409The invitation expired or was already used. The request conflicts with an existing entry, or the relay is full.

Errors

StatusCodeWhen
400invalid_request_errorA field is missing or not valid; the message names it
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409The invitation expired or was already used. The request conflicts with an existing entry, or the relay is full.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
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}/finish

Publish the inviting computer’s signed pairing decision

keys.manage_ownEvery memberTry it in the API Explorer

Parameters

  • inviterDeviceIdpath · stringrequired
  • idpath · string (uuid)required

Request body (optional) · application/json

  • decisionPhonePairingDecision

    Desktop-signed outcome for an invitation. Approval binds the winning request and sender. Cancellation applies to the entire invitation. The relay receipt can be retried for five minutes after expiry.

Responses

200The decision or legacy delivery marker is recorded.application/json

  • finishedbooleanrequired

400Malformed scope, identifier or ciphertext.

403Not an owner, current member or valid signer.

404No such owned computer, request or device.

409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.

Errors

StatusCodeWhen
400invalid_request_errorA field is missing or not valid; the message names it
400Malformed scope, identifier or ciphertext.
401authentication_errorNo key, or a key Gateway does not accept
403role_requiredYour role does not have this permission
404not_foundNothing matches the path in your organization
404No such owned computer, request or device.
409Stale generation, disabled/offline computer, expired admission, immutable body conflict, unavailable content policy or full bounded mailbox.
429rate_limit_errorToo many requests from this key in a minute

Example

curl
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>"
    }
  }'