http
GET /projects/{project_reference}/environmentsList environments. Requires project.read.
Servers
JSON
1[2 {3 "url": "https://api.veryfront.com"4 }5]Authentication
JSON
1[2 {3 "bearerAuth": []4 },5 {6 "apiKeyAuth": []7 }8]JSON
1{2 "bearerAuth": {3 "type": "http",4 "scheme": "bearer",5 "bearerFormat": "JWT or API Key",6 "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."7 },8 "apiKeyAuth": {9 "type": "apiKey",10 "in": "header",11 "name": "X-API-Key",12 "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."13 }14}Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| project_reference | path | Yes | Project slug, UUID, or domain that identifies the project. |
| cursor | query | No | Cursor for pagination: an environment ID from this project. An unknown cursor is rejected. |
| limit | query | No | Page size, 1 to 100. Defaults to 20. |
| sort_by | query | No | Sort field: "name" or "updated_at". |
| sort_order | query | No | Sort order: "asc" or "desc". |
Parameter contracts
JSON
1[2 {3 "schema": {4 "$ref": "#/components/schemas/ProjectReference"5 },6 "required": true,7 "description": "Project slug, UUID, or domain that identifies the project.",8 "name": "project_reference",9 "in": "path"10 },11 {12 "schema": {13 "type": "string",14 "description": "Cursor for pagination: an environment ID from this project. An unknown cursor is rejected."15 },16 "required": false,17 "description": "Cursor for pagination: an environment ID from this project. An unknown cursor is rejected.",18 "name": "cursor",19 "in": "query"20 },21 {22 "schema": {23 "type": "integer",24 "minimum": 1,25 "maximum": 100,26 "default": 20,27 "description": "Page size, 1 to 100. Defaults to 20."28 },29 "required": false,30 "description": "Page size, 1 to 100. Defaults to 20.",31 "name": "limit",32 "in": "query"33 },34 {35 "schema": {36 "type": "string",37 "enum": [38 "name",39 "updated_at"40 ],41 "description": "Sort field: \"name\" or \"updated_at\"."42 },43 "required": false,44 "description": "Sort field: \"name\" or \"updated_at\".",45 "name": "sort_by",46 "in": "query"47 },48 {49 "schema": {50 "type": "string",51 "enum": [52 "asc",53 "desc"54 ],55 "description": "Sort order: \"asc\" or \"desc\"."56 },57 "required": false,58 "description": "Sort order: \"asc\" or \"desc\".",59 "name": "sort_order",60 "in": "query"61 }62]Responses
200
Paginated list of environments for the project
JSON
1{2 "description": "Paginated list of environments for the project",3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "data": {9 "type": "array",10 "items": {11 "$ref": "#/components/schemas/Environment"12 }13 },14 "page_info": {15 "$ref": "#/components/schemas/PageInfo"16 }17 },18 "required": [19 "data",20 "page_info"21 ]22 }23 }24 }25}400
Bad request
JSON
1{2 "description": "Bad request",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}401
Unauthorized
JSON
1{2 "description": "Unauthorized",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}403
Forbidden
JSON
1{2 "description": "Forbidden",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}404
Not found
JSON
1{2 "description": "Not found",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}500
Server error
JSON
1{2 "description": "Server error",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}Referenced contracts
components/parameters/ProjectReference
JSON
1{2 "schema": {3 "$ref": "#/components/schemas/ProjectReference"4 },5 "required": true,6 "description": "Project slug, UUID, or domain that identifies the project.",7 "name": "project_reference",8 "in": "path"9}components/schemas/ProjectReference
JSON
1{2 "type": "string"3}components/schemas/Environment
JSON
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "format": "uuid"7 },8 "name": {9 "type": "string"10 },11 "project_id": {12 "type": "string",13 "format": "uuid"14 },15 "protected": {16 "type": "boolean"17 },18 "domains": {19 "type": "array",20 "items": {21 "type": "string"22 },23 "description": "Custom domains attached to the environment."24 },25 "environment_variables": {26 "type": "array",27 "items": {28 "type": "object",29 "properties": {30 "id": {31 "type": "string",32 "format": "uuid"33 },34 "key": {35 "type": "string"36 },37 "value": {38 "type": "string",39 "enum": [40 "********"41 ],42 "description": "Always masked; secret values are never returned."43 },44 "has_value": {45 "type": "boolean"46 }47 },48 "required": [49 "id",50 "key",51 "value",52 "has_value"53 ]54 },55 "description": "Variable metadata with masked values."56 },57 "deployment": {58 "type": [59 "object",60 "null"61 ],62 "properties": {63 "id": {64 "type": "string",65 "format": "uuid"66 },67 "created_at": {68 "type": [69 "string",70 "null"71 ]72 },73 "updated_at": {74 "type": [75 "string",76 "null"77 ]78 },79 "release": {80 "type": [81 "object",82 "null"83 ],84 "properties": {85 "id": {86 "type": "string",87 "format": "uuid"88 },89 "name": {90 "type": [91 "string",92 "null"93 ]94 },95 "export_status": {96 "type": [97 "string",98 "null"99 ]100 },101 "build_status": {102 "type": [103 "string",104 "null"105 ]106 },107 "deploy_status": {108 "type": [109 "string",110 "null"111 ]112 },113 "created_at": {114 "type": [115 "string",116 "null"117 ]118 },119 "updated_at": {120 "type": [121 "string",122 "null"123 ]124 }125 },126 "required": [127 "id",128 "name",129 "export_status",130 "build_status",131 "deploy_status",132 "created_at",133 "updated_at"134 ]135 }136 },137 "required": [138 "id",139 "created_at",140 "updated_at",141 "release"142 ],143 "description": "Latest deployment in the environment."144 },145 "created_at": {146 "type": "string"147 },148 "updated_at": {149 "type": "string"150 }151 },152 "required": [153 "id",154 "name",155 "project_id",156 "protected",157 "domains",158 "environment_variables"159 ]160}components/schemas/PageInfo
JSON
1{2 "type": "object",3 "properties": {4 "self": {5 "type": [6 "string",7 "null"8 ],9 "description": "Cursor pointing to the current page"10 },11 "first": {12 "type": "null",13 "description": "First page cursor (always null for cursor-based pagination)"14 },15 "next": {16 "type": [17 "string",18 "null"19 ],20 "description": "Cursor for the next page (null if no more pages)"21 },22 "prev": {23 "type": [24 "string",25 "null"26 ],27 "description": "Cursor for the previous page (null if on first page)"28 }29 },30 "required": [31 "self",32 "first",33 "next",34 "prev"35 ]36}components/schemas/Problem
JSON
1{2 "type": "object",3 "properties": {4 "cause": {5 "type": "string",6 "enum": [7 "schedule_concurrency_forbidden",8 "schedule_fire_in_progress",9 "schedule_run_limit_reached"10 ],11 "description": "Schedule admission refusal."12 },13 "idempotency": {14 "type": "object",15 "properties": {16 "state": {17 "type": "string",18 "enum": [19 "in_progress",20 "payload_mismatch",21 "outcome_unknown"22 ]23 },24 "operation": {25 "type": "string",26 "minLength": 127 },28 "retryable": {29 "type": "boolean"30 },31 "retry_after_seconds": {32 "type": [33 "integer",34 "null"35 ],36 "minimum": 037 },38 "expires_at": {39 "type": [40 "string",41 "null"42 ]43 },44 "recovery": {45 "type": "object",46 "properties": {47 "available": {48 "type": "boolean"49 },50 "description": {51 "type": "string"52 },53 "resource_url": {54 "type": "string"55 }56 },57 "required": [58 "available",59 "description"60 ]61 }62 },63 "required": [64 "state",65 "operation",66 "retryable",67 "retry_after_seconds",68 "expires_at"69 ],70 "description": "Replay status, retry timing, and recovery lookup."71 },72 "type": {73 "type": "string",74 "description": "URI reference identifying the problem type",75 "example": "https://api.veryfront.com/errors/validation-failed"76 },77 "title": {78 "type": "string",79 "description": "Short human-readable summary of the problem",80 "example": "Validation Failed"81 },82 "status": {83 "type": "integer",84 "minimum": 100,85 "maximum": 599,86 "description": "HTTP status code",87 "example": 40088 },89 "code": {90 "type": "string",91 "description": "Stable machine-readable error code",92 "example": "RUN_INVALID_INPUT"93 },94 "detail": {95 "type": "string",96 "description": "Human-readable explanation specific to this occurrence",97 "example": "The 'email' field must be a valid email address"98 },99 "instance": {100 "type": "string",101 "description": "URI reference identifying the specific occurrence",102 "example": "/projects/my-project/members"103 },104 "slug": {105 "type": "string",106 "description": "Stable identifier for the problem type",107 "example": "validation-failed"108 },109 "category": {110 "type": "string",111 "enum": [112 "AUTH",113 "RESOURCE",114 "VALIDATION",115 "DATABASE",116 "SUBSCRIPTION",117 "INTEGRATION",118 "INTERNAL"119 ],120 "description": "API error category",121 "example": "VALIDATION"122 },123 "suggestion": {124 "type": "string",125 "description": "Suggested action to resolve the problem",126 "example": "Check the request body and query parameters against the API documentation."127 },128 "errors": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "field": {134 "type": "string",135 "description": "Field path that caused the error",136 "example": "email"137 },138 "message": {139 "type": "string",140 "description": "Error message for this field",141 "example": "Invalid email format"142 },143 "code": {144 "type": "string",145 "description": "Error code for this field",146 "example": "INVALID_FORMAT"147 }148 },149 "required": [150 "field",151 "message"152 ]153 },154 "description": "Detailed field-level errors for validation failures"155 }156 },157 "required": [158 "type",159 "title",160 "status"161 ]162}Operation contract
JSON
1{2 "operationId": "listEnvironments",3 "tags": [4 "runtime/Environments/Environments"5 ],6 "summary": "List environments",7 "description": "List environments. Requires project.read.",8 "parameters": [9 {10 "$ref": "#/components/parameters/ProjectReference"11 },12 {13 "schema": {14 "type": "string",15 "description": "Cursor for pagination: an environment ID from this project. An unknown cursor is rejected."16 },17 "required": false,18 "description": "Cursor for pagination: an environment ID from this project. An unknown cursor is rejected.",19 "name": "cursor",20 "in": "query"21 },22 {23 "schema": {24 "type": "integer",25 "minimum": 1,26 "maximum": 100,27 "default": 20,28 "description": "Page size, 1 to 100. Defaults to 20."29 },30 "required": false,31 "description": "Page size, 1 to 100. Defaults to 20.",32 "name": "limit",33 "in": "query"34 },35 {36 "schema": {37 "type": "string",38 "enum": [39 "name",40 "updated_at"41 ],42 "description": "Sort field: \"name\" or \"updated_at\"."43 },44 "required": false,45 "description": "Sort field: \"name\" or \"updated_at\".",46 "name": "sort_by",47 "in": "query"48 },49 {50 "schema": {51 "type": "string",52 "enum": [53 "asc",54 "desc"55 ],56 "description": "Sort order: \"asc\" or \"desc\"."57 },58 "required": false,59 "description": "Sort order: \"asc\" or \"desc\".",60 "name": "sort_order",61 "in": "query"62 }63 ],64 "responses": {65 "200": {66 "description": "Paginated list of environments for the project",67 "content": {68 "application/json": {69 "schema": {70 "type": "object",71 "properties": {72 "data": {73 "type": "array",74 "items": {75 "$ref": "#/components/schemas/Environment"76 }77 },78 "page_info": {79 "$ref": "#/components/schemas/PageInfo"80 }81 },82 "required": [83 "data",84 "page_info"85 ]86 }87 }88 }89 },90 "400": {91 "description": "Bad request",92 "content": {93 "application/problem+json": {94 "schema": {95 "$ref": "#/components/schemas/Problem"96 }97 }98 }99 },100 "401": {101 "description": "Unauthorized",102 "content": {103 "application/problem+json": {104 "schema": {105 "$ref": "#/components/schemas/Problem"106 }107 }108 }109 },110 "403": {111 "description": "Forbidden",112 "content": {113 "application/problem+json": {114 "schema": {115 "$ref": "#/components/schemas/Problem"116 }117 }118 }119 },120 "404": {121 "description": "Not found",122 "content": {123 "application/problem+json": {124 "schema": {125 "$ref": "#/components/schemas/Problem"126 }127 }128 }129 },130 "500": {131 "description": "Server error",132 "content": {133 "application/problem+json": {134 "schema": {135 "$ref": "#/components/schemas/Problem"136 }137 }138 }139 }140 },141 "x-documentation-source-tag": "Environments",142 "x-canonical-documentation": {143 "domain": "runtime",144 "resource": "Environments",145 "subgroup": "Environments",146 "name": "List environments",147 "description": "List environments. Requires project.read.",148 "operationId": "listEnvironments"149 },150 "x-mint": {151 "href": "/cloud/rest/api-reference/runtime-environments-environments/list-environments"152 }153}