LogoFreestyle
API Reference/Dev servers

Get logs from the dev server (journalctl -u freestyle-run-dev)

GET/ephemeral/v1/dev-servers/logs

Request Body

application/jsonRequired
devServerRequiredobject
countinteger | null

Number of log lines to return per page (default 200)

Minimum: 0
pageinteger | null

1-based page index. page=1 returns the most recent lines (default 1)

Minimum: 0

Response Body

200

Successful

logsRequiredarray<string>

500

Internal Server Error

responseRequiredstring
curl -X GET "https://api.freestyle.sh/ephemeral/v1/dev-servers/logs" \
  -H "Content-Type: application/json" \
  -d '{
    "devServer": {
      "repoId": "c7c90052-c566-40b6-94a5-a1e9a44bfdc7",
      "gitRef": "string",
      "kind": "repo"
    },
    "count": 0,
    "page": 0
  }'

Successful

{
  "logs": [
    "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.