Skip to content

The Backend Connections API provides direct, on-demand access to files stored on remote systems without requiring a persistent mount. Use these endpoints to read files from FTP, S3, SSH, and Git servers, upload files via SSH/SFTP, and manage basic authentication state.

Connect to an FTP or FTPS server and retrieve a file or directory listing.

NameInTypeRequiredDescription
pathpathstringYesPath to the file or directory on the remote server
typequerystringYesConnection type. Must be ftp
serverquerystringYesFTP server hostname
userquerystringNoFTP username. Default: "anonymous"
passquerystringNoFTP password
ftp_securequerybooleanNoUse FTPS (FTP over TLS). Default: false
ftp_passivequerybooleanNoUse passive mode. Default: true
Terminal window
curl -G "https://api.hoody.com/files/var/www/index.html" \
--data-urlencode "type=ftp" \
--data-urlencode "server=ftp.example.com" \
--data-urlencode "user=admin" \
--data-urlencode "pass=secret123" \
--data-urlencode "ftp_secure=true" \
--data-urlencode "ftp_passive=true"

Fetch a file from a Git repository hosted on GitHub, GitLab, Bitbucket, or a custom Git server.

NameInTypeRequiredDescription
pathpathstringYesPath to the file inside the repository
typequerystringYesConnection type. Must be git
urlquerystringYesFull GitHub/GitLab/Bitbucket URL or repository URL
refquerystringNoBranch, tag, or commit (defaults to HEAD or extracted from URL)
passquerystringNoPersonal Access Token (base64 encoded) for private repos
Terminal window
curl -G "https://api.hoody.com/files/src/index.js" \
--data-urlencode "type=git" \
--data-urlencode "url=https://github.com/hoody/platform" \
--data-urlencode "ref=main"

Access an object from AWS S3 or an S3-compatible storage service such as MinIO or DigitalOcean Spaces.

NameInTypeRequiredDescription
pathpathstringYesObject key or prefix on the S3 bucket
typequerystringYesConnection type. Must be s3
serverquerystringYesS3 server hostname
s3_bucketquerystringYesS3 bucket name
s3_regionquerystringYesAWS region (e.g. us-east-1)
userquerystringNoAWS Access Key ID
passquerystringNoAWS Secret Key (base64 encoded)
s3_endpointquerystringNoCustom S3 endpoint for MinIO, etc.
Terminal window
curl -G "https://api.hoody.com/files/documents/report.pdf" \
--data-urlencode "type=s3" \
--data-urlencode "server=s3.amazonaws.com" \
--data-urlencode "s3_bucket=my-bucket" \
--data-urlencode "s3_region=us-east-1" \
--data-urlencode "user=AKIAIOSFODNN7EXAMPLE" \
--data-urlencode "pass=c2VjcmV0S2V5"

Connect to a remote SSH server and retrieve a file or directory listing over SFTP.

NameInTypeRequiredDescription
pathpathstringYesPath to the file or directory on the remote server
typequerystringYesConnection type. Must be ssh
serverquerystringYesServer hostname:port
userquerystringYesSSH username
passquerystringNoPassword (base64 encoded)
keyquerystringNoPrivate key PEM (base64 encoded)
passphrasequerystringNoKey passphrase (base64 encoded)
Terminal window
curl -G "https://api.hoody.com/files/etc/nginx/nginx.conf" \
--data-urlencode "type=ssh" \
--data-urlencode "server=server.example.com:22" \
--data-urlencode "user=deploy" \
--data-urlencode "key=$(base64 -w0 ~/.ssh/id_rsa)"

Upload a file to a remote SSH server over SFTP. The request body is sent as the file’s raw content.

NameInTypeRequiredDescription
pathpathstringYesDestination path on the remote server

The request body is the raw file content uploaded as application/octet-stream. No additional fields are required.

Terminal window
curl -X PUT "https://api.hoody.com/files/var/www/index.html?type=ssh" \
-H "Content-Type: application/octet-stream" \
--data-binary @./index.html

Verify the current authentication status. Returns the authenticated username in the response body, or an empty string if not authenticated.

NameInTypeRequiredDescription
pathpathstringYesPath to the file or directory
Terminal window
curl -X CHECKAUTH "https://api.hoody.com/files/index.html"

Clear the current authentication credentials. The server responds with a WWW-Authenticate header that forces the client to discard stored credentials.

NameInTypeRequiredDescription
pathpathstringYesPath to the file or directory
Terminal window
curl -X LOGOUT "https://api.hoody.com/files/index.html" -i