Welcome to the new Golem Cloud Docs! 👋
Environment

Environment API

List all application environments

PathMethodProtected
/v1/apps/{application_id}/envsGETYes

Example Response JSON

{
  "values": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
      "name": "string",
      "compatibilityCheck": true,
      "versionCheck": true,
      "securityOverrides": true,
      "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b",
      "rolesFromActiveShares": [
        "admin"
      ],
      "currentDeployment": {
        "revision": 0,
        "deploymentRevision": 0,
        "deploymentVersion": "string",
        "deploymentHash": "string"
      }
    }
  ]
}

Create an application environment

PathMethodProtected
/v1/apps/{application_id}/envsPOSTYes

Example Request JSON

{
  "name": "string",
  "compatibilityCheck": true,
  "versionCheck": true,
  "securityOverrides": true
}

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
  "name": "string",
  "compatibilityCheck": true,
  "versionCheck": true,
  "securityOverrides": true,
  "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b",
  "rolesFromActiveShares": [
    "admin"
  ],
  "currentDeployment": {
    "revision": 0,
    "deploymentRevision": 0,
    "deploymentVersion": "string",
    "deploymentHash": "string"
  }
}

Get application environment by name

PathMethodProtected
/v1/apps/{application_id}/envs/{environment_name}GETYes

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
  "name": "string",
  "compatibilityCheck": true,
  "versionCheck": true,
  "securityOverrides": true,
  "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b",
  "rolesFromActiveShares": [
    "admin"
  ],
  "currentDeployment": {
    "revision": 0,
    "deploymentRevision": 0,
    "deploymentVersion": "string",
    "deploymentHash": "string"
  }
}

List all environments that are visible to the current user, either directly or through shares.

PathMethodProtected
/v1/envsGETYes

Query Parameters

NameTypeRequiredDescription
account_emailstringNo-
app_namestringNo-
env_namestringNo-

Example Response JSON

{
  "values": [
    {
      "environment": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "revision": 0,
        "name": "string",
        "compatibilityCheck": true,
        "versionCheck": true,
        "securityOverrides": true,
        "rolesFromActiveShares": [
          "admin"
        ],
        "currentDeployment": {
          "revision": 0,
          "deploymentRevision": 0,
          "deploymentVersion": "string",
          "deploymentHash": "string"
        }
      },
      "application": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string"
      },
      "account": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string",
        "email": "string"
      }
    }
  ]
}

Get environment by id.

PathMethodProtected
/v1/envs/{environment_id}GETYes

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
  "name": "string",
  "compatibilityCheck": true,
  "versionCheck": true,
  "securityOverrides": true,
  "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b",
  "rolesFromActiveShares": [
    "admin"
  ],
  "currentDeployment": {
    "revision": 0,
    "deploymentRevision": 0,
    "deploymentVersion": "string",
    "deploymentHash": "string"
  }
}

Delete environment by id.

PathMethodProtected
/v1/envs/{environment_id}DELETEYes

Query Parameters

NameTypeRequiredDescription
current_revisionintegerYes-

Update environment by id.

PathMethodProtected
/v1/envs/{environment_id}PATCHYes

Example Request JSON

{
  "currentRevision": 0,
  "name": "string",
  "compatibilityCheck": true,
  "versionCheck": true,
  "securityOverrides": true
}

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
  "name": "string",
  "compatibilityCheck": true,
  "versionCheck": true,
  "securityOverrides": true,
  "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b",
  "rolesFromActiveShares": [
    "admin"
  ],
  "currentDeployment": {
    "revision": 0,
    "deploymentRevision": 0,
    "deploymentVersion": "string",
    "deploymentHash": "string"
  }
}

Get the current deployment plan

PathMethodProtected
/v1/envs/{environment_id}/planGETYes

Example Response JSON

{
  "currentRevision": 0,
  "deploymentHash": "string",
  "components": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "name": "string",
      "hash": "string"
    }
  ],
  "httpApiDefinitions": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "name": "string",
      "hash": "string"
    }
  ],
  "httpApiDeployments": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "domain": "string",
      "hash": "string"
    }
  ]
}

Rollback an environment to a previous deployment

PathMethodProtected
/v1/envs/{environment_id}/current-deploymentPUTYes

Example Request JSON

{
  "currentRevision": 0,
  "deploymentRevision": 0
}

Example Response JSON

{
  "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
  "revision": 0,
  "version": "string",
  "deploymentHash": "string",
  "currentRevision": 0
}

List all deployments in this environment

PathMethodProtected
/v1/envs/{environment_id}/deploymentsGETYes

Query Parameters

NameTypeRequiredDescription
versionstringNo-

Example Response JSON

{
  "values": [
    {
      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
      "revision": 0,
      "version": "string",
      "deploymentHash": "string"
    }
  ]
}

Deploy the current staging area of this environment

PathMethodProtected
/v1/envs/{environment_id}/deploymentsPOSTYes

Example Request JSON

{
  "currentRevision": 0,
  "expectedDeploymentHash": "string",
  "version": "string"
}

Example Response JSON

{
  "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
  "revision": 0,
  "version": "string",
  "deploymentHash": "string",
  "currentRevision": 0
}

Get the deployment summary of a deployed deployment

PathMethodProtected
/v1/envs/{environment_id}/deployments/{deployment_id}/summaryGETYes

Example Response JSON

{
  "deploymentRevision": 0,
  "deploymentHash": "string",
  "components": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "name": "string",
      "hash": "string"
    }
  ],
  "httpApiDefinitions": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "name": "string",
      "hash": "string"
    }
  ],
  "httpApiDeployments": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "domain": "string",
      "hash": "string"
    }
  ]
}

List all registered agent types in a deployment

PathMethodProtected
/v1/envs/{environment_id}/deployments/{deployment_id}/agent-typesGETYes

Example Response JSON

{
  "values": [
    {
      "agentType": {
        "typeName": "string",
        "description": "string",
        "constructor": {
          "name": "string",
          "description": "string",
          "promptHint": "string",
          "inputSchema": {
            "type": "Multimodal",
            "elements": [
              {
                "name": "string",
                "schema": {
                  "type": "ComponentModel",
                  "elementType": {
                    "type": "Variant",
                    "name": "string",
                    "owner": "string",
                    "cases": [
                      {
                        "name": "string",
                        "typ": {}
                      }
                    ]
                  }
                }
              }
            ]
          }
        },
        "methods": [
          {
            "name": "string",
            "description": "string",
            "promptHint": "string",
            "inputSchema": {
              "type": "Multimodal",
              "elements": [
                {
                  "name": "string",
                  "schema": {
                    "type": "ComponentModel",
                    "elementType": {
                      "type": "Variant",
                      "name": "string",
                      "owner": "string",
                      "cases": [
                        {
                          "name": "string",
                          "typ": {}
                        }
                      ]
                    }
                  }
                }
              ]
            },
            "outputSchema": {
              "type": "Multimodal",
              "elements": [
                {
                  "name": "string",
                  "schema": {
                    "type": "ComponentModel",
                    "elementType": {
                      "type": "Variant",
                      "name": "string",
                      "owner": "string",
                      "cases": [
                        {
                          "name": "string",
                          "typ": {}
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        ],
        "dependencies": [
          {
            "typeName": "string",
            "description": "string",
            "constructor": {
              "name": "string",
              "description": "string",
              "promptHint": "string",
              "inputSchema": {
                "type": "Multimodal",
                "elements": [
                  {
                    "name": "string",
                    "schema": {
                      "type": "ComponentModel",
                      "elementType": {
                        "type": "Variant",
                        "name": "string",
                        "owner": "string",
                        "cases": [
                          {
                            "name": "string",
                            "typ": {}
                          }
                        ]
                      }
                    }
                  }
                ]
              }
            },
            "methods": [
              {
                "name": "string",
                "description": "string",
                "promptHint": "string",
                "inputSchema": {
                  "type": "Multimodal",
                  "elements": [
                    {
                      "name": "string",
                      "schema": {
                        "type": "ComponentModel",
                        "elementType": {
                          "type": "Variant",
                          "name": "string",
                          "owner": "string",
                          "cases": [
                            {}
                          ]
                        }
                      }
                    }
                  ]
                },
                "outputSchema": {
                  "type": "Multimodal",
                  "elements": [
                    {
                      "name": "string",
                      "schema": {
                        "type": "ComponentModel",
                        "elementType": {
                          "type": "Variant",
                          "name": "string",
                          "owner": "string",
                          "cases": [
                            {}
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        ],
        "mode": "Durable"
      },
      "implementedBy": {
        "componentId": "616ccd92-d666-4180-8349-8d125b269fac",
        "componentRevision": 0
      }
    }
  ]
}

Get a registered agent type in a deployment

PathMethodProtected
/v1/envs/{environment_id}/deployments/{deployment_id}/agent-types/{agent_type_name}GETYes

Example Response JSON

{
  "agentType": {
    "typeName": "string",
    "description": "string",
    "constructor": {
      "name": "string",
      "description": "string",
      "promptHint": "string",
      "inputSchema": {
        "type": "Multimodal",
        "elements": [
          {
            "name": "string",
            "schema": {
              "type": "ComponentModel",
              "elementType": {
                "type": "Variant",
                "name": "string",
                "owner": "string",
                "cases": [
                  {
                    "name": "string",
                    "typ": {}
                  }
                ]
              }
            }
          }
        ]
      }
    },
    "methods": [
      {
        "name": "string",
        "description": "string",
        "promptHint": "string",
        "inputSchema": {
          "type": "Multimodal",
          "elements": [
            {
              "name": "string",
              "schema": {
                "type": "ComponentModel",
                "elementType": {
                  "type": "Variant",
                  "name": "string",
                  "owner": "string",
                  "cases": [
                    {
                      "name": "string",
                      "typ": {}
                    }
                  ]
                }
              }
            }
          ]
        },
        "outputSchema": {
          "type": "Multimodal",
          "elements": [
            {
              "name": "string",
              "schema": {
                "type": "ComponentModel",
                "elementType": {
                  "type": "Variant",
                  "name": "string",
                  "owner": "string",
                  "cases": [
                    {
                      "name": "string",
                      "typ": {}
                    }
                  ]
                }
              }
            }
          ]
        }
      }
    ],
    "dependencies": [
      {
        "typeName": "string",
        "description": "string",
        "constructor": {
          "name": "string",
          "description": "string",
          "promptHint": "string",
          "inputSchema": {
            "type": "Multimodal",
            "elements": [
              {
                "name": "string",
                "schema": {
                  "type": "ComponentModel",
                  "elementType": {
                    "type": "Variant",
                    "name": "string",
                    "owner": "string",
                    "cases": [
                      {
                        "name": "string",
                        "typ": {}
                      }
                    ]
                  }
                }
              }
            ]
          }
        },
        "methods": [
          {
            "name": "string",
            "description": "string",
            "promptHint": "string",
            "inputSchema": {
              "type": "Multimodal",
              "elements": [
                {
                  "name": "string",
                  "schema": {
                    "type": "ComponentModel",
                    "elementType": {
                      "type": "Variant",
                      "name": "string",
                      "owner": "string",
                      "cases": [
                        {
                          "name": "string",
                          "typ": {}
                        }
                      ]
                    }
                  }
                }
              ]
            },
            "outputSchema": {
              "type": "Multimodal",
              "elements": [
                {
                  "name": "string",
                  "schema": {
                    "type": "ComponentModel",
                    "elementType": {
                      "type": "Variant",
                      "name": "string",
                      "owner": "string",
                      "cases": [
                        {
                          "name": "string",
                          "typ": {}
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    ],
    "mode": "Durable"
  },
  "implementedBy": {
    "componentId": "616ccd92-d666-4180-8349-8d125b269fac",
    "componentRevision": 0
  }
}

Environment API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"errors":["string"]}
401Unauthorized request{"error":"string"}
403Forbidden Request{"error":"string"}
404Entity not found{"error":"string"}
409{"error":"string"}
422Limits of the plan exceeded{"error":"string"}
500Internal server error{"error":"string"}