Skip to Content
SeyloDocs
API referenceEnvironment

Get a service's environment

GET
/api/v1/env.get

Returns the service's .env text as saved, the parsed variables (references left as written) and how many shared project variables it also receives.

Needs env.view on the service (a grant on its project covers it). Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Query Parameters

serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$

Response Body

Success.

application/json
  1. response
text*string

Contents of a .env file.

Lengthlength <= 262144
variables*array<>
sharedCount*integer
Range0 <= value
updatedAt*|null
Example Request
curl -X GET 'https://example.com/api/v1/env.get?serviceId=string'
Example Response
{  "text": "string",  "variables": [    {      "key": "string",      "value": "string",      "line": 1    }  ],  "sharedCount": 0,  "updatedAt": "2019-08-24T14:15:22Z"}