Skip to main content
Named per-project environments. Every project has implicit production and preview environments; create more to give env vars, databases, storage, and deploys an isolated scope.

environments.list

List the project’s environments — the implicit production and preview ones plus any custom environments.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

An array of objects with these fields:

environments.create

Create a custom environment. The slug is derived from the name when omitted; “production” and “preview” are reserved for the implicit environments.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: write

Request body

Example

Responses

Response body (201)

environments.delete

Delete a custom environment with its env vars, database, storage objects, and deployment history. The implicit production and preview environments cannot be deleted. This cannot be undone.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Risk: destructive · sensitive (elevated blast radius)

Example

Responses