RelayOpen app ↗
PUBLIC REFERENCE

Run remotely.
Retrieve asynchronously.

Relay runs shell commands through connected agents or reverse SSH tunnels. Submit a command over HTTPS, receive a job ID immediately, then poll for status and output.

This documentation is public. Device data, commands, and results require authentication.

Base URL: https://re.eldento.com

SSH gateway

Connect from an ordinary SSH client through an online Relay agent. No inbound port is needed on the device. The target must run an SSH server.

  1. In SSH keys, add your computer’s public key under SSH gateway access (for example, the contents of ~/.ssh/id_ed25519.pub). Keep its private key on your computer.
  2. Upload the target’s login private key to Relay if it is not already saved.
  3. Open the device’s SSH settings, select its target host, port, username and private key, then click Save gateway target. Use 127.0.0.1 for the agent’s own machine.
  4. Connect once with the web terminal and accept the target’s host key.
ssh -i ~/.ssh/id_ed25519 ze+DEVICE_ID@re.eldento.com
ssh -i ~/.ssh/id_ed25519 ze+DEVICE_ID@re.eldento.com 'pwd; ls'
# A configured Public URL name works too (use abc, not the full domain):
ssh ze+abc@re.eldento.com

The part before + is the saved target SSH username. The part after it is the device ID or one of its Public URL names. Every name for a device uses the same saved SSH gateway target, independently of its HTTP forwarding URLs.

On first connection, your SSH client asks you to trust Relay’s gateway host key. Compare it with the gateway host fingerprint shown under SSH keys in the portal. If you previously used port 22 for administrative SSH, your client may report a changed host key; verify the new fingerprint before updating its known_hosts entry. This is separate from the target host key accepted in the web terminal. The gateway terminates SSH and opens a second SSH connection, so Relay can access session contents.

Supports interactive terminals, resizing, Ctrl+C, command execution, standard input, standard output, standard error, and exit status. Each connection supports one session. SFTP and both modern and legacy SCP are supported. SSH forwarding, agent forwarding, and connection multiplexing are not supported. Agent 0.3.3 or later enables larger transfer windows and improved connection recovery. Sessions expire after 30 minutes without data or eight hours total. Revoking a client key, deleting the target key, disabling the gateway target, or revoking the device closes affected sessions.

API

All endpoints below require the usual API authentication. Browser writes also require a CSRF token.

  • GET /api/gateway-info: gateway host public key and fingerprint.
  • GET /api/gateway-keys: list registered client public keys.
  • POST /api/gateway-keys: register {"name":"Laptop","public_key":"ssh-ed25519 AAAA…"}.
  • DELETE /api/gateway-keys/{id}: revoke a client key.
  • GET /api/agents/{id}/gateway: get the saved target and SSH command.
  • PUT /api/agents/{id}/gateway: save {"host":"127.0.0.1","port":22,"username":"ze","key_id":"SAVED_PRIVATE_KEY_ID"}.
  • DELETE /api/agents/{id}/gateway: disable gateway access for this device.

Administrative SSH and legacy reverse tunnels use port 2222. Port 22 belongs to the gateway.

Quick start

First, add a device in the web app, upload its SSH login private key, start the displayed reverse SSH command on that device, and accept its host key. Keep the tunnel running.

In these examples, replace USERNAME, PASSWORD, DEVICE_ID, and JOB_ID with your own values. The API credentials are the same as your web login.

1. Get the device ID

curl -u 'USERNAME:PASSWORD' \
  https://re.eldento.com/api/devices

The response is a JSON array. Use the id of the device you want to target.

2. Submit a command

curl -u 'USERNAME:PASSWORD' \
  https://re.eldento.com/api/devices/DEVICE_ID/jobs/ \
  -d 'pwd; ls;'

Returns 202 Accepted. This means the command was queued, not that it completed successfully.

{
  "id": "JOB_ID",
  "status": "queued",
  "status_url": "/api/jobs/JOB_ID"
}

3. Retrieve the result

curl -u 'USERNAME:PASSWORD' \
  https://re.eldento.com/api/jobs/JOB_ID

Poll every 1–2 seconds while status is queued or running. All other statuses are terminal. Inspect exit_code and error as well as the output.

Authentication

Use HTTP Basic authentication over HTTPS for scripts and services. No separate login request or API token is needed. Curl’s -u 'USERNAME:PASSWORD' option sends the credentials. For interactive use, -u 'USERNAME' prompts for the password instead of putting it in the command.

This is a single-account service. The credentials grant access to all registered devices, job results, and account settings. Changing the account password also changes the password used by API clients.

Unauthenticated protected requests return 401 with:

{"error":"Authentication required"}

Use a server-side HTTP client for integrations. Cross-origin browser access is not supported. The public documentation does not expose device IDs, saved keys, or execution history.

Commands & results

POST /api/devices/{device_id}/jobs

Submit a new asynchronous job. A trailing slash is also accepted. The body can be raw shell text or JSON.

curl -u 'USERNAME:PASSWORD' \
  -H 'Content-Type: application/json' \
  https://re.eldento.com/api/devices/DEVICE_ID/jobs \
  -d '{"command":"pwd; ls -la;","timeout":300}'
JSON FIELDTYPEDESCRIPTION
commandstring, requiredNonblank shell command, up to 32,768 UTF-8 bytes. NUL characters are rejected.
timeoutinteger, optionalExecution deadline in seconds, from 1 to 86,400. Default: 3,600. Queue waiting time is excluded.

For multiline commands or shell scripts, send the file contents directly:

curl -u 'USERNAME:PASSWORD' \
  -H 'Content-Type: text/plain' \
  --data-binary @commands.sh \
  https://re.eldento.com/api/devices/DEVICE_ID/jobs

Commands execute as the device’s configured SSH user, without a terminal or interactive input. Each job uses a new SSH session. State such as cd or environment variables does not carry over to the next job; put related operations in the same command.

The response includes a relative status_url and a matching Location header. Every submission creates a new job; there is no idempotency key. Do not automatically resubmit after an ambiguous network failure, as that may execute the command twice. Check recent jobs first.

GET /api/jobs/{job_id}

Returns the complete job record, including partial output while running. Example completed response:

{
  "id": "JOB_ID",
  "device_id": "DEVICE_ID",
  "command": "pwd; ls;",
  "status": "succeeded",
  "stdout": "/home/alice\nnotes.txt\n",
  "stderr": "",
  "exit_code": 0,
  "error": null,
  "timeout": 3600,
  "created": 1790500000.0,
  "started": 1790500000.4,
  "finished": 1790500000.8,
  "truncated": 0
}

created, started, and finished are Unix timestamps in seconds. started and finished remain null until those events occur. exit_code is null until a remote exit status is available. Output is returned as UTF-8 text; invalid bytes are replaced.

stdout and stderr are cumulative snapshots, not incremental chunks. Replace previously displayed output when polling. Each stream retains its first 4 MiB; truncated: 1 means at least one stream exceeded that limit. Output is saved approximately every 500 milliseconds.

A successful HTTP response only means the job record was retrieved. A failed remote command still returns HTTP 200 with status: "failed".

GET /api/jobs

Lists the latest 100 jobs, newest first. Each summary contains id, device_id, device_name, command, status, exit_code, created, started, and finished. Fetch the individual job for output and error details. There are no pagination parameters.

Job states

STATUSMEANING
queuedWaiting for an available worker.
runningConnecting to the device or executing the command.
succeededRemote command exited with code 0.
failedNonzero remote exit code, or a connection/authentication/execution error. Check error and exit_code.
timed_outExecution deadline reached; SSH connection closed.
interruptedService restarted during execution, the SSH connection was lost, or it closed without an exit status.

Queued jobs survive a service restart. Running jobs are marked interrupted and are never automatically retried. Timeouts and disconnects do not guarantee termination of remote child processes; check the device before retrying consequential commands. There is no job-cancellation endpoint.

Device setup

The web UI provides the simplest setup path. These endpoints are also available for programmatic onboarding. All require authentication.

GET /api/devices

Returns a JSON array with id, name, username, port, ssh_port, host_key, and created. Here, port is the reverse tunnel’s server-side loopback port; ssh_port is the SSH port on the device. Private keys are not included.

POST /api/devices

Creates a device; returns 201 with {"id":"DEVICE_ID"}. Send JSON:

{
  "name": "My laptop",
  "username": "alice",
  "ssh_port": 22,
  "private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n",
  "passphrase": "",
  "host_key": ""
}

name, username, and private_key are required. The device name is limited to 80 characters. ssh_port defaults to 22. passphrase is optional. RSA, Ed25519, and ECDSA login private keys in supported OpenSSH/PEM formats are accepted and encrypted at rest.

Leave host_key blank or omit it to accept the detected key on first connection. Alternatively, supply a known host public key in key-type base64-key format. The login private key and SSH server host key have different roles.

GET /api/devices/{device_id}/tunnel-key

Downloads the separate reverse-tunnel private key as an attachment. Save it on the device with file permissions 600.

GET /api/devices/{device_id}/connection

Returns command, containing the SSH tunnel command to run on the device, and server_host_key, containing the Relay server’s fingerprint. Run the command from the folder containing the downloaded tunnel key and keep it running.

The tunnel connects to re@re.eldento.com on port 2222 (ssh -p 2222). Each tunnel key is restricted to its assigned reverse listener on 127.0.0.1; it cannot open a server shell or forward another port.

Accepting host keys

POST /api/devices/{device_id}/check

Tests the SSH connection. No request body is required. If a saved key matches and authentication succeeds, returns {"connected":true}. If the key is not yet saved or differs from the saved key, returns HTTP 200 with a preview instead:

{
  "needs_host_key": true,
  "fingerprint": "SHA256:EXAMPLE_FINGERPRINT",
  "key_type": "ssh-ed25519",
  "replacing": false,
  "token": "SIGNED_PREVIEW_TOKEN"
}

needs_host_key is not a successful connection result. Review the fingerprint before accepting. replacing: true indicates an existing saved key would be replaced. A preview does not save the key or send login credentials.

POST /api/devices/{device_id}/host-key/accept

After acceptance, submit the preview token:

curl -u 'USERNAME:PASSWORD' \
  -H 'Content-Type: application/json' \
  https://re.eldento.com/api/devices/DEVICE_ID/host-key/accept \
  -d '{"token":"SIGNED_PREVIEW_TOKEN"}'

The token expires after five minutes and is bound to the device and its previously saved key. Relay reconnects using the exact detected key, verifies SSH authentication, then saves it. Success returns {"connected":true}. An expired token returns 400; a changed device configuration returns 409. Obtain a new preview in either case.

Additional host-key endpoints

POST /api/devices/{device_id}/host-key/preview explicitly fetches a preview, using the same response shape as above. PUT /api/devices/{device_id}/host-key manually saves a supplied key with JSON {"host_key":"ssh-ed25519 AAAA…"} and returns {"ok":true}. Manual saving does not test connectivity. Jobs never automatically accept unknown or changed keys.

Errors & limits

Application errors normally return JSON {"error":"Description"}. Proxy-generated errors, including some rate-limit and body-size errors, may return HTML; check the HTTP status before assuming JSON.

HTTP STATUSMEANING
400Invalid input, command, key, or expired/invalid preview token.
401Missing or incorrect credentials.
403Rejected origin, missing session CSRF token, incorrect setup token, or incorrect current password.
404Device, job, or route not found.
409Configuration changed, device limit reached, or first-run setup already completed.
413Request body too large.
429Rate limit exceeded or job queue full. Back off before retrying.
502SSH connection, authentication, host-key verification, or proxy upstream failure.
  • 4 concurrent jobs, with at most 100 queued or running jobs combined.
  • 100 registered devices.
  • API rate limit: 5 requests per second per IP, with a burst allowance of 15.
  • Maximum application request body: 100,000 bytes.
  • Maximum command: 32 KiB. Maximum captured output: 4 MiB per stream.
  • Default execution deadline: 1 hour. Maximum: 24 hours.

Relay does not provide webhooks or server-sent events. Poll for results. Job history is persisted; the list endpoint returns the newest 100 records, while older jobs remain retrievable by ID.

Update an existing agent

Install the latest agent to enable commands and browser SSH. Command center requires version 0.3.0 or later.

  1. Stop the running agent (Ctrl+C if it runs in your terminal). If a service manager starts it, stop that service first.
  2. Open the folder containing your current relay-agent executable. Download and replace the binary using:
case "$(uname -m)" in
  x86_64) arch=amd64 ;;
  aarch64|arm64) arch=arm64 ;;
  *) echo "Unsupported architecture"; exit 1 ;;
esac
curl -fL "https://re.eldento.com/downloads/relay-agent-linux-$arch" -o relay-agent.new &&
  chmod +x relay-agent.new &&
  mv relay-agent.new relay-agent
./relay-agent --version

Restart it as the same Linux user, keeping the existing identity file:

./relay-agent

No enrollment code is needed. If your original command used --state or --server, keep those same options. If it runs as a service, restart the existing service instead. Do not delete the identity file (/custom/.config/relay-agent/identity.json when /custom exists, otherwise the home/XDG config directory). The device keeps its name, Public URLs, and forwarding settings.

Return to Devices and wait a few seconds for the version and available actions to refresh. If Command center was already open, reopen it to refresh its device picker.

Direct downloads: Linux x86-64 · Linux ARM64 · SHA-256 checksums.

Devices

Devices are separate from SSH command devices. They require no SSH server or inbound port. Each agent opens a persistent, authenticated connection to Relay and receives a public domain: https://DEVICE_ID.d.eldento.com.

1. Enroll a device

Sign in to the app and choose Devices → Add agent. Copy the generated command, or download the executable with curl or wget:

curl -fL https://re.eldento.com/downloads/relay-agent-linux-amd64 -o relay-agent
chmod +x relay-agent
./relay-agent YOUR_ENROLLMENT_CODE --name "My Linux device"

Download Linux x86-64 · Download Linux ARM64 · SHA-256 checksums. The x86-64 executable is tested on Ubuntu 22.04. Static binaries need no Rust or shared OpenSSL installation.

# wget alternative (Linux x86-64)
wget -O relay-agent https://re.eldento.com/downloads/relay-agent-linux-amd64
chmod +x relay-agent
./relay-agent YOUR_ENROLLMENT_CODE

The code belongs to your Relay account, works once, and expires in 10 minutes. A saved identity file allows later starts without a code. From agent 0.3.1, when /custom is a directory, the default is /custom/.config/relay-agent/identity.json. Otherwise it uses ~/.config/relay-agent/identity.json (or under XDG_CONFIG_HOME). An existing identity at the old default is copied to the new location if needed, preserving the device registration. The agent user must be able to write there. An explicit --state takes precedence. Keep it private. To restart, run ./relay-agent. Use --state /path/identity.json for a different state location.

Agent 0.3.2 connects to the default Relay server using built-in IP 172.104.172.231 first, without DNS. If the connection fails, it falls back to DNS (a connection attempt waits up to five seconds). TLS still verifies re.eldento.com. Custom server addresses and forwarded target hosts use normal name resolution.

2. Configure its target

The running agent appears automatically under Devices. Set its forwarding URL, for example https://192.168.101.99:8080. Then:

https://DEVICE_ID.d.eldento.com/abc/xyz?q=1
→ https://192.168.101.99:8080/abc/xyz?q=1

The target is reached from the agent’s network. Target HTTPS certificate verification is disabled, so self-signed local services work. Enrollment and the persistent connection to Relay always verify TLS. The public device URL requires no Relay login; the configured target can enforce its own authentication.

In Configure forwarding → Public URLs, add up to 20 ordered entries, each with its own name and target. For example, abc can forward to https://192.168.11.11 while xyz forwards to http://10.10.10.2. Their public addresses are abc.d.eldento.com and xyz.d.eldento.com. The device-ID domain always forwards to the first entry. Reorder entries to change that default. Only the first entry may omit a public name, keeping just the device-ID address. Names are unique across devices; removing an entry releases its name. Response replacements, monitoring, and the forwarding switch apply to all entries on the device.

curl -u 'USERNAME:PASSWORD' -X PUT \
  -H 'Content-Type: application/json' \
  https://re.eldento.com/api/agents/DEVICE_ID \
  -d '{"name":"Office Linux","enabled":true,"public_urls":[{"name":"abc","target_url":"https://192.168.11.11"},{"name":"xyz","target_url":"http://10.10.10.2"}]}'

public_urls replaces the ordered list; an empty list clears forwarding. GET responses include the list with each entry’s url. The top-level url is the device-ID URL. Legacy alias and target_url fields still configure the first entry and preserve later entries; do not combine them with public_urls in one update.

Forwarding behavior

Paths, queries, methods, binary request bodies, statuses, and ordinary headers are forwarded. Base paths in the target URL are prepended. The Host header becomes the target host. Absolute redirects back to that target are rewritten to the public device domain, and cookie Domain attributes are removed. HTML and embedded private URLs are not rewritten.

Requests and responses stream over the agent connection. Each request body is limited to 64 MiB, with 32 concurrent requests per agent and 256 globally. Requests have a 120-second execution deadline. This initial protocol does not support WebSocket upgrades, CONNECT, or indefinite streams. The agent reconnects automatically; interrupted HTTP requests are not replayed.

Offline, disabled, or unconfigured agents return 503. Unknown or revoked devices return 404. Forwarding errors return 502 or 504 when response headers have not yet been sent; otherwise the response connection is closed. Configuration changes apply to subsequent requests.

Browser SSH and private keys

Agent 0.2.0 or later supports interactive SSH through its existing outbound connection. In SSH keys, upload a private key (file or pasted text) with its passphrase if encrypted. You can rename or delete keys, view their public keys and fingerprints, or import keys previously uploaded for SSH command devices. Saved private keys and passphrases are encrypted on the server and are never returned to the browser or sent to the agent.

In Devices → Open SSH terminal, choose the destination host, port, SSH username, and saved key. Use 127.0.0.1 for the agent machine’s SSH server, or another hostname/IP reachable from the agent. The destination must run an SSH server and authorize the selected public key. An HTTP forwarding target does not need to be configured, and HTTP forwarding can remain paused.

Review and accept the SSH host fingerprint on first connection. Host keys are pinned separately for each agent, destination host, and port. A changed key blocks authentication until you explicitly accept it. The browser terminal supports interactive programs, resizing, and Ctrl+C. Closing the terminal disconnects SSH; use tmux or screen remotely for persistent work. Output is not stored in Relay’s HTTP traffic history. There are at most eight SSH sessions per agent and 32 total, with a 30-minute idle timeout and eight-hour session limit. Key deletion, account credential changes, or agent revocation terminate active sessions within about five seconds. Lost connections are not automatically replayed.

To upgrade an existing agent, stop it, replace the executable with the current download for its architecture, and run ./relay-agent using the same Linux user and saved identity (or the same --state path). No new enrollment code is needed. First enrollment is now simply ./relay-agent YOUR_ENROLLMENT_CODE; the old --code option still works.

SSH management API

Account authentication and the usual browser CSRF rules apply. GET /api/ssh-keys lists metadata and public keys; POST /api/ssh-keys accepts name, private_key, and optional passphrase. PUT /api/ssh-keys/{id} renames a key with a name field; DELETE removes it. POST /api/ssh-keys/import imports keys from existing SSH command devices, skipping fingerprints already saved.

POST /api/agents/{id}/ssh-sessions accepts key_id, host (default 127.0.0.1), port (default 22), username, and optional cols/rows. It returns a one-use ticket valid for 60 seconds and websocket_path. Open a same-origin WebSocket there, send {"type":"auth","ticket":"…"} as the first frame, and handle host_key confirmation before terminal input. Tickets are bound to the requesting site and current account credentials; they are never placed in URLs.

Response replacements

Open Configure forwarding → Response replacements. Add up to 20 ordered rules. Literal mode replaces all exact occurrences; backslashes and newlines are used exactly as entered. Regex mode supports capture groups, replacement references \g<1>, \g<name>, or \1, and standard escapes such as \n, \t, and \\. Optional flags are i (ignore case), m (multiline), and s (dot matches newlines). Reorder, disable, or remove rules individually.

Rules modify response bodies, not headers. They apply to text, HTML, JSON, XML, JavaScript, and SVG. With active rules, eligible responses are buffered up to 8 MiB before sending. Binary files, event streams, HEAD, bodyless responses, and partial responses pass through. UTF-8 is the default unless a charset is declared. Identity, gzip, and zlib deflate are supported; changed compressed responses are sent uncompressed with a corrected Content-Length and stale validators removed. Upstream compression is discouraged with Accept-Encoding: identity. Conditional cache headers on GET/HEAD are omitted so the body can be rewritten; write preconditions and range requests are preserved.

If a body or replacement exceeds 8 MiB, its encoding is unsupported, regex execution takes too long, or eight other replacements are in progress, the original response passes through. The traffic monitor shows the skip reason. Regex execution is limited to about 100 ms per rule and 500 ms total. Existing agent binaries work without an update.

Traffic monitor

Enable Monitor HTTP traffic in Configure forwarding, then click View traffic. The monitor records method, path and query, status, duration, byte counts, replacement outcome, request headers/body, and the response headers/body sent by Relay after any replacements. It is off by default. Captures require the Relay account to view and can contain passwords, bearer tokens, cookies, or personal data from your traffic.

Each body is capped at 64 KiB and each header set at 16 KiB. Larger transfers keep their total byte count and a truncation flag; interrupted transfers are marked incomplete. Capture limits do not limit forwarding. The UI can download the captured body bytes. Up to 500 requests per device and 2,000 total are retained for 24 hours. New captures replace the oldest at these limits. Turning monitoring off stops new captures, including in-flight requests; existing history expires normally. Clear history deletes existing captures and discards captures already in flight. The viewer refreshes every five seconds on the latest page; use Older requests for history.

Agent management API

These management endpoints require the same Basic authentication as the command API.

ENDPOINTBEHAVIOR
POST /api/agent-codesReturns HTTP 201 with code and expires (Unix seconds). Code is single-use and valid for 10 minutes.
GET /api/agentsLists enrolled agents with id, name, url, target_url, enabled, online, created, last_seen, platform, and version. No device tokens are returned.
PUT /api/agents/{id}Set JSON name, optional alias (empty to clear, omitted to keep), target_url, and boolean enabled. Target must be HTTP(S), without credentials, query, or fragment. Empty target means unconfigured. Returns {"ok":true}.
DELETE /api/agents/{id}Revokes the agent token and disables public access. Returns {"ok":true}. A new enrollment/identity is needed to reconnect.
curl -u 'USERNAME:PASSWORD' -X PUT \
  -H 'Content-Type: application/json' \
  https://re.eldento.com/api/agents/DEVICE_ID \
  -d '{"name":"Office Linux","target_url":"https://192.168.101.99:8080","enabled":true}'

The executable handles POST /agent/enroll and the authenticated WebSocket at /agent/connect. Browser session or Basic authentication credentials are never stored in the agent; only its individual device token is saved.

Replacement and traffic APIs

PUT /api/agents/{id} also accepts response_rules (an ordered array, empty to clear) and monitor_enabled (boolean). Omitting either preserves its current value. Both fields are returned by GET /api/agents. Include the ordinary name, target URL, and enabled fields when updating.

{
  "name": "Office Linux",
  "target_url": "http://192.168.101.99:8080",
  "enabled": true,
  "monitor_enabled": true,
  "response_rules": [
    {"mode":"literal","pattern":"http://private.local","replacement":"https://x.d.eldento.com","enabled":true},
    {"mode":"regex","pattern":"item-([0-9]+)","replacement":"product-\\g<1>","flags":"i","enabled":true}
  ]
}
ENDPOINTBEHAVIOR
GET /api/agents/{id}/trafficReturns enabled, items (newest 100 metadata records), and next_cursor. Pass ?before=next_cursor for older records.
GET /api/agents/{id}/traffic/{capture_id}Returns one capture, including details.request and details.response with headers (ordered pairs), headers_truncated, body_base64, body_truncated, and body_complete.
DELETE /api/agents/{id}/trafficClears this device's capture history without changing monitoring settings.

All traffic endpoints require account authentication. Browser-session writes also require the CSRF token. Public device domains never expose management or traffic APIs.

Run after logout or reboot

Use a process supervisor such as systemd to keep the agent running. An example user service and operational details are in the agent guide. Start only one process for each saved identity.

Browser sessions & account settings

These endpoints support the web UI. HTTP Basic authentication is simpler for scripts. Session cookies are Secure, HttpOnly, and SameSite=Strict, and persist across browser restarts by default. Relay requests a 100-year cookie lifetime and renews it while you use the app, so there is no normal application login timeout. Browsers may impose a shorter cookie lifetime or clear stored cookies. Signing out or changing credentials invalidates the login. Choose “Sign out when I close my browser” at login to use a session cookie instead. Browsers with session restore may retain session cookies; use Sign out for immediate logout. For session-authenticated modifying requests, include the returned csrf value in the X-CSRF-Token header.

ENDPOINTBEHAVIOR
GET /api/sessionPublic session check: returns setup_required, authenticated, and the signed-in session’s username/CSRF token, or null values when signed out.
POST /api/loginJSON username and password, plus optional boolean remember (default true; false requests a browser-session cookie); sets a login cookie and returns authenticated, username, and csrf.
POST /api/logoutClears the browser session. Requires authentication and, for cookie authentication, CSRF protection.
PUT /api/accountJSON current_password, username, and new password (12–256 characters). Updates credentials, invalidates other sessions, and returns a refreshed session.
POST /api/setupFirst-run account creation only. Requires JSON token supplied by the administrator, username, and password. No public registration after setup.

GET /healthz is a public service health endpoint returning {"ok":true}. It does not test device connectivity.

Commands on agent-connected devices

In Devices, select Run command, or choose a device in Command center. This requires relay-agent 0.3.0 or later. Commands run directly through /bin/sh -c, as the Linux user running the agent and in its working directory. No SSH server or private key is needed. Devices via SSH continues to use reverse SSH tunnels.

curl -u 'USERNAME:PASSWORD' https://re.eldento.com/api/agents
curl -u 'USERNAME:PASSWORD' https://re.eldento.com/api/agents/DEVICE_ID/jobs/ -d 'pwd; ls;'
curl -u 'USERNAME:PASSWORD' https://re.eldento.com/api/jobs/JOB_ID

The submission returns HTTP 202 with id, status, and status_url. JSON requests accept command and timeout (1–86400 seconds). The same job history and result endpoints serve both connection types; connection_type is agent or ssh. Four commands per agent and eight agent commands across the server can run concurrently. Both connection types share a 100-job pending limit.

Each output stream retains its first 4 MiB. Output updates during execution. Jobs continue when you navigate away or close the browser. A device disconnect interrupts execution and never triggers an automatic retry. Timeouts and disconnects terminate the command’s process group; processes that deliberately detach into a different group may survive. Completed results remain in history.

To update an existing device, stop its agent, download the latest binary and restart with the same identity file. No new enrollment code is needed.