Environment variables
The project's environment variables; changes apply from the next version.
On this page
Concepts: Environment variables and cron jobs
Endpoint summaries come from the OpenAPI document.
GET/v1/projects/{project}/env
Environment variables, including the system ones. Sensitive values are never returned
- Operation (MCP tool)
listEnvVars- Authentication
- API key (pfa_…)OAuth token (pfo_…)
Parameters
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.
PUT/v1/projects/{project}/env/{key}
Add or change a variable; applies from the next version. Not with an agent profile
- Operation (MCP tool)
setEnvVar- Authentication
- API key (pfa_…)OAuth token (pfo_…)
Parameters
Request body
application/jsonobjectRequired
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.
DELETE/v1/projects/{project}/env/{key}
Remove a variable
- Operation (MCP tool)
deleteEnvVar- Authentication
- API key (pfa_…)OAuth token (pfo_…)
Parameters
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.