Variables

Fetch variables

Returns a list of the variables in the workspace.

get/variables

Request

  • Base URL: https://api.dittowords.com/v2
  • URL: https://api.dittowords.com/v2/variables
  • Auth: API key in header Authorization

Response

Returns an array of variables in the workspace

Example response

[
  {
    "id": "Age",
    "name": "Age",
    "type": "number",
    "data": {
      "example": 21,
      "fallback": "18"
    }
  },
  {
    "id": "Jobs",
    "name": "Jobs",
    "type": "string",
    "data": {
      "example": "Engineer",
      "fallback": "Designer"
    }
  },
  {
    "id": "Link",
    "name": "Link",
    "type": "hyperlink",
    "data": {
      "text": "View",
      "url": "https://www.google.com/"
    }
  },
  {
    "id": "List",
    "name": "List",
    "type": "list",
    "data": [
      "true",
      "false"
    ]
  },
  {
    "id": "Map",
    "name": "Map",
    "type": "map",
    "data": {
      "0": "Zero",
      "1": "One",
      "2": "Two"
    }
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.