Get Vibe site file contents

Returns the full contents of up to 20 source files from the site's current editor version, with each file's path and size in bytes.

  • Pass each file with its own path parameter, as returned by List Vibe site files. Repeated paths are returned once, and files are returned in the order requested.
  • Paths that don't exist or aren't visible (see List Vibe site files) are left out of the response. They aren't an error.
  • A file with no content returns content as an empty string.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The site's unique name (its ID), returned when the site is created.

Query Params
path
array of strings
required
length between 1 and 20

Path of a file to read, such as src/App.tsx. Repeat the parameter to read several files in one call, from 1 to 20. A leading / and surrounding whitespace are ignored.

path*
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json