LogoFreestyle
API ReferenceDev servers

Execute a command on a Dev Server

POST
/ephemeral/v1/dev-servers/exec

Request Body

application/json

devServer*
command*string
background*boolean

Spawn this command as a background process and return immediately

Response Body

application/json

curl -X POST "https://api.freestyle.sh/ephemeral/v1/dev-servers/exec" \  -H "Content-Type: application/json" \  -d '{    "devServer": {      "repoId": "c7c90052-c566-40b6-94a5-a1e9a44bfdc7"    },    "command": "string",    "background": true  }'
{
  "id": "string",
  "isNew": true,
  "stdout": [
    "string"
  ],
  "stderr": [
    "string"
  ]
}

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.