API Reference

The Workspace API endpoints provide an interface for getting information about Chain workspaces.

Workspace

Properties

NameTypeDescriptionRestrictions
company_idIDThe unique identifier of a resource (can be a GUID).
descriptionstringA description of the workspace.
external_idIDThe unique identifier of a resource (can be a GUID).
idIDThe unique identifier of a resource (can be a GUID).
namestringThe name of the workspace.
variables[Variable]A list of the workspace's variables.

Example

{
  "company_id": "74",
  "description": "string",
  "external_id": "74",
  "id": "74",
  "name": "string",
  "variables": [
    {
      "defaultValue": "string",
      "encrypted": true,
      "key": "string",
      "label": "string",
      "value": "string"
    }
  ]
}

Variable

Properties

NameTypeDescriptionRestrictions
defaultValuestring
encryptedboolean
keystring
labelstring
valuestring

Example

{
  "defaultValue": "string",
  "encrypted": true,
  "key": "string",
  "label": "string",
  "value": "string"
}

WorkspaceResponse

Properties

NameTypeDescriptionRestrictions
dataWorkspace

Example

{
  "data": {
    "company_id": "74",
    "description": "string",
    "external_id": "74",
    "id": "74",
    "name": "string",
    "variables": [
      {
        "defaultValue": "string",
        "encrypted": true,
        "key": "string",
        "label": "string",
        "value": "string"
      }
    ]
  }
}