LogoFreestyle
API Reference/Dev servers

Request a Dev Server

POST/ephemeral/v1/dev-servers

Request Body

application/jsonRequired
devCommandstring | null
preDevCommandOncestring | null
envVarsobject | null
repoIdstring | null
domainDeprecatedstring | null
repoDeprecatedstring | null
curl -X POST "https://api.freestyle.sh/ephemeral/v1/dev-servers" \
  -H "Content-Type: application/json" \
  -d '{
    "devCommand": "string",
    "preDevCommandOnce": "string",
    "envVars": {
      "RESEND_API_KEY": "re_123456789"
    },
    "repoId": "string",
    "domain": "string",
    "repo": "string"
  }'

Successful

{
  "url": "string",
  "isNew": true,
  "devCommandRunning": true,
  "installCommandRunning": true,
  "mcpEphemeralUrl": "string",
  "ephemeralUrl": "string"
}