Dev's NoxDev's Nox
Tunnel

Tunnel Request

Server-to-server endpoint: dispatch a request to the handler registered with @OnTunnel(id) and return its response.

POST
/api/tunnel

Authorization

nox-challenge
AuthorizationChallenge <keyId_b64url>.<data_b64url>.<sig_b64url>

Nox server-to-server challenge token. The payload is RSA-OAEP encrypted with the target server's public key and RSA-SHA256 signed with the sending server's private key.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/tunnel" \  -H "Content-Type: application/json" \  -d '{    "id": "relation",    "data": null  }'
{
  "data": {
    "success": true
  },
  "error": null,
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}
{
  "data": null,
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found.",
    "status": 404
  },
  "time": 1680000000000,
  "request": "/api/endpoint"
}