LogoFreestyle
API Reference/Dev servers

Read a file from a Dev Server

POST
/ephemeral/v1/dev-servers/files/{filepath}

Path Parameters

filepathRequiredstring

The path to the file to read from the dev server

Response Body

200

Successful

idRequiredstring
isNewRequiredboolean
contentRequiredobject | object

404

Not found

idRequiredstring
isNewRequiredboolean

500

Internal Server Error

responseRequiredstring
curl -X POST "https://api.freestyle.sh/ephemeral/v1/dev-servers/files/<string>"

Successful

{
  "id": "string",
  "isNew": true,
  "content": {
    "content": "string",
    "encoding": "string",
    "kind": "file"
  }
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.