These endpoints are served under theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/KevinCruz-cell/Redes-de-comunicaciones-/llms.txt
Use this file to discover all available pages before exploring further.
/router4 prefix and interact with the router via SSH and SCP. All endpoints require an active session (see Authentication). Three of the four operations cause the router to reboot — plan accordingly before calling them.
GET /router4/backup/descargar
Creates a configuration backup on the router usingsysupgrade -b, then streams the resulting archive to the browser as a file download.
How it works
- Runs
sysupgrade -b /tmp/backup.tar.gzon the router via SSH. - Reads
/tmp/backup.tar.gzover SSH and streams the bytes directly to the HTTP response. - Deletes the temporary file from the router after streaming.
Response
On success, returns a binary file download with the following headers:| Header | Value |
|---|---|
Content-Type | application/gzip |
Content-Disposition | attachment; filename="backup_router_{YYYY-MM-DD_H-i-s}.tar.gz" |
Cache-Control | private |
Content-Length | Size of the backup archive in bytes |
/router4/copia with an error flash message.
The backup contains only the router’s configuration overlay (files in
/etc/config and other overlays tracked by OpenWrt). It does not include the full firmware image.POST /router4/backup/restaurar
Transfers a backup archive to the router via SCP and runssysupgrade -r to restore the configuration.
Request
Send asmultipart/form-data.
Backup archive to restore. Must be a
.gz or .tar.gz file. Maximum size: 10 MB.Response
On success, redirects to/router4/copia with a success flash message. The router will reboot to apply the restored configuration.
POST /router4/reset
Performs a factory reset by runningfirstboot -y && reboot on the router. All configuration is erased and the router returns to its default firmware state.
Request
Must be the string
"true" to confirm the reset. Any other value cancels the operation and redirects with an error.Response
On success (whenconfirm is "true"), redirects to /router4/copia with a warning flash message. On cancellation, redirects with an error flash message.
POST /router4/firmware/grabar
Transfers a firmware image to the router via SCP and runssysupgrade to flash it. The router will reboot into the new firmware.
Request
Send asmultipart/form-data.
Firmware image to flash. Must be a
.bin file. Maximum size: 20 MB.Response
Redirects to/router4/copia with a warning flash message indicating the flash is in progress.