Skip to main content
GET
https://api.buntime.sh
/
files
/
read
curl "https://api.buntime.sh/files/read?sessionId=ses_abc123&path=hello.ts" \
  -H "Authorization: Bearer $BUNTIME_API_KEY"

Request

sessionId
string
required
Session ID containing the file
path
string
required
File path relative to /workspace
Authorization
string
required
Bearer token with your API key

Response

Returns the raw file content with appropriate Content-Type header.

Example

curl "https://api.buntime.sh/files/read?sessionId=ses_abc123&path=hello.ts" \
  -H "Authorization: Bearer $BUNTIME_API_KEY"