Skip to main content
GET
/
api
/
sandboxes
/
file
cURL
curl --request GET \
  --url https://api.recoupable.com/api/sandboxes/file
{
  "status": "success",
  "content": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developers.recoupable.com/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

path
string
required

The file path within the repository (e.g. "src/index.ts" or "README.md").

Example:

"src/index.ts"

Response

File contents retrieved successfully

status
enum<string>
required

Status of the operation

Available options:
success
content
string
required

The file content. Text files (.md, .json, .txt, source code, etc.) are returned verbatim. Binary files (.mp3, .png, .jpg, .mp4, .pdf, etc.) are returned base64-encoded — decode before writing to disk. The encoding is inferred from the file extension server-side; encoding field is not yet returned but planned.