Welcome to the new Golem Cloud Docs! 👋

Me API

Gets information about the current token.

The JSON is the same as the data object in the oauth2 endpoint's response.

PathMethodProtected
/v1/me/tokenGETYes

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
  "createdAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z"
}

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

PathMethodProtected
/v1/me/visible-environmentsGETYes

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"
      }
    }
  ]
}

Me API Errors

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